/* Blink Experience — additive site rebuild
   Palette derived from logo-blink-experience.svg (yellow accent + 6-color loop) */

:root {
  --ink:        #0a0a0c;
  --ink-2:      #16161a;
  --ink-3:      #1f1f24;
  --paper:      #f6f5ef;
  --paper-2:    #efeee7;
  --bone:       #e3e1d6;
  --line:       #d8d5c8;
  --line-dk:    #2a2a30;
  --muted:      #6b6b6e;
  --muted-dk:   #8a8a8f;

  --accent:     #faed21;   /* signature Blink yellow */
  --accent-ink: #0a0a0c;   /* legible foreground on yellow */

  --c-yellow:   #faed21;
  --c-red:      #ff2a2a;
  --c-magenta:  #ff39d6;
  --c-cyan:     #1fe9ff;
  --c-blue:     #2c52ff;
  --c-green:    #38b54a;

  --focus:      #faed21;

  --maxw: 1480px;
  --pad: clamp(20px, 4vw, 56px);

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --t-fast: 160ms cubic-bezier(.2,.7,.3,1);
  --t-med: 380ms cubic-bezier(.2,.7,.3,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02";
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}
html[dir="rtl"] body { font-family: 'Noto Kufi Arabic', 'Archivo', system-ui, sans-serif; }

img { max-width: 100%; display: block; }
button { font: inherit; border: 0; background: 0; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ============ TYPE ============ */
.t-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.t-display {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.92;
  font-size: clamp(48px, 9.5vw, 168px);
}
.t-h1 {
  font-weight: 800;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.t-h2 {
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.t-h3 {
  font-weight: 700;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.t-lead {
  font-weight: 400;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.42;
  letter-spacing: -0.005em;
}
.t-body { font-size: 16px; line-height: 1.55; }
.t-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.04em; }

/* ============ LAYOUT ============ */
.shell { min-height: 100vh; }
.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.full { width: 100%; }
section { position: relative; }

.bg-ink   { background: var(--ink); color: var(--paper); }
.bg-ink-2 { background: var(--ink-2); color: var(--paper); }
.bg-paper { background: var(--paper); color: var(--ink); }
.bg-bone  { background: var(--bone); color: var(--ink); }
.bg-yellow{ background: var(--accent); color: var(--accent-ink); }

.divider { height: 1px; background: var(--line); }
.bg-ink .divider, .bg-ink-2 .divider { background: var(--line-dk); }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10,10,12,0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--paper);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo svg { height: 22px; width: auto; }
.nav__links {
  display: flex; gap: 4px; justify-content: center;
}
.nav__link {
  font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: var(--r-pill);
  color: rgba(246,245,239,0.78);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover { color: var(--paper); background: rgba(255,255,255,0.05); }
.nav__link.is-active { color: var(--ink); background: var(--accent); }
.nav__right { display: flex; align-items: center; gap: 10px; }
.nav__locale {
  display: flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-pill);
  padding: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
}
.nav__locale button {
  padding: 5px 10px; border-radius: var(--r-pill); color: rgba(246,245,239,0.6);
  transition: all var(--t-fast);
}
.nav__locale button.is-active { background: var(--paper); color: var(--ink); }

/* ============ BUTTON ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 14px;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn--lg { padding: 16px 28px; font-size: 15px; }
.btn--xl { padding: 20px 32px; font-size: 16px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -10px rgba(250,237,33,0.55); }
.btn--ghost { background: transparent; color: var(--paper); border: 1px solid rgba(255,255,255,0.18); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.35); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); }
.btn--outline-ink { border: 1px solid var(--ink); color: var(--ink); }
.btn--outline-ink:hover { background: var(--ink); color: var(--paper); }
.btn__arrow { transition: transform var(--t-fast); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ============ TAG / CHIP ============ */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: var(--r-pill);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.08);
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.08);
}
.chip--ink { background: var(--ink); color: var(--paper); border-color: transparent; }
.chip--paper { background: var(--paper); color: var(--ink); border-color: var(--line); }
.chip--accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.chip--ghost {
  background: transparent; color: inherit;
  border: 1px solid currentColor;
  opacity: 0.7;
}
.chip__dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ============ BE LOOP DEVICE ============ */
/* The 6-color brand pulse derived from the logo */
.be-loop {
  display: inline-flex; align-items: center; gap: 6px;
}
.be-loop__dot {
  width: 8px; height: 8px; border-radius: 50%;
  animation: belp 2.4s infinite ease-in-out;
}
.be-loop__dot:nth-child(1) { background: var(--c-yellow);  animation-delay: 0s; }
.be-loop__dot:nth-child(2) { background: var(--c-red);     animation-delay: 0.18s; }
.be-loop__dot:nth-child(3) { background: var(--c-magenta); animation-delay: 0.36s; }
.be-loop__dot:nth-child(4) { background: var(--c-cyan);    animation-delay: 0.54s; }
.be-loop__dot:nth-child(5) { background: var(--c-blue);    animation-delay: 0.72s; }
.be-loop__dot:nth-child(6) { background: var(--c-green);   animation-delay: 0.9s; }
@keyframes belp {
  0%, 60%, 100% { transform: scale(1); opacity: 0.95; }
  20% { transform: scale(1.55); opacity: 1; }
}

