/* ==========================================================================
   WebLaunch Optimized Template: Mona Kheiravaran (CREW RTL)
   Self-Contained CSS · Local Fonts · Design Tokens · Scoped Resets
   ========================================================================== */

/* Local Fonts (Zero external fonts.googleapis.com dependency) */
@font-face {
  font-family: "Vazirmatn";
  src: url("assets/vazirmatn-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("assets/vazirmatn-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("assets/vazirmatn-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("assets/vazirmatn-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("assets/vazirmatn-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("assets/vazirmatn-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("assets/vazirmatn-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("assets/vazirmatn-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("assets/vazirmatn-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("assets/vazirmatn-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lalezar";
  src: url("assets/lalezar-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/geist-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/geist-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/geist-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* WebLaunch Standard Design Tokens */
  --color-primary: #f4f4f2;
  --color-secondary: #8b8b88;
  --color-background: #050505;
  --color-surface: #0b0b0b;
  --color-text-main: #f4f4f2;
  --color-text-muted: #8b8b88;
  --radius-box: 12px;
  --glow-primary: 0 0 25px rgba(244, 244, 242, 0.15);

  /* Template Token Aliases */
  --bg: var(--color-background);
  --fg: var(--color-text-main);
  --dim: var(--color-text-muted);
  --faint: #4a4a48;
  --line: rgba(255, 255, 255, .1);
  --display: "Lalezar", "Vazirmatn", system-ui, sans-serif;
  --sans: "Vazirmatn", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", "Vazirmatn", ui-monospace, monospace;
  --pad: clamp(20px, 3.9vw, 60px);
}

/* Scoped Resets & Wrapper */
html, body { margin: 0; overflow-x: clip; background: var(--bg); }
body { color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }

.site-wrapper,
.site-wrapper *,
.site-wrapper *::before,
.site-wrapper *::after,
.pill-nav,
.pill-nav *,
.you,
.sec-status {
  box-sizing: border-box;
}

.site-wrapper {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
}

.site-wrapper a,
.pill-nav a {
  color: inherit;
  text-decoration: none;
}

.site-wrapper button {
  font-family: inherit;
}

.site-wrapper img {
  background-color: var(--color-surface);
}

/* ───────── the hero: a design tool with the file open (RTL) ───────── */
.hero {
  --lw: 236px;
  --rw: 268px;
  position: relative;
  height: 100svh;
  min-height: 660px;
  overflow: hidden;
  background: #080808;
  display: grid;
  grid-template-columns: var(--lw) 1fr var(--rw);
  grid-template-rows: 56px 1fr 38px;
}

/* toolbar */
.nav {
  grid-column: 1 / -1;
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #0b0b0b;
}
.logo {
  font: 700 20px var(--mono);
  letter-spacing: -.03em;
  direction: ltr;
  white-space: nowrap;
}
.file {
  font: 500 11.5px var(--mono);
  letter-spacing: .02em;
  color: var(--dim);
  padding-right: 18px;
  border-right: 1px solid var(--line);
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}
.links {
  display: flex;
  gap: 26px;
  margin-right: auto;
  font: 500 12.5px var(--sans);
  color: var(--dim);
}
.links a:hover { color: var(--fg); }
.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--fg);
  font: 600 11.5px var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s;
}
.upload-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.talk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  font: 700 12px var(--sans);
  transition: opacity .3s;
  white-space: nowrap;
}
.talk:hover { opacity: .85; }

/* side panels (RTL: col 1 = right, col 3 = left) */
.panel {
  position: relative;
  z-index: 4;
  min-height: 0;
  overflow: hidden;
  background: #0b0b0b;
  font: 500 12.5px var(--sans);
}
.layers { grid-column: 1; border-left: 1px solid var(--line); }
.inspect { grid-column: 3; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.pn-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font: 600 11.5px var(--sans);
}
.pn-h span + span { color: var(--faint); font-family: var(--mono); }
.layers ul { margin: 0; padding: 8px 0; list-style: none; }
.ly {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 16px;
  color: var(--dim);
  white-space: nowrap;
}
.ly > a, .ly > span { display: flex; align-items: center; gap: 10px; width: 100%; color: inherit; }
.ly i { width: 14px; font: 500 11px var(--mono); font-style: normal; text-align: center; color: var(--faint); }
.ly em { margin-right: auto; font: 500 10px var(--mono); font-style: normal; color: var(--faint); direction: ltr; }
.ly.frame { color: var(--fg); }
.ly.frame:first-child::before { content: "▾"; margin-right: -10px; font-size: 9px; color: var(--dim); }
.ly.shut::before { content: "◂"; margin-right: -10px; font-size: 9px; color: var(--faint); }
.ly.sub { padding-right: 34px; }
.ly.on { background: rgba(255, 255, 255, .07); color: var(--fg); box-shadow: inset -2px 0 0 var(--fg); }
.ly:hover { background: rgba(255, 255, 255, .04); color: var(--fg); }

.grp { padding: 16px; border-bottom: 1px solid var(--line); }
.g-h { margin: 0 0 12px; font: 600 11px var(--sans); color: var(--dim); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; direction: ltr; }
.fields span {
  display: flex;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  font: 500 11.5px var(--mono);
  font-variant-numeric: tabular-nums;
}
.fields i { font-style: normal; color: var(--faint); }
.fill {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  font: 500 11.5px var(--mono);
  direction: ltr;
}
.fill b { width: 14px; height: 14px; border-radius: 3px; background: #050505; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.fill em { margin-left: auto; font-style: normal; color: var(--faint); }
.stats { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.stats li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.stats b { order: 2; font: 400 clamp(38px, 3.2vw, 52px)/.95 var(--display); font-variant-numeric: tabular-nums; }
.stats span { font: 500 11.5px var(--sans); color: var(--dim); }
.avail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font: 500 11px var(--sans);
}
.avail i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .12);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .35; } }

/* canvas, rulers, artboard */
.stage {
  grid-column: 2;
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 50px 52px 30px 40px;
  background: radial-gradient(70% 60% at 50% 50%, #111 0%, #080808 80%);
}
.ruler {
  position: absolute;
  overflow: hidden;
  color: var(--faint);
  font: 500 9px var(--mono);
  background-color: #0b0b0b;
  direction: ltr;
}
.rx {
  left: 0; right: 20px; top: 0; height: 20px;
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .18) 0 1px, transparent 1px 10px);
  background-size: 100% 5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
}
.ry {
  right: 0; top: 20px; bottom: 0; width: 20px;
  border-left: 1px solid var(--line);
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, .18) 0 1px, transparent 1px 10px);
  background-size: 5px 100%;
  background-repeat: no-repeat;
  background-position: 0 0;
}
.rx span { position: absolute; top: 3px; padding-left: 3px; border-left: 1px solid rgba(255, 255, 255, .3); line-height: 10px; }
.ry span { position: absolute; right: 3px; padding-top: 3px; writing-mode: vertical-rl; line-height: 10px; }
.board {
  position: relative;
  height: 100%;
  container-type: size;
  border: 1px solid rgba(255, 255, 255, .14);
  background: var(--bg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.board-tag .on-m { display: none; }
.board-tag {
  position: absolute;
  right: -1px;
  top: -24px;
  font: 500 11px var(--sans);
  color: var(--dim);
}
.hero.pre [data-b] { visibility: hidden; }
.bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: 11px 11px;
  mask-image: radial-gradient(90% 80% at 40% 50%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(90% 80% at 40% 50%, #000 40%, transparent 100%);
}

/* Portrait on the LEFT side in RTL + Direct Upload UI */
.portrait {
  position: absolute;
  left: 2cqw;
  bottom: 0;
  z-index: 2;
  height: min(94cqh, 72cqw);
  aspect-ratio: 3 / 4;
  cursor: pointer;
  overflow: hidden;
}
.portrait img, .portrait .silhouette {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  filter: grayscale(1) contrast(1.06);
}
.portrait .silhouette { object-fit: contain; object-position: 50% 100%; }
.portrait img.uploaded { mix-blend-mode: lighten; }
.portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
  z-index: 3;
}
.photo-hint {
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  z-index: 4;
  padding: 7px 13px;
  border: 1px dashed rgba(255, 255, 255, .45);
  border-radius: 999px;
  background: rgba(5, 5, 5, .78);
  backdrop-filter: blur(8px);
  color: var(--fg);
  font: 500 11px var(--sans);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .3s;
}
.has-photo .photo-hint { opacity: 0; display: none; }
.photo-hover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: rgba(5, 5, 5, .52);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.photo-hover span {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font: 700 11.5px var(--sans);
  white-space: nowrap;
}
.photo-trigger:hover .photo-hover { opacity: 1; }
.upload-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 6;
  background: #fff;
  box-shadow: 0 0 18px 4px rgba(255, 255, 255, .7);
  opacity: 0;
  pointer-events: none;
}
.scanline {
  position: absolute;
  left: -6%;
  right: -6%;
  top: 0;
  height: 2px;
  background: #fff;
  box-shadow: 0 0 18px 4px rgba(255, 255, 255, .55);
  opacity: 0;
}

/* Copy on the RIGHT side in RTL */
.copy {
  position: absolute;
  right: 6cqw;
  top: 50%;
  z-index: 3;
  translate: 0 -50%;
  width: 48cqw;
  text-align: right;
}
.hello {
  margin: 0 0 6px;
  font: 400 clamp(18px, 2.4cqw, 26px) var(--sans);
  color: var(--dim);
}
.name {
  margin: 0;
  font: 400 clamp(44px, min(10.5cqw, 15cqh), 138px)/.92 var(--display);
}
.name > span { display: block; width: max-content; white-space: nowrap; }
.role { margin: 20px 0 0; font: 600 13px/1.7 var(--sans); color: var(--fg); }
.intro { max-width: 390px; margin: 12px 0 0; font-size: 14.5px; line-height: 1.8; color: var(--dim); }
.ctas { display: flex; align-items: center; gap: 22px; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14.5px;
  font-weight: 700;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.btn:hover { transform: translateY(-2px); }
.link { font: 600 13px var(--sans); border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 4px; }

.foot {
  grid-column: 1 / -1;
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  background: #0b0b0b;
  font: 500 11px var(--sans);
  color: var(--dim);
}

/* ───────── the build: scaffolding, agents, status ───────── */
.bp { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; direction: ltr; }
.bp > * { position: absolute; left: 0; top: 0; }
.guide.h { height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .32) 8%, rgba(255, 255, 255, .32) 92%, transparent); }
.guide.v { width: 1px; background: linear-gradient(transparent, rgba(255, 255, 255, .32) 8%, rgba(255, 255, 255, .32) 92%, transparent); }
.cross { width: 0; height: 0; font: 300 16px/0 var(--mono); color: #fff; display: grid; place-items: center; }
.sk { border: 1px dashed rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .045); }
.sk span {
  position: absolute;
  left: -1px;
  top: -20px;
  padding: 2px 6px;
  background: #fff;
  color: #000;
  font: 600 9.5px/1.3 var(--mono);
  white-space: nowrap;
  direction: rtl;
}