/* ============ HERO ============ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--paper);
  min-height: min(92vh, 920px);
  display: flex; flex-direction: column;
}
.hero__media {
  position: absolute; inset: 0; z-index: -1;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.5;
  filter: contrast(1.05) saturate(1.1);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.45) 0%, rgba(10,10,12,0.2) 35%, rgba(10,10,12,0.85) 90%),
    linear-gradient(90deg, rgba(10,10,12,0.55) 0%, transparent 40%);
}
.hero__top {
  padding: 28px var(--pad) 0;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
}
.hero__main {
  flex: 1;
  display: flex; align-items: flex-end;
  padding: 0 var(--pad) 56px;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
}
.hero__body { max-width: 1200px; width: 100%; }
.hero__lockup {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: clamp(56px, 10.5vw, 184px);
  line-height: 0.88;
  letter-spacing: -0.04em;
}
.hero__lockup em {
  font-style: normal;
  background: linear-gradient(92deg, var(--c-yellow), var(--c-magenta), var(--c-cyan), var(--c-green), var(--c-yellow));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hueShift 9s linear infinite;
}
@keyframes hueShift { from { background-position: 0% 0; } to { background-position: 300% 0; } }
.hero__sub {
  margin-top: 28px;
  max-width: 680px;
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.42;
  color: rgba(246,245,239,0.78);
}
.hero__cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero__meta {
  display: flex; gap: 32px 56px; flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero__meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero__meta-key { color: rgba(246,245,239,0.55); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.hero__meta-val { font-weight: 600; font-size: 15px; }

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  background: var(--ink-2);
  color: var(--paper);
}
.marquee__track {
  display: flex; gap: 56px;
  animation: scrollx 38s linear infinite;
  width: max-content;
}
.marquee__item {
  display: flex; align-items: center; gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(246,245,239,0.7);
  white-space: nowrap;
}
.marquee__item svg { flex-shrink: 0; }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ SECTION ============ */
.sec { padding: clamp(64px, 9vw, 128px) 0; }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.sec__title { max-width: 880px; }
.sec__eyebrow { color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.bg-ink .sec__eyebrow, .bg-ink-2 .sec__eyebrow { color: rgba(246,245,239,0.6); }
.sec__eyebrow-line { width: 32px; height: 1px; background: currentColor; opacity: 0.5; }

/* ============ WORK GRID ============ */
.work-filter {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px;
}
.work-filter button {
  padding: 9px 16px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: all var(--t-fast);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.bg-ink .work-filter button, .bg-ink-2 .work-filter button { border-color: rgba(255,255,255,0.15); color: var(--paper); }
.work-filter button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.work-filter button.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.work-filter__count {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  align-self: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px 20px;
}
.work-card {
  position: relative; cursor: pointer;
  display: flex; flex-direction: column;
  gap: 16px;
  grid-column: span 6;
}
.work-card--feat { grid-column: span 12; }
.work-card--m { grid-column: span 4; }
.work-card--s { grid-column: span 3; }
.work-card__media {
  position: relative; overflow: hidden;
  border-radius: var(--r-md);
  background: var(--ink-2);
  aspect-ratio: 4 / 3;
}
.work-card--feat .work-card__media { aspect-ratio: 21 / 10; }
.work-card--tall .work-card__media { aspect-ratio: 3 / 4; }
.work-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms cubic-bezier(.2,.7,.3,1);
}
.work-card:hover .work-card__media img { transform: scale(1.04); }
.work-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,12,0.55) 100%);
  pointer-events: none;
}
.work-card__overlay {
  position: absolute; inset: 0;
  padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  z-index: 1;
}
.work-card__overlay-top { display: flex; gap: 6px; flex-wrap: wrap; }
.work-card__overlay-bot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; color: var(--paper); }
.work-card__overlay-bot .arrow {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: grid; place-items: center;
  transition: transform var(--t-fast);
  opacity: 0;
}
.work-card:hover .work-card__overlay-bot .arrow { opacity: 1; transform: rotate(-45deg); }
.work-card__title { font-weight: 700; font-size: clamp(18px, 1.5vw, 24px); letter-spacing: -0.015em; }
.work-card__meta { display: flex; gap: 12px; align-items: center; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.bg-ink .work-card__meta, .bg-ink-2 .work-card__meta { color: var(--muted-dk); }
.work-card__meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.work-card__rights {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246,245,239,0.6);
  display: flex; align-items: center; gap: 6px;
}
.work-card__rights .rights-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-yellow); }

@media (max-width: 980px) {
  .work-card { grid-column: span 12; }
  .work-card--m, .work-card--s { grid-column: span 6; }
}
@media (max-width: 640px) {
  .work-card--m, .work-card--s { grid-column: span 12; }
}

/* ============ SERVICE LIST ============ */
.service-list { border-top: 1px solid var(--line); }
.bg-ink .service-list, .bg-ink-2 .service-list { border-top-color: var(--line-dk); }
.service-row {
  display: grid; grid-template-columns: 60px 1.2fr 1fr 60px;
  gap: 24px; align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding var(--t-med);
}
.bg-ink .service-row, .bg-ink-2 .service-row { border-bottom-color: var(--line-dk); }
.service-row:hover { padding-left: 18px; padding-right: 18px; }
.service-row__num { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.service-row__name {
  font-weight: 700; font-size: clamp(22px, 2.5vw, 36px);
  letter-spacing: -0.02em; line-height: 1.05;
}
.service-row__desc { font-size: 15px; color: var(--muted); max-width: 480px; line-height: 1.5; }
.bg-ink .service-row__desc, .bg-ink-2 .service-row__desc { color: var(--muted-dk); }
.service-row__cta { justify-self: end; }
.service-row__cta .circle {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: all var(--t-fast);
}
.bg-ink .service-row__cta .circle, .bg-ink-2 .service-row__cta .circle { border-color: var(--line-dk); }
.service-row:hover .service-row__cta .circle { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: rotate(-45deg); }

@media (max-width: 780px) {
  .service-row { grid-template-columns: 40px 1fr 36px; }
  .service-row__desc { display: none; }
}

/* ============ CASE STUDY ============ */
.cs-hero {
  background: var(--ink); color: var(--paper);
  position: relative; overflow: hidden;
}
.cs-hero__media { position: relative; aspect-ratio: 16 / 9; max-height: 80vh; overflow: hidden; }
.cs-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.cs-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,0) 50%, rgba(10,10,12,0.85)); }
.cs-hero__title-wrap { padding: 0 var(--pad) 64px; max-width: var(--maxw); margin: -120px auto 0; position: relative; z-index: 1; }
.cs-hero__chips { display: flex; gap: 6px; margin-bottom: 24px; }
.cs-hero__title { font-weight: 800; font-size: clamp(36px, 5.5vw, 92px); line-height: 0.95; letter-spacing: -0.03em; max-width: 1100px; }