.agents { position: absolute; inset: 0; z-index: 9; pointer-events: none; direction: ltr; }
.agent { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform; }
.agent svg { display: block; fill: #fff; stroke: #000; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.agent.inv svg { fill: #0a0a0a; stroke: #fff; }
.agent .tag {
  position: absolute;
  left: 12px;
  top: 14px;
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, .7);
  background: #000;
  color: #fff;
  font: 500 9px/1.2 var(--mono);
  letter-spacing: .04em;
  white-space: nowrap;
}
.agent.inv .tag { background: #fff; color: #000; border-color: #fff; }
.agent .ripple { position: absolute; left: -12px; top: -12px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #fff; opacity: 0; }

.status {
  position: absolute;
  left: 50%;
  bottom: 64px;
  translate: -50% 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(16, 16, 16, .84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font: 500 11.5px var(--sans);
  color: var(--fg);
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
}
.status i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .8s linear infinite; }
.status.ok i { animation: none; border-color: #fff; background: #fff; box-shadow: inset 0 0 0 3px #111; }
.st-bar { width: 90px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.st-bar b { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: 100% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Figma-style hover selection box (.you) */
.you {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 70;
  border: 1px solid #fff;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
  direction: ltr;
}
.you.on { opacity: 1; }
.you span {
  position: absolute;
  right: -1px;
  top: -22px;
  padding: 2px 8px;
  background: #fff;
  color: #000;
  font: 700 10.5px/1.4 var(--sans);
  white-space: nowrap;
}
.you::after {
  content: attr(data-label);
  position: absolute;
  right: 44px;
  top: -21px;
  font: 500 10.5px/1.4 var(--sans);
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 4px #000;
  direction: rtl;
}

.replay {
  position: absolute;
  left: 50%;
  bottom: 5px;
  z-index: 12;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(10, 10, 10, .75);
  color: var(--fg);
  font: 600 11px var(--sans);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s, background .3s;
}
.replay.on { opacity: 1; pointer-events: auto; }
.replay:hover { background: #fff; color: #000; }
.is-done .scroll { opacity: 0 !important; }

/* tall artboard (phones / upright tablets) */
@container (max-aspect-ratio: 4 / 5) {
  .portrait { left: 0; height: min(52cqh, 94cqw); }
  .copy { top: 5cqh; translate: none; width: 88cqw; right: 6cqw; }
  .name { font-size: min(17cqw, 10cqh); }
  .role { margin-top: 10px; font-size: 11px; max-width: 75%; }
  .intro { display: none; }
  .ctas { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 16px; }
  .btn { height: 42px; padding: 0 18px; font-size: 13.5px; }
  .photo-hint { font-size: 10px; padding: 5px 10px; }
}

@media (max-width: 1500px) { .hero { --lw: 0px; --rw: 250px; } .layers { display: none; } }
@media (max-width: 900px) {
  .hero { min-height: 680px; grid-template-columns: 1fr; grid-template-rows: 52px 1fr auto 34px; }
  .nav { gap: 10px; padding: 0 12px; }
  .file, .links { display: none; }
  .upload-btn { margin-right: auto; padding: 7px 10px; font-size: 10.5px; }
  .talk { padding: 7px 11px; font-size: 10.5px; }
  .stage { padding: 34px 14px 14px; }
  .ruler { display: none; }
  .board-tag { top: -20px; }
  .stage, .inspect { grid-column: 1; }
  .inspect { border-right: 0; border-top: 1px solid var(--line); }
  .inspect .pn-h, .inspect .frame-grp, .inspect .grp:last-child, .inspect .g-h { display: none; }
  .inspect .grp { padding: 12px 14px; border: 0; }
  .stats { flex-direction: row; justify-content: space-between; gap: 10px; }
  .stats li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .stats b { order: 0; font-size: 32px; }
  .stats span { font-size: 10px; }
  .foot { padding: 0 14px; font-size: 10px; justify-content: flex-end; }
  .foot .scroll, .foot .coords { display: none; }
  .hero .replay { right: 14px; left: auto; translate: none; }
  .board-tag .on-d { display: none; }
  .board-tag .on-m { display: inline; }
  .status { bottom: 130px; font-size: 10.5px; }
  .st-bar { width: 50px; }
}
@media (prefers-reduced-motion: reduce) { .avail i, .status i { animation: none; } }

/* ═════════════════ the rest of the page ═════════════════ */
.mono-label { margin: 0; font: 600 12px var(--sans); color: var(--dim); }
.sec-title { margin: 14px 0 0; font: 400 clamp(50px, 7.5vw, 120px)/.95 var(--display); }
.sec-title .st-a, .sec-title .st-b { display: inline-block; }
.sec-title .st-b { color: transparent; -webkit-text-stroke: 1.4px rgba(244, 244, 242, .7); }
[data-scene] { position: relative; }

/* fixed pill nav */
.pill-nav {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(12, 12, 12, .76);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  translate: -50% -140%;
  opacity: 0;
  transition: translate .6s cubic-bezier(.2, .8, .2, 1), opacity .4s;
  font: 500 12px var(--sans);
}
.pill-nav.on { translate: -50% 0; opacity: 1; }
.pill-nav a { padding: 9px 14px; border-radius: 999px; white-space: nowrap; color: var(--dim); transition: color .25s, background .25s; }
.pill-nav a:hover { color: var(--fg); background: rgba(255, 255, 255, .06); }
.pill-nav .pn-logo { color: var(--fg); font: 700 15px var(--mono); direction: ltr; }
.pill-nav .pn-talk { background: var(--fg); color: var(--bg); font-weight: 700; }
.pill-nav .pn-talk:hover { background: #fff; color: #000; }

/* clients marquee */
.clients { padding: 46px 0 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients .mono-label { padding: 0 var(--pad); margin-bottom: 22px; }
.marquee {
  overflow: hidden;
  direction: ltr;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.mq-track { display: flex; width: max-content; animation: mq 38s linear infinite; }
.mq-track span {
  display: inline-flex;
  align-items: center;
  gap: 46px;
  padding-right: 46px;
  font: 400 clamp(32px, 3.8vw, 56px)/1.1 var(--display);
  color: #cfcfcc;
}
.mq-track i { font-style: normal; font-size: .4em; color: var(--faint); }
@keyframes mq { to { transform: translateX(-50%); } }

/* work */
.work { padding: 130px var(--pad) 110px; }
.wk-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 18px 40px; margin-bottom: 60px; }
.wk-head .mono-label { grid-column: 1 / -1; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button {
  position: relative;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: none;
  color: var(--dim);
  font: 500 12px var(--sans);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.filters button sup { margin-right: 5px; font-size: 10px; }
.filters button:hover { color: var(--fg); border-color: rgba(255, 255, 255, .4); }
.filters button[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 700; }
.wk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 28px; }
.wk-card { position: relative; display: block; }
.wk-card.is-hidden { display: none; }
.wk-media { cursor: none; position: relative; }
.wk-card.wide { grid-column: 1 / -1; }
.wk-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #101010; }
.wk-card.wide .wk-frame { aspect-ratio: 21 / 9; }
.wk-frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); position: relative; z-index: 2; }
.wk-card:hover .wk-frame img, .wk-card:hover .wk-stand { transform: scale(1.04); }
.wk-chip { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; transform: translate(-50%, -50%); }
.wk-chip b {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font: 700 12px var(--sans);
  white-space: nowrap;
  transform: scale(0);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.wk-media:hover .wk-chip b { transform: scale(1); }
.wk-card:hover .wk-frame { outline: 1px solid #fff; outline-offset: 6px; }
.wk-stand {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform 1.1s cubic-bezier(.2, .8, .2, 1);
  z-index: 1;
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 60px 60px,
              linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 60px 60px,
              radial-gradient(70% 80% at 50% 50%, #1c1c1c, #0c0c0c);
}
.ws-big { font: 400 clamp(48px, 8vw, 130px)/1 var(--display); color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .55); }
.ws-meta, .ws-what { position: absolute; font: 500 11px var(--sans); color: var(--dim); }
.ws-meta { right: 18px; top: 16px; }
.ws-what { left: 18px; bottom: 16px; }
.wk-cap { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 6px 18px; padding-top: 18px; }
.wk-n { font: 500 12px var(--mono); color: var(--dim); }
.wk-cap h3 { margin: 0; font: 400 clamp(28px, 2.6vw, 40px)/1.1 var(--display); }
.wk-cap p { grid-column: 2; margin: 0; color: var(--dim); font-size: 14.5px; }
.wk-meta { grid-column: 3; grid-row: 1; font: 500 11.5px var(--sans); color: var(--dim); }

/* recognition */
.recog { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 6vw; padding: 120px var(--pad); border-top: 1px solid var(--line); }
.rc-title { margin: 18px 0 0; font: 400 clamp(48px, 6vw, 98px)/.95 var(--display); }
.rc-title .rc-t1, .rc-title .rc-t2 { display: block; width: max-content; max-width: 100%; }
.rc-title .rc-t2 { color: transparent; -webkit-text-stroke: 1.4px rgba(244, 244, 242, .75); }
.rc-line-text { max-width: 380px; margin: 24px 0 0; color: var(--dim); line-height: 1.8; }
.rc-num { display: flex; align-items: flex-end; gap: 16px; margin: 46px 0 0; }
.rc-num b { font: 400 clamp(110px, 13vw, 210px)/.82 var(--display); font-variant-numeric: tabular-nums; }
.rc-num span { margin-bottom: 12px; font: 500 12.5px/1.6 var(--sans); color: var(--dim); }
.rc-list { margin: 0; padding: 0; list-style: none; align-self: end; }
.rc-row { position: relative; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 24px; padding: 22px 12px; transition: background .3s, color .3s; cursor: default; }
.rc-line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255, 255, 255, .22); transform-origin: 100% 50%; }
.rc-row:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, .22); }
.rc-year { font: 500 13px var(--sans); color: var(--dim); }
.rc-award { font-size: clamp(16px, 1.35vw, 20px); font-weight: 500; }
.rc-proj { font: 500 12px var(--sans); color: var(--dim); }
.rc-proj i { font-style: normal; display: inline-block; transition: transform .3s; }
.rc-row:hover { background: var(--fg); color: var(--bg); }
.rc-row:hover .rc-year, .rc-row:hover .rc-proj { color: #444; }
.rc-row:hover .rc-proj i { transform: translate(-3px, -3px); }

/* process */
.process { position: relative; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 56px; padding: 100px var(--pad); border-top: 1px solid var(--line); }
.pr-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 14px 40px; }
.pr-head .mono-label { grid-column: 1 / -1; }
.pr-bar { width: 220px; height: 2px; background: rgba(255, 255, 255, .14); }
.pr-bar b { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: 100% 50%; }
.pr-track { display: flex; gap: 24px; width: max-content; }
.pr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(440px, 34vw);
  min-height: 340px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent);
}
.pr-card::before, .pr-card::after { content: "+"; position: absolute; font: 300 16px/1 var(--mono); color: #fff; }
.pr-card::before { right: -6px; top: -9px; }
.pr-card::after { left: -6px; bottom: -9px; }
.pr-n { font: 400 96px/.85 var(--display); color: transparent; -webkit-text-stroke: 1.3px #fff; }
.pr-card h3 { margin: 24px 0 10px; font: 400 34px/1.1 var(--display); }
.pr-card p { margin: 0; color: var(--dim); line-height: 1.8; font-size: 14.5px; }
.pr-out { margin-top: auto; padding-top: 24px; font: 500 11.5px var(--sans); color: var(--fg); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 6vw; padding: 140px var(--pad); border-top: 1px solid var(--line); }
.ab-side { position: sticky; top: 100px; align-self: start; }
.ab-photo {
  position: relative;
  margin-top: 22px;
  aspect-ratio: 3 / 4;
  max-width: 340px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  background: radial-gradient(70% 60% at 50% 40%, #1a1a1a, #050505);
  cursor: pointer;
}
.ab-photo img, .ab-photo .silhouette { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; filter: grayscale(1) contrast(1.06); display: block; }
.ab-photo .silhouette { object-fit: contain; object-position: 50% 100%; }
.ab-photo img.uploaded { mix-blend-mode: lighten; }
.ab-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}
.ab-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #fff; box-shadow: 0 0 14px 3px rgba(255, 255, 255, .5); opacity: 0.35; z-index: 3; animation: abscan 5s ease-in-out infinite alternate; pointer-events: none; }
@keyframes abscan { from { top: 6%; } to { top: 92%; } }
.ab-tag { position: absolute; right: 10px; bottom: 10px; z-index: 4; padding: 3px 8px; background: #fff; color: #000; font: 700 10px var(--sans); pointer-events: none; }
.ab-lead { margin: 0; font: 500 clamp(24px, 2.7vw, 40px)/1.55 var(--sans); }
.ab-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 60px; border-top: 1px solid rgba(255, 255, 255, .18); }
.ab-facts > div { padding: 18px 0 0 16px; }
.ab-facts span { display: block; font: 500 11.5px var(--sans); color: var(--dim); }
.ab-facts b { display: block; margin-top: 8px; font-size: 16px; font-weight: 600; }
.ab-tl { margin-top: 50px; }
.ab-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.ab-tools li { padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font: 500 12px var(--mono); }

/* quotes */
.quotes { padding: 130px var(--pad); border-top: 1px solid var(--line); }
.q-text { max-width: 1180px; min-height: 3.6em; margin: 30px 0 0; font: 500 clamp(24px, 3.1vw, 46px)/1.55 var(--sans); }
.qw { display: inline-block; margin-left: 0.25em; }
.q-foot { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .18); }
.q-who b { display: block; font-size: 17px; font-weight: 700; }
.q-who span { font: 500 12px var(--sans); color: var(--dim); }
.q-nav { display: flex; align-items: center; gap: 10px; }
.q-count { margin-left: 10px; font: 500 12px var(--sans); color: var(--dim); }
.q-nav button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: none;
  color: var(--fg);
  cursor: pointer;
  transition: background .25s, color .25s;
  font-size: 18px;
}
.q-nav button:hover { background: var(--fg); color: var(--bg); }

/* contact */
.contact { padding: 130px var(--pad) 0; border-top: 1px solid var(--line); }
.ct-big { margin: 26px 0 0; font: 400 clamp(62px, 11.5vw, 195px)/.95 var(--display); }
.ct-line { position: relative; display: block; width: max-content; max-width: 100%; }
.ct-line .out { color: transparent; -webkit-text-stroke: 1.4px rgba(244, 244, 242, .5); }
.ct-line .fill { position: absolute; inset: 0; color: var(--fg); }
.ct-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 60px; }
.ct-mail { font: 500 clamp(20px, 2.2vw, 32px) var(--mono); border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 4px; direction: ltr; }
.ct-copy {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: none;
  color: var(--fg);
  font: 600 12px var(--sans);
  cursor: pointer;
  transition: background .25s, color .25s;
}
.ct-copy:hover { background: var(--fg); color: var(--bg); }
.ct-time { display: inline-flex; align-items: center; gap: 10px; margin: 0 auto 0 0; font: 500 12.5px var(--sans); color: var(--dim); }
.ct-time i { width: 7px; height: 7px; border-radius: 50%; background: var(--fg); animation: blink 1.6s ease-in-out infinite; }
.ct-time span { color: var(--fg); font-family: var(--mono); direction: ltr; }
.ct-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 110px; padding: 26px 0; border-top: 1px solid var(--line); font: 500 12px var(--sans); color: var(--dim); }
.ct-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.ct-foot a:hover { color: var(--fg); }

@media (max-width: 760px) {
  .pill-nav { top: 12px; gap: 0; }
  .pill-nav a:not(.pn-logo):not(.pn-talk) { display: none; }
  .work { padding: 90px var(--pad) 80px; }
  .wk-head { grid-template-columns: 1fr; margin-bottom: 40px; }
  .wk-grid { grid-template-columns: 1fr; gap: 48px; }
  .wk-media { cursor: pointer; }
  .wk-card.wide .wk-frame { aspect-ratio: 16 / 10; }
  .wk-chip { display: none; }
  .wk-cap { grid-template-columns: auto 1fr; }
  .wk-meta { grid-column: 1 / -1; grid-row: auto; }
  .recog { grid-template-columns: 1fr; gap: 50px; padding: 90px var(--pad); }
  .rc-row { grid-template-columns: 52px 1fr; gap: 6px 14px; padding: 18px 4px; }
  .rc-proj { grid-column: 2; }
  .process { min-height: auto; height: auto; padding: 90px var(--pad); gap: 40px; }
  .pr-head { grid-template-columns: 1fr; }
  .pr-bar { display: none; }
  .pr-track { flex-direction: column; width: auto; }
  .pr-card { width: auto; min-height: 0; }
  .pr-n { font-size: 72px; }
  .about { grid-template-columns: 1fr; gap: 40px; padding: 90px var(--pad); }
  .ab-side { position: static; }
  .ab-photo { max-width: 240px; }
  .ab-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .quotes { padding: 90px var(--pad); }
  .q-text { min-height: 5.4em; }
  .q-foot { flex-direction: column; align-items: flex-start; }
  .contact { padding: 90px var(--pad) 0; }
  .ct-time { margin: 0; }
  .ct-foot { flex-direction: column; align-items: flex-start; }
}
.is-offscreen .mq-track,
.is-offscreen .ct-time i,
.is-offscreen .ab-scan {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .mq-track, .ct-time i, .ab-scan { animation: none !important; }
  .site-wrapper *, .site-wrapper *::before, .site-wrapper *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sec-status { position: fixed; bottom: 22px; z-index: 60; }
@media (max-width: 760px) { .sec-status { bottom: 14px; } }