.cs-meta {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.cs-meta__item { display: flex; flex-direction: column; gap: 6px; }
.cs-meta__key { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(246,245,239,0.55); }
.cs-meta__val { font-weight: 600; font-size: 17px; }
@media (max-width: 880px) { .cs-meta { grid-template-columns: repeat(2, 1fr); } }

.cs-narrative { padding: clamp(72px, 10vw, 128px) 0; background: var(--paper); }
.cs-stage {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 56px;
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}
.cs-stage:first-child { padding-top: 0; }
.cs-stage:last-child { border-bottom: 0; }
.cs-stage__label { display: flex; flex-direction: column; gap: 10px; }
.cs-stage__num { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.cs-stage__label-text { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.cs-stage__body { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 720px; text-wrap: pretty; }
.cs-stage__body p + p { margin-top: 18px; }
@media (max-width: 780px) { .cs-stage { grid-template-columns: 1fr; gap: 16px; } }

.cs-outcomes {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cs-outcome {
  padding: 36px;
  border-right: 1px solid var(--line-dk);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 220px;
}
.cs-outcome:last-child { border-right: 0; }
.cs-outcome__num { font-weight: 800; font-size: clamp(34px, 4vw, 56px); letter-spacing: -0.03em; line-height: 1; }
.cs-outcome__num em { color: var(--accent); font-style: normal; }
.cs-outcome__key { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(246,245,239,0.6); }
.cs-outcome__note { font-size: 13px; color: rgba(246,245,239,0.7); line-height: 1.4; margin-top: 14px; }
@media (max-width: 880px) {
  .cs-outcomes { grid-template-columns: repeat(2, 1fr); }
  .cs-outcome:nth-child(2) { border-right: 0; }
  .cs-outcome:nth-child(-n+2) { border-bottom: 1px solid var(--line-dk); }
}

.cs-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.cs-gallery__item { border-radius: var(--r-md); overflow: hidden; background: var(--ink-2); }
.cs-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.cs-gallery__item--lg { grid-column: span 12; aspect-ratio: 21 / 9; }
.cs-gallery__item--md { grid-column: span 6; aspect-ratio: 4 / 3; }
.cs-gallery__item--sm { grid-column: span 4; aspect-ratio: 1; }
@media (max-width: 780px) {
  .cs-gallery__item--md { grid-column: span 12; }
  .cs-gallery__item--sm { grid-column: span 6; }
}

/* ============ CONTACT / OFFICES ============ */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.office {
  background: var(--paper-2);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative; overflow: hidden;
}
.bg-ink .office, .bg-ink-2 .office { background: var(--ink-2); }
.office__city { font-weight: 800; font-size: 36px; letter-spacing: -0.02em; line-height: 1; }
.office__role { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.bg-ink .office__role, .bg-ink-2 .office__role { color: var(--muted-dk); }
.office__address { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.bg-ink .office__address, .bg-ink-2 .office__address { color: rgba(246,245,239,0.78); }
.office__phone, .office__email { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.office__phone:hover, .office__email:hover { color: var(--accent); }
.office__flag {
  position: absolute; top: 18px; right: 18px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.12em;
  background: var(--ink); color: var(--paper);
  padding: 4px 8px; border-radius: var(--r-xs);
}
.office--hq .office__flag { background: var(--accent); color: var(--ink); }
@media (max-width: 880px) { .offices { grid-template-columns: 1fr; } }

/* ============ BRIEF MODAL ============ */
.modal-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10,10,12,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0;
  animation: fadeIn 240ms forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.modal {
  width: 100%; max-width: 1080px;
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-height: 92vh;
  display: grid; grid-template-columns: 380px 1fr;
  transform: translateY(20px);
  animation: rise 320ms cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes rise { to { transform: translateY(0); } }
.modal__side {
  background: var(--ink); color: var(--paper);
  padding: 36px 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.modal__side h3 { font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -0.02em; margin: 0; }
.modal__side p { font-size: 14px; line-height: 1.55; color: rgba(246,245,239,0.7); margin: 16px 0 0; }
.modal__body { padding: 36px; overflow-y: auto; max-height: 92vh; }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: grid; place-items: center;
  z-index: 2;
}
.modal__close:hover { background: rgba(255,255,255,0.12); }
.modal__steps {
  display: flex; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(246,245,239,0.55);
  margin-bottom: 24px;
}
.modal__step { display: flex; align-items: center; gap: 6px; }
.modal__step .num { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,0.08); display: grid; place-items: center; font-size: 10px; }
.modal__step.is-active { color: var(--accent); }
.modal__step.is-active .num { background: var(--accent); color: var(--ink); }
.modal__step.is-done .num { background: var(--paper); color: var(--ink); }

.modal__body h4 {
  font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
  font-family: 'JetBrains Mono', monospace;
}
.modal__h2 { font-weight: 700; font-size: 28px; letter-spacing: -0.02em; margin: 0 0 6px; line-height: 1.05; }
.modal__lead { font-size: 14px; color: var(--muted); margin: 0 0 28px; }

.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.option-grid--3 { grid-template-columns: repeat(3, 1fr); }
.option {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px;
  cursor: pointer;
  text-align: left;
  display: flex; align-items: flex-start; gap: 12px;
  transition: all var(--t-fast);
  background: var(--paper);
}
.option:hover { border-color: var(--ink); }
.option.is-selected { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.option__check {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--line);
  flex-shrink: 0; margin-top: 2px;
  display: grid; place-items: center;
}
.option.is-selected .option__check { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.option__title { font-weight: 600; font-size: 14px; }
.option__desc { font-size: 12px; opacity: 0.7; margin-top: 4px; line-height: 1.4; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--t-fast);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); outline: none; }
.field textarea { resize: vertical; min-height: 90px; font-family: inherit; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .field-row { grid-template-columns: 1fr; } .modal { grid-template-columns: 1fr; max-height: 95vh; } .modal__side { display: none; } }

.modal__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; align-items: center; }
.modal__nav-left { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: var(--paper); padding: 80px 0 32px; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 64px; border-bottom: 1px solid var(--line-dk); }
.footer__brand-mark { font-weight: 800; font-size: clamp(56px, 8vw, 128px); letter-spacing: -0.03em; line-height: 0.9; margin-top: 8px; }
.footer__brand-mark em { font-style: normal; color: var(--accent); }
.footer__col h5 { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(246,245,239,0.5); margin: 0 0 16px; font-weight: 500; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col a:hover { color: var(--accent); }
.footer__bot { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(246,245,239,0.5); gap: 24px; flex-wrap: wrap; }
@media (max-width: 880px) { .footer__top { grid-template-columns: 1fr 1fr; } }

/* ============ CREDIBILITY STRIP ============ */
.credstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-dk); border-bottom: 1px solid var(--line-dk); }
.bg-paper .credstrip { border-color: var(--line); }
.cred {
  padding: 32px 28px;
  border-right: 1px solid var(--line-dk);
  display: flex; flex-direction: column; gap: 8px;
}
.bg-paper .cred { border-right-color: var(--line); }
.cred:last-child { border-right: 0; }
.cred__head { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.bg-ink .cred__head, .bg-ink-2 .cred__head { color: rgba(246,245,239,0.55); }
.cred__main { font-weight: 700; font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -0.01em; line-height: 1.15; }
.cred__sub { font-size: 12px; color: var(--muted); }
.bg-ink .cred__sub, .bg-ink-2 .cred__sub { color: rgba(246,245,239,0.55); }
@media (max-width: 780px) {
  .credstrip { grid-template-columns: repeat(2, 1fr); }
  .cred:nth-child(2) { border-right: 0; }
  .cred:nth-child(-n+2) { border-bottom: 1px solid var(--line-dk); }
}

/* ============ VALUES (BE) ============ */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dk); border: 1px solid var(--line-dk); border-radius: var(--r-lg); overflow: hidden; }
.value { background: var(--ink); padding: 36px 32px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; transition: background var(--t-med); }
.value:hover { background: var(--ink-2); }
.value__be { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent); letter-spacing: 0.1em; }
.value__word { font-weight: 800; font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.02em; line-height: 1; }
.value__desc { font-size: 13px; line-height: 1.5; color: rgba(246,245,239,0.7); margin-top: 16px; }
@media (max-width: 880px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ============ CLIENT WALL ============ */
.client-wall {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.bg-ink .client-wall, .bg-ink-2 .client-wall { background: var(--line-dk); border-color: var(--line-dk); }
.client-tile {
  background: var(--paper);
  aspect-ratio: 3 / 2;
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
  transition: background var(--t-fast);
}
.client-tile:hover { background: var(--paper-2); }
.client-tile img {
  position: absolute;
  inset: 22px;
  width: calc(100% - 44px);
  height: calc(100% - 44px);
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(1) contrast(1.05);
  transition: opacity var(--t-fast), filter var(--t-fast);
}
.client-tile:hover img { opacity: 1; filter: none; }
.client-tile--placeholder {
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.4;
}
@media (max-width: 880px) { .client-wall { grid-template-columns: repeat(3, 1fr); } }

/* ============ STICKY BRIEF CTA ============ */
.sticky-brief {
  position: fixed; bottom: 22px; right: 22px; z-index: 50;
  background: var(--accent); color: var(--ink);
  padding: 14px 22px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 18px 36px -12px rgba(0,0,0,0.45);
  transition: transform var(--t-fast);
}
.sticky-brief:hover { transform: translateY(-2px); }

/* ============ MISC ============ */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.bg-ink .kicker, .bg-ink-2 .kicker { color: rgba(246,245,239,0.6); }
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.bg-ink .spec-table td, .bg-ink-2 .spec-table td { border-bottom-color: var(--line-dk); }
.spec-table td:first-child { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); width: 220px; }

/* RTL */
html[dir="rtl"] .btn__arrow { transform: scaleX(-1); }
html[dir="rtl"] .work-card__overlay-bot .arrow { transform: scaleX(-1); }
html[dir="rtl"] .service-row:hover .service-row__cta .circle { transform: rotate(45deg) scaleX(-1); }
html[dir="rtl"] .work-card:hover .work-card__overlay-bot .arrow { transform: rotate(-135deg); }

/* Scroll-reveal helpers */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Skeleton placeholder while images load */
.img-skel { background:
  linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 100%);
}

/* Page transition */
.page { animation: pageIn 420ms cubic-bezier(.2,.7,.3,1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Tweak panel customization */
.tw-pulse-bar { display: flex; gap: 4px; align-items: center; }
.tw-pulse-bar .b { height: 14px; width: 4px; border-radius: 2px; background: var(--accent); animation: barpulse 1.4s infinite ease-in-out; }
.tw-pulse-bar .b:nth-child(2) { animation-delay: 0.15s; }
.tw-pulse-bar .b:nth-child(3) { animation-delay: 0.3s; }
@keyframes barpulse { 0%, 100% { transform: scaleY(0.6); } 50% { transform: scaleY(1); } }
