/* ==========================================================================
   VASHT Studio — main stylesheet (v3)
   Brand: Oxblood leads · Bone is the reading ground · Charcoal for text ·
   Stone for lines and pattern. Type: Archivo + JetBrains Mono.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette (fixed) */
  --paper: #F2EFE8;            /* Bone, never themed — text on Oxblood */
  --bone: #F2EFE8;
  --char: #262724;
  --stone: #B9B4A8;
  --ink-2: #5E5F5A;
  --bone-13: rgb(242 239 232 / .13);
  --bone-60: rgb(242 239 232 / .72);
  --bone-line: rgb(242 239 232 / .22);
  --bone-2: #E9E5DC;
  --device: #1B1C1A;

  /* Themed: light */
  --ox: #793C38;
  --bg: var(--bone);
  --fg: var(--char);
  --fg-2: var(--ink-2);
  --accent: var(--ox);
  --line: rgb(38 39 36 / .85);
  --line-soft: rgb(38 39 36 / .14);
  --surface: #E9E5DC;
  --surface-2: #E1DCD1;
  --glass: rgb(242 239 232 / .74);
  --stone-ground: var(--stone);
  --map-land: var(--stone);
  --map-active: var(--ox);
  --ph-bg: rgb(121 60 56 / .1);
  --shadow: 0 24px 60px -30px rgb(38 39 36 / .45);
  color-scheme: light;

  --font: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 88px;
  --section: clamp(72px, 9vw, 140px);
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* Dark: a deeper ground, and every component goes darker with it. Oxblood stays a
   surface colour (deepened) — the guide forbids Oxblood text on Charcoal. */
:root[data-mode="dark"] {
  --ox: #5A2926;
  --bg: #191A18;
  --fg: var(--bone);
  --fg-2: rgb(242 239 232 / .62);
  --accent: var(--bone);
  --line: rgb(242 239 232 / .28);
  --line-soft: rgb(242 239 232 / .1);
  --surface: #232421;
  --surface-2: #2B2C29;
  --glass: rgb(25 26 24 / .72);
  --stone-ground: #34332F;
  --map-land: rgb(185 180 168 / .26);
  --map-active: rgb(242 239 232 / .85);
  --ph-bg: rgb(242 239 232 / .1);
  --shadow: 0 24px 60px -30px rgb(0 0 0 / .8);
  color-scheme: dark;
}

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-width: none; -ms-overflow-style: none; overflow-x: clip; }
/* Hide the page scrollbar (scrolling still works; the top progress bar shows position) */
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color .4s;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ol, ul { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--ox); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--char); color: var(--paper); padding: 10px 16px; border-radius: var(--r-sm); transition: top .2s; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.mono { font-family: var(--mono); }
.label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.label--ox { color: var(--accent); }
.label--bone { color: var(--bone-60); }
.section__title {
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--accent);
  margin-bottom: clamp(32px, 4.5vw, 64px);
  max-width: 22ch;
}
.ph { background: var(--ph-bg); color: var(--accent); padding: 0 .25em; border-radius: 6px; font-style: normal; }
.footer__cta .ph, .process .ph, .band .ph { background: var(--bone-13); color: var(--paper); }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-2);
}
.chip .dot { color: var(--accent); }

.ulink {
  display: inline-flex; align-items: center; gap: .5em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.ulink:hover { background-size: 100% 1px; }
.ulink--arrow::after { content: "→"; transition: transform .4s var(--ease); }
.ulink--arrow:hover::after { transform: translateX(4px); }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; position: relative; flex: none; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; animation: ping 2.2s var(--ease) infinite; }
.dot--live { color: var(--accent); margin-right: 6px; vertical-align: middle; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(3); opacity: 0; } }

.tag {
  display: inline-block;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid currentColor; border-radius: 999px;
  color: var(--accent);
  line-height: 1.2; vertical-align: middle;
}

/* Photos */
.media { position: relative; overflow: hidden; border-radius: var(--r); background: var(--surface); isolation: isolate; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.credit { position: absolute; left: 12px; bottom: 12px; right: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--paper); text-shadow: 0 1px 6px rgb(0 0 0 / .6); }

/* ---------- Buttons ---------- */
.btn {
  /* own variable names, so they never shadow the page's --bg / --fg */
  --b-bg: var(--ox); --b-fg: var(--paper); --b-bg-h: var(--char); --b-fg-h: var(--paper);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 24px;
  border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg);
  font-stretch: 112%; font-weight: 600; font-size: 15px;
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--b-bg-h);
  clip-path: circle(0% at 50% 120%);
  transition: clip-path .6s var(--ease);
}
/* Hover only where a real pointer can hover — on touch screens a tap would leave the fill stuck. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { color: var(--b-fg-h); }
  .btn:hover::before { clip-path: circle(150% at 50% 120%); }
  .btn:hover .btn__arrow { animation: arrow-swap .7s var(--ease); }
}
.btn:focus-visible { color: var(--b-fg-h); outline-offset: 4px; }
.btn:focus-visible::before { clip-path: circle(150% at 50% 120%); }
.btn:active { transform: scale(.98); }
.btn__arrow { width: 16px; height: 16px; }
@keyframes arrow-swap { 0% { transform: none; } 40% { transform: translateX(160%); opacity: 0; } 41% { transform: translateX(-160%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.btn--sm { height: 44px; padding: 0 18px; font-size: 14px; gap: 10px; }
.btn--bone { --b-bg: var(--paper); --b-fg: #793C38; --b-bg-h: var(--char); --b-fg-h: var(--paper); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--fg); --b-bg-h: var(--fg); --b-fg-h: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-mode="dark"] .btn:not(.btn--bone):not(.btn--ghost) { --b-bg-h: var(--paper); --b-fg-h: #5A2926; }

/* ---------- Logo ---------- */
.wordmark, .mark { width: 100%; height: auto; }
.lockup { display: inline-flex; flex-direction: column; width: 140px; gap: .55em; font-size: 10px; }
.lockup__studio { font-stretch: 125%; font-weight: 500; text-transform: uppercase; letter-spacing: .46em; line-height: 1; }

/* ==========================================================================
   Header — a floating glass bar
   ========================================================================== */
.header {
  position: fixed; inset: 12px 0 auto 0; z-index: 100;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.header__bar {
  pointer-events: auto;
  max-width: 1280px; margin-inline: auto;
  height: 64px;
  display: flex; align-items: center; gap: 16px;
  padding-block: 0;
  padding-inline: 28px 8px;   /* logical: the logo side gets the generous padding in both LTR and RTL */
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 0 0 1px var(--line-soft), 0 12px 32px -20px rgb(0 0 0 / .35);
  transition: height .45s var(--ease), box-shadow .45s, background-color .4s;
}
.header.is-scrolled .header__bar { height: 58px; box-shadow: 0 0 0 1px var(--line-soft), 0 18px 40px -22px rgb(0 0 0 / .45); }
.header__logo { width: 100px; flex: none; color: var(--accent); }

.header__nav {
  position: relative;
  display: flex; gap: 2px;
  margin-inline: auto;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
}
.header__pill {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0;
  width: var(--pw, 0); transform: translateX(var(--px, 0));
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
}
.header__pill.is-on { opacity: 1; }
.navlink {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  font-stretch: 112%; font-weight: 600; font-size: 14.5px;
  color: var(--fg-2);
  transition: color .3s, background-color .3s;
}
.navlink:hover { color: var(--fg); }
/* Current page: a solid Oxblood pill with a dot. Hover: an outline that slides. */
.navlink.is-active { background: var(--ox); color: var(--paper); }
.navlink.is-active::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.header__end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header__status {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-2);
}
.header__status .dot { color: var(--accent); }
/* centre the label on its cap height (caps have no descenders), so it lines up with the dot */
.header__status-text { display: block; line-height: 1; padding-top: .14em; }
:root[lang="fa"] .header__status-text { padding-top: 0; padding-bottom: .12em; }
.mode {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--fg);
  background: var(--surface);
  transition: transform .3s var(--ease), background-color .3s;
}
.mode:hover { transform: rotate(-15deg); }
.mode svg { width: 18px; height: 18px; transition: transform .8s var(--ease); }
:root[data-mode="dark"] .mode svg { transform: rotate(180deg); }

.burger {
  display: none; position: relative;
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  background: var(--fg); color: var(--bg);
}
.burger__line { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease), top .5s var(--ease); }
/* (not nth-of-type: the hidden "Menu" label is a span too) — lines sit symmetric around the centre (21.25px) */
.burger__line { top: 17.75px; }
.burger__line + .burger__line { top: 24.75px; }
.menu-open .burger__line { top: 21.25px; transform: rotate(45deg); }
.menu-open .burger__line + .burger__line { top: 21.25px; transform: rotate(-45deg); }

/* Mobile menu sheet */
.menu {
  position: fixed; inset: 0; z-index: 90;
  padding: 88px 10px 10px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.menu.is-open { opacity: 1; }
.menu__sheet {
  height: 100%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 18px 22px 22px;
  border-radius: var(--r-lg);
  background: var(--ox); color: var(--paper);
  overflow-y: auto;
  clip-path: inset(0 0 100% 0 round var(--r-lg));
  transition: clip-path .7s var(--ease-in-out);
}
.menu.is-open .menu__sheet { clip-path: inset(0 0 0 0 round var(--r-lg)); }
.menu__nav li { border-bottom: 1px solid var(--bone-line); opacity: 0; transform: translateY(24px); transition: transform .7s var(--ease), opacity .7s var(--ease); }
.menu.is-open .menu__nav li { opacity: 1; transform: none; }
.menu.is-open .menu__nav li:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__nav li:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__nav li:nth-child(4) { transition-delay: .15s; }
.menu.is-open .menu__nav li:nth-child(5) { transition-delay: .2s; }
.menu__nav a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 16px 0; }
.menu__num { font-family: var(--mono); font-size: 12px; color: var(--bone-60); }
.menu__link { font-stretch: 125%; font-weight: 700; font-size: clamp(1.8rem, 8vw, 2.6rem); line-height: 1.05; letter-spacing: -.02em; }
.menu__arrow { width: 22px; height: 22px; opacity: .7; }
.menu__nav a[aria-current] .menu__link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.menu__foot { display: grid; gap: 18px; }
.menu__cta { width: 100%; }
.menu__contact { display: grid; gap: 4px; font-family: var(--mono); font-size: 13px; color: var(--bone-60); }
.menu__social { display: flex; flex-wrap: wrap; gap: 8px; }
.menu__social a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--bone-line); font-size: 13px; }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--ox); color: var(--paper);
  animation: loader-fallback .01s 3s forwards;
}
.js.seen .loader { display: none; }
@keyframes loader-fallback { to { visibility: hidden; opacity: 0; } }
.loader__inner { display: grid; justify-items: center; gap: 24px; }
.loader__mark { width: 110px; clip-path: inset(0 100% 0 0); }
.loader__count { position: fixed; right: var(--gutter); bottom: 32px; font-size: 12px; letter-spacing: .12em; color: var(--bone-60); }

/* ---------- Page transition + progress ---------- */
.pt { position: fixed; inset: 0; z-index: 180; pointer-events: none; visibility: hidden; }
.pt.is-active, .pt-enter .pt { visibility: visible; pointer-events: auto; }
.pt__panel { position: absolute; inset: 0; clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); will-change: clip-path; }
.pt__panel--back { background: var(--stone-ground); }
.pt__panel--front { background: var(--ox); }
.pt-enter .pt__panel { clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 0); }
.pt__mark { position: absolute; left: 50%; top: 50%; width: clamp(80px, 9vw, 120px); transform: translate(-50%, -50%); color: var(--paper); opacity: 0; }
.pt-enter .pt__mark { opacity: 1; }
.pt__mark .mpg { transform-box: fill-box; }
.pt-enter .pt { animation: pt-fallback .01s 3s forwards; }
@keyframes pt-fallback { to { visibility: hidden; } }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ==========================================================================
   Hero — minimal
   ========================================================================== */
.hero { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 104px)); }
.hero__grid {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.hero__title {
  font-stretch: 125%; font-weight: 700;
  font-size: clamp(2.1rem, 4.2vw, 4.1rem);
  line-height: 1.14; letter-spacing: -.028em;
}
.hero__side { display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-top: 8px; }
/* The highlight is an inline-block exactly one line tall, so it never reaches into the line above. */
.hero__title em {
  display: inline-block;
  font-style: normal; color: var(--paper); background: var(--ox);
  line-height: 1; padding: .02em .18em .1em;
  border-radius: .2em;
  vertical-align: baseline;
}
.hero__side { display: grid; gap: 22px; }
.hero__lead { max-width: 40ch; font-size: clamp(16px, 1.25vw, 18px); color: var(--fg-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__media { position: relative; aspect-ratio: 16 / 8; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); }
.hero__img { position: absolute; inset: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.hero__badges { position: absolute; left: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: grid; gap: 2px; min-width: 160px;
  padding: 14px 18px;
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--fg);
}
.badge strong { font-stretch: 125%; font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -.02em; color: var(--accent); }
.badge span { font-size: 13px; color: var(--fg-2); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: clamp(28px, 4vw, 56px); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__word { font-stretch: 125%; font-weight: 700; font-size: clamp(1.7rem, 3.8vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; color: var(--accent); white-space: nowrap; padding-inline: .35em; }
.marquee__mark { width: clamp(32px, 3.6vw, 56px); color: var(--accent); flex: none; opacity: .35; margin-inline: .25em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section[data-theme="light"] + .section[data-theme="light"] { padding-top: 0; }
.section__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(28px, 4vw, 56px);
}

/* Intro (photo + text) */
.intro__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.intro__grid--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.intro__media { aspect-ratio: 4 / 5; border-radius: var(--r-lg); }
.intro__body { display: grid; gap: clamp(24px, 3vw, 40px); }
.intro__text { font-stretch: 112%; font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.22; letter-spacing: -.012em; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { display: grid; gap: 6px; padding: 18px; border-radius: var(--r); background: var(--surface); align-content: start; }
.stat__value { font-stretch: 125%; font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; color: var(--accent); letter-spacing: -.02em; }
.stat__label { font-size: 14px; color: var(--fg-2); line-height: 1.35; }

/* ---------- Work cards ---------- */
.work__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) clamp(16px, 2.4vw, 32px); }
.card--lg { grid-column: span 7; }
.card--md { grid-column: span 5; }
.work__grid .card:nth-child(4n+2) { margin-top: clamp(40px, 8vw, 140px); }
.work__grid.is-filtered .card { margin-top: 0; }
.card__link { display: block; }
.card__media {
  position: relative; aspect-ratio: 5 / 4; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--ox);
  container-type: inline-size; isolation: isolate; perspective: 1400px;
}
.card--lg .card__media { aspect-ratio: 16 / 12; }
.card__media--phone, .card__media--apps { background: var(--stone-ground); }
.card__pattern { position: absolute; inset: 0; z-index: -1; background: url("../img/pattern-bone.svg") 0 0 / 86px auto; }
.card__media--phone .card__pattern, .card__media--apps .card__pattern, .case__media--phone .card__pattern, .case__media--apps .card__pattern { filter: brightness(1.6); }
.mock { transform-style: preserve-3d; }
.card__meta { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 14px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line-soft); }
.card__index { color: var(--accent); }
.card__type { grid-column: 2; }
.card__title { font-stretch: 112%; font-weight: 600; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.2; letter-spacing: -.01em; transition: color .3s; }
.card__link:hover .card__title { color: var(--accent); }
.card__summary { margin-top: 8px; padding-left: calc(2ch + 18px); max-width: 52ch; color: var(--fg-2); font-size: 15px; }

/* ---------- Mockups (code-drawn) ---------- */
:root[data-mode="dark"] .mock { --bone: #2A2B28; --bone-2: #33342F; --char: #ECE9E2; --ink-2: #A6A39B; --stone: #57554E; }
.mock { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(6px, 1.45cqi, 13px); }
.mock > * { will-change: transform; }
.mock__window { width: 80%; background: var(--bone); border-radius: 1.2em; overflow: hidden; box-shadow: 0 3em 6em -2em rgb(0 0 0 / .5), 0 0 0 1px rgb(38 39 36 / .08); }
.mock__window--wide { width: 86%; }
.mock__bar { display: flex; align-items: center; gap: .5em; height: 2.6em; padding: 0 1.1em; background: var(--bone-2); }
.mock__bar i { width: .8em; height: .8em; border-radius: 50%; background: var(--stone); }
.mock__bar span { margin-inline: auto; font-family: var(--mono); font-size: .85em; color: var(--ink-2); background: var(--bone); padding: .2em 2em; border-radius: .6em; }
.mock__chip { position: absolute; right: 10%; bottom: 16%; display: inline-flex; align-items: center; gap: .8em; padding: .9em 1.3em; background: var(--bone); color: var(--char); font-family: var(--mono); border-radius: 1em; box-shadow: 0 1.5em 3em -1em rgb(0 0 0 / .4); }
.mock__chip .dot { color: #793C38; }
.dash { display: grid; grid-template-columns: 4.6em 1fr; min-height: 30em; }
.dash__side { background: var(--ox); display: flex; flex-direction: column; align-items: center; gap: 1.2em; padding-top: 1.4em; }
.dash__logo { width: 2em; height: 2em; background: var(--paper); clip-path: polygon(0 0, 35% 0, 50% 60%, 65% 0, 100% 0, 60% 100%, 40% 100%); }
.dash__side i { width: 1.8em; height: .35em; background: var(--bone-line); border-radius: 1em; }
.dash__side i.is-on { background: var(--paper); }
.dash__main { padding: 1.6em; display: grid; gap: 1.4em; align-content: start; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; }
.dash__kpis div { border: 1px solid rgb(127 127 127 / .2); border-radius: .8em; padding: 1em; display: grid; gap: .2em; }
.dash__kpis small { font-family: var(--mono); font-size: .8em; color: var(--ink-2); text-transform: uppercase; letter-spacing: .1em; }
.dash__kpis strong { font-stretch: 112%; font-size: 1.7em; line-height: 1.1; color: var(--char); }
.dash__kpis em { font-style: normal; font-family: var(--mono); font-size: .85em; color: #A0554F; }
.dash__chart { display: flex; align-items: flex-end; gap: .6em; height: 8.5em; padding: 1em; border: 1px solid rgb(127 127 127 / .2); border-radius: .8em; }
.dash__chart span { flex: 1; height: var(--h); background: var(--stone); border-radius: .3em .3em 0 0; transform-origin: bottom; }
.dash__chart span:last-child { background: #793C38; }
.dash__rows { display: grid; font-family: var(--mono); font-size: .9em; }
.dash__rows div { display: grid; grid-template-columns: 7em 1fr 4em; gap: 1em; align-items: center; padding: .6em 0; border-top: 1px solid rgb(127 127 127 / .18); color: var(--char); }
.dash__bar { height: .45em; width: var(--w); background: var(--bone-2); position: relative; border-radius: 1em; overflow: hidden; }
.dash__bar::after { content: ""; position: absolute; inset: 0; width: 60%; background: var(--stone); }
.phone { position: relative; width: 38%; max-width: 21em; aspect-ratio: 9 / 19; background: var(--device); border-radius: 3.2em; padding: .7em; box-shadow: 0 3em 6em -2em rgb(0 0 0 / .6); }
.phone__notch { position: absolute; z-index: 2; top: 1.3em; left: 50%; width: 30%; height: 1.6em; background: var(--device); border-radius: 1em; transform: translateX(-50%); }
.phone__screen { height: 100%; background: var(--bone); border-radius: 2.6em; padding: 4em 1.4em 1.4em; display: flex; flex-direction: column; gap: 1.2em; overflow: hidden; }
.phone__screen--ox { background: #793C38; color: var(--paper); justify-content: flex-end; }
.trade__head { display: grid; gap: .1em; }
.trade__head small { font-family: var(--mono); font-size: .85em; color: var(--ink-2); }
.trade__head strong { font-stretch: 125%; font-weight: 800; font-size: 2.6em; line-height: 1.05; color: var(--char); letter-spacing: -.02em; }
.trade__head em { font-style: normal; font-family: var(--mono); color: #A0554F; font-size: .9em; }
.trade__chart { width: 100%; height: 8em; overflow: visible; }
.trade__line { fill: none; stroke: #A0554F; stroke-width: 2; vector-effect: non-scaling-stroke; }
.trade__area { fill: rgb(160 85 79 / .14); }
.trade__tabs { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .85em; color: var(--ink-2); }
.trade__tabs span { padding: .3em .7em; border-radius: .5em; }
.trade__tabs .is-on { background: var(--char); color: var(--bone); }
.trade__list { display: grid; font-size: .95em; color: var(--char); }
.trade__list div { display: flex; justify-content: space-between; padding: .7em 0; border-top: 1px solid rgb(127 127 127 / .18); }
.trade__list span:last-child { font-family: var(--mono); }
.trade__actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
.trade__actions span { text-align: center; padding: .9em; font-weight: 600; font-stretch: 112%; border: 1px solid var(--char); border-radius: 1em; color: var(--char); }
.trade__actions .is-on { background: #793C38; border-color: #793C38; color: var(--paper); }
.mock--apps .phone--back { position: absolute; left: 22%; top: 12%; width: 32%; transform: rotate(-6deg); }
.mock--apps .phone--front { position: absolute; right: 20%; top: 8%; width: 34%; }
.ai__bubble { background: var(--bone-13); padding: .9em 1.1em; border-radius: 1.2em 1.2em 1.2em .3em; font-size: .95em; max-width: 90%; }
.ai__bubble--in { align-self: flex-end; background: var(--paper); color: #793C38; border-radius: 1.2em 1.2em .3em 1.2em; }
.ai__typing { display: flex; gap: .4em; padding: .6em 0; }
.ai__typing i { width: .6em; height: .6em; border-radius: 50%; background: var(--bone-60); animation: typing 1.4s infinite; }
.ai__typing i:nth-child(2) { animation-delay: .2s; }
.ai__typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-.4em); opacity: 1; } }
.app__title { font-stretch: 125%; font-weight: 800; font-size: 1.9em; line-height: 1.05; color: var(--char); }
.app__cards { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
.app__cards span { aspect-ratio: 1; background: #793C38; border-radius: .9em; }
.app__cards span + span { background: url("../img/pattern-stone.svg") 0 0 / 3em auto, var(--bone-2); }
.app__list { display: grid; gap: .6em; }
.app__list i { height: 2.6em; border: 1px solid rgb(127 127 127 / .2); border-radius: .8em; position: relative; }
.app__list i::after { content: ""; position: absolute; left: .8em; top: 50%; width: 55%; height: .45em; background: var(--stone); border-radius: 1em; transform: translateY(-50%); }
.site { padding: 1.4em 2em 2em; display: grid; gap: 2em; }
.site__nav { display: flex; align-items: center; gap: 1.4em; }
.site__nav b { width: 5em; height: 1em; background: #793C38; border-radius: .3em; margin-right: auto; }
.site__nav span { width: 3em; height: .5em; background: var(--stone); border-radius: 1em; }
.site__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2em; align-items: end; }
.site__lines { display: grid; gap: .8em; }
.site__lines i { height: 2.6em; background: #793C38; border-radius: .5em; }
.site__lines i.short { width: 60%; }
.site__img { aspect-ratio: 1; border-radius: 1em; background: url("../img/pattern-stone.svg") 0 0 / 4em auto, var(--bone-2); }
.site__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; }
.site__grid i { height: 4.5em; border-top: 2px solid var(--char); background: linear-gradient(var(--stone), var(--stone)) 0 1em / 70% .45em no-repeat, linear-gradient(var(--stone), var(--stone)) 0 2.1em / 45% .45em no-repeat; }

/* ---------- Services (home cards) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.svc-card {
  position: relative;
  display: grid; grid-template-rows: auto 1fr;
  padding: 10px;
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.svc-card__media { aspect-ratio: 16 / 9; border-radius: var(--r); }
.svc-card__body { display: grid; gap: 8px; align-content: start; padding: 20px 14px 14px; }
.svc-card__title { font-stretch: 112%; font-weight: 600; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.15; letter-spacing: -.01em; }
.svc-card__text { color: var(--fg-2); max-width: 44ch; transition: color .5s; }
.svc-card__arrow {
  position: absolute; top: 22px; right: 22px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%;
  background: var(--glass); color: var(--fg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .6s var(--ease);
}
.svc-card__arrow svg { width: 20px; }
@media (hover: hover) {
  .svc-card:hover { background: var(--ox); color: var(--paper); }
  .svc-card:hover .svc-card__text, .svc-card:hover .label--ox { color: var(--bone-60); }
  .svc-card:hover .svc-card__arrow { transform: rotate(45deg); }
}
.planned { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }
.planned__item { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; }

/* ==========================================================================
   Process — rounded Oxblood panel
   ========================================================================== */
.process { padding: 12px var(--gutter); position: relative; }
.process__panel { position: relative; max-width: calc(var(--max) + 120px); margin-inline: auto; border-radius: var(--r-xl); background: var(--ox); color: var(--paper); overflow: hidden; }
.process__pin { padding-block: clamp(56px, 7vw, 104px); display: flex; flex-direction: column; gap: clamp(32px, 4vw, 56px); }
.process__head { display: grid; gap: 18px; }
.process__head .label { padding-top: 16px; border-top: 1px solid var(--bone-line); }
.process__title { font-stretch: 125%; font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -.02em; max-width: 22ch; }
.process__track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-inline: var(--gutter); }
.step { display: flex; flex-direction: column; padding: 8px; border-radius: var(--r-lg); background: var(--bone-13); }
.step__media { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: rgb(0 0 0 / .15); }
.step__media img { width: 100%; height: 100%; object-fit: cover; }
.step__body { display: grid; gap: 8px; padding: 18px 12px 14px; }
.step__num { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--bone-60); }
.step__title { font-stretch: 112%; font-weight: 600; font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.15; }
.step__text { color: var(--bone-60); font-size: 15px; }
.step--end { display: none; }
.process__progress { display: none; }
.process.is-horizontal .process__panel { height: calc(100vh - 24px); height: calc(100svh - 24px); }
.process.is-horizontal .process__pin { height: 100%; padding-block: 96px 32px; justify-content: space-between; }
.process.is-horizontal .process__track { display: flex; width: max-content; }
.process.is-horizontal .step { width: clamp(300px, 26vw, 400px); flex: none; }
.process.is-horizontal .step--end { display: grid; place-content: center; justify-items: center; gap: 18px; width: clamp(300px, 26vw, 400px); background: var(--paper); color: #793C38; margin-right: var(--gutter); }
.process.is-horizontal .step--end .mark { width: 120px; }
.process.is-horizontal .process__progress { display: block; margin-inline: var(--gutter); height: 2px; border-radius: 2px; background: var(--bone-line); overflow: hidden; }
.process__progress span { display: block; height: 100%; background: var(--paper); transform-origin: left; transform: scaleX(0); }

/* ==========================================================================
   Live map
   ========================================================================== */
.global__top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px var(--gutter); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.global__top .section__title { margin-bottom: 0; }
.global__text { max-width: 42ch; color: var(--fg-2); justify-self: end; }

.live { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.live__list { display: grid; gap: 8px; align-content: start; }
.place {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "dot name time" "dot offset state";
  align-items: center; gap: 2px 12px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--surface);
  text-align: left;
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.place:hover { transform: translateX(4px); }
.place.is-active { background: var(--ox); color: var(--paper); }
.place__dot { grid-area: dot; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.place.is-active .place__dot { background: var(--paper); box-shadow: 0 0 0 4px var(--bone-13); }
.place__name { grid-area: name; font-stretch: 112%; font-weight: 600; font-size: 16px; }
.place__time { grid-area: time; font-family: var(--mono); font-size: 16px; font-variant-numeric: tabular-nums; }
.place__offset, .place__state { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--fg-2); }
.place__offset { grid-area: offset; }
.place__state { grid-area: state; justify-self: end; display: inline-flex; align-items: center; gap: 6px; }
.place__state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; }
.place__state.is-working::before { background: currentColor; }
.place.is-active .place__offset, .place.is-active .place__state { color: var(--bone-60); }

.map { position: relative; border-radius: var(--r-lg); background: var(--surface); padding: clamp(10px, 2.4vw, 32px); overflow: hidden; }
.map__canvas { position: relative; aspect-ratio: 862 / 450; }
.map__land, .map__active { position: absolute; inset: 0; -webkit-mask: var(--src) center / 100% 100% no-repeat; mask: var(--src) center / 100% 100% no-repeat; }
.map__land { background: var(--map-land); }
.map__active { background: var(--map-active); }
.map__arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.map__arc { fill: none; stroke: var(--accent); stroke-width: 1.3; vector-effect: non-scaling-stroke; stroke-dasharray: 3 6; opacity: .5; animation: arcflow 1.4s linear infinite; }
.map__arc.is-hot { opacity: 1; stroke-width: 1.8; }
@keyframes arcflow { to { stroke-dashoffset: -18; } }
.map__pin { position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; margin: -15px 0 0 -15px; display: grid; place-items: center; border-radius: 50%; }
.map__dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--surface); transition: transform .4s var(--ease); }
.map__dot::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2.6s var(--ease) infinite; }
.map__pin.is-active .map__dot, .map__pin:hover .map__dot { transform: scale(1.6); }
.map__tip {
  position: absolute; left: var(--tx, 50%); top: var(--ty, 50%); z-index: 3;
  display: grid; gap: 2px;
  padding: 9px 13px;
  border-radius: var(--r-sm);
  background: var(--fg); color: var(--bg);
  white-space: nowrap; pointer-events: none;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, calc(-100% - 18px));
  transition: opacity .35s var(--ease), left .7s var(--ease), top .7s var(--ease), transform .4s var(--ease);
}
.map__tip.is-shown { opacity: 1; }
.map__tip[data-v="below"] { transform: translate(-50%, 18px); }
.map__tip[data-h="left"] { transform: translate(calc(-100% + 22px), calc(-100% - 18px)); }
.map__tip[data-h="left"][data-v="below"] { transform: translate(calc(-100% + 22px), 18px); }
.map__tip[data-h="right"] { transform: translate(-22px, calc(-100% - 18px)); }
.map__tip[data-h="right"][data-v="below"] { transform: translate(-22px, 18px); }
.map__tip strong { font-stretch: 112%; font-weight: 600; font-size: 14px; line-height: 1.2; }
.map__tip-meta { display: flex; gap: 10px; font-family: var(--mono); font-size: 12px; opacity: .75; }

/* ---------- Name ---------- */
.name__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.name__media { aspect-ratio: 4 / 5; border-radius: var(--r-lg); }
.name__body { display: grid; gap: 18px; align-content: center; }
.name__word { font-stretch: 125%; font-weight: 800; font-size: clamp(3rem, 7vw, 6rem); line-height: .95; letter-spacing: -.035em; color: var(--accent); }
.name__text { max-width: 40ch; font-stretch: 112%; font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.35; }

/* ==========================================================================
   Footer — minimal
   ========================================================================== */
.footer { padding-block: clamp(40px, 6vw, 96px) 24px; }
.footer__cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--r-xl);
  background: var(--ox); color: var(--paper);
}
.footer__cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/pattern-bone.svg") 0 0 / 86px auto;
  -webkit-mask-image: linear-gradient(100deg, transparent 50%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 50%, #000 100%);
}
.footer__cta .label { margin-bottom: 12px; }
.footer__title { font-stretch: 125%; font-weight: 800; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.03em; }
.footer__cta-end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.footer__mail { font-family: var(--mono); font-size: 14px; color: var(--bone-60); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.footer__mail:hover { color: var(--paper); background-size: 100% 1px; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 32px; border-bottom: 1px solid var(--line-soft); }
.footer__logo .lockup { width: 116px; font-size: 8.5px; color: var(--accent); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.footer__links--social { color: var(--fg-2); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 20px; font-family: var(--mono); font-size: 12px; color: var(--fg-2); }
.footer__clocks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer__clocks time { color: var(--fg); }
.totop:hover { color: var(--fg); }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.phero { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 112px)); padding-bottom: clamp(40px, 5vw, 72px); }
.phero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px var(--gutter); align-items: end; }
.phero__label { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; }
.phero__title { grid-column: 1 / span 9; font-stretch: 125%; font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 4.4rem); line-height: 1.04; letter-spacing: -.028em; color: var(--accent); }
.phero__lead { grid-column: 1 / span 6; font-size: clamp(16px, 1.3vw, 19px); color: var(--fg-2); max-width: 48ch; }
.phero__aside { grid-column: 8 / -1; justify-self: end; text-align: right; }
.phero__media { margin-top: clamp(32px, 4vw, 56px); aspect-ratio: 16 / 7; border-radius: var(--r-xl); }

/* Work index */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); }
.filter { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 10px 18px; border-radius: 999px; background: var(--surface); transition: background-color .3s, color .3s; }
.filter:hover { background: var(--surface-2); }
.filter.is-on { background: var(--fg); color: var(--bg); }
.worklist { margin-top: clamp(64px, 8vw, 128px); display: grid; gap: 6px; }
.worklist__row a {
  display: grid; grid-template-columns: 50px minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr) 80px;
  gap: 20px; align-items: center;
  padding: 18px 20px;
  border-radius: var(--r);
  background: var(--surface);
  transition: background-color .3s, color .3s, transform .5s var(--ease);
}
.worklist__row a:hover { background: var(--ox); color: var(--paper); transform: translateX(6px); }
.worklist__row a:hover .label { color: var(--bone-60); }
.worklist__title { font-stretch: 112%; font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.2; }
.worklist__row .label:last-child { text-align: right; }

/* Case study */
.case__media { aspect-ratio: 16 / 9; position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--ox); container-type: inline-size; isolation: isolate; }
.case__media--phone, .case__media--apps { background: var(--stone-ground); }
.case__media .mock { font-size: clamp(6px, 1.05cqi, 14px); }
.case__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-block: clamp(32px, 4vw, 64px); }
.fact { padding: 18px; border-radius: var(--r); background: var(--surface); display: grid; gap: 8px; align-content: start; }
.fact__value { font-size: 16px; }
.case__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gutter); }
.case__block { grid-column: 3 / span 8; padding-block: 28px; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: 180px 1fr; gap: 24px; }
.case__block h2 { font-stretch: 112%; font-weight: 600; font-size: 20px; line-height: 1.3; color: var(--accent); }
.case__block p { font-size: 17px; }
.case__next { display: block; margin-top: var(--section); padding: clamp(28px, 4vw, 56px); border-radius: var(--r-xl); background: var(--surface); transition: background-color .4s, color .4s; }
.case__next:hover { background: var(--ox); color: var(--paper); }
.case__next:hover .label--ox { color: var(--bone-60); }
.case__next-title { display: block; margin-top: 12px; font-stretch: 125%; font-weight: 700; font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1.02; letter-spacing: -.025em; }

/* Services page */
.svcd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line-soft); scroll-margin-top: 100px; }
.svcd:nth-of-type(even) .svcd__media { order: -1; }
.svcd__main { display: grid; gap: 14px; align-content: start; }
.svcd__title { font-stretch: 112%; font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.08; letter-spacing: -.012em; }
.svcd__lead { font-size: 18px; }
.svcd__long { color: var(--fg-2); max-width: 52ch; }
.svcd__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.svcd__list li { padding: 8px 14px; border-radius: 999px; background: var(--surface); font-size: 14px; }
.svcd__media { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.band { padding: 12px var(--gutter); }
.band__panel { position: relative; overflow: hidden; isolation: isolate; max-width: calc(var(--max) + 120px); margin-inline: auto; border-radius: var(--r-xl); background: var(--ox); color: var(--paper); }
.band__pattern { position: absolute; inset: 0; z-index: -1; background: url("../img/pattern-bone.svg") 0 0 / 86px auto; -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); mask-image: linear-gradient(90deg, transparent 40%, #000); }
.band__inner { display: grid; gap: 20px; padding: clamp(40px, 7vw, 112px) clamp(24px, 6vw, 96px); }
.band__text { font-stretch: 112%; font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.15; letter-spacing: -.015em; max-width: 24ch; }
.two { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px var(--gutter); }
.two .section__title { margin-top: 12px; }
.faq { display: grid; gap: 8px; }
.faq details { border-radius: var(--r); background: var(--surface); padding-inline: 22px; transition: background-color .3s; }
.faq details[open] { background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 20px 0; font-stretch: 112%; font-weight: 600; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.3; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); font-family: var(--mono); font-weight: 400; font-size: 18px; color: var(--accent); transition: transform .5s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { overflow: hidden; }
.faq details p { padding-bottom: 22px; max-width: 64ch; color: var(--fg-2); }

/* Studio values */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.value { display: grid; gap: 12px; align-content: start; padding: 10px 10px 22px; border-radius: var(--r-lg); background: var(--surface); }
.value__media { aspect-ratio: 3 / 2; border-radius: var(--r); margin-bottom: 8px; }
.value > .label, .value h3, .value p { padding-inline: 12px; }
.value h3 { font-stretch: 112%; font-weight: 600; font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.2; color: var(--accent); }
.value p { color: var(--fg-2); }

/* Contact */
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gutter); }
.contact__form { grid-column: 1 / span 7; }
.contact__aside { grid-column: 9 / -1; display: grid; gap: 28px; align-content: start; }
.contact__media { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.contact__block .label { display: block; margin-bottom: 10px; }
.contact__block a { font-stretch: 112%; font-weight: 600; font-size: clamp(1.1rem, 1.5vw, 1.35rem); }
.clocks li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.clocks time { font-size: 14px; }
.field { display: grid; gap: 8px; margin-bottom: 26px; }
.field label, .field legend { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); padding: 0; }
.field input, .field textarea, .field select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 19px; border-radius: 0; -webkit-appearance: none; appearance: none; transition: border-color .3s; }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.field ::placeholder { color: #8d8c86; }
.field__error { color: var(--accent); font-size: 14px; font-weight: 600; }
.field.has-error input, .field.has-error textarea { border-bottom-color: var(--accent); }
fieldset.field { border: 0; margin: 0 0 26px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span, .chips .chip span { display: inline-block; }
.chips label { position: relative; }
.chips label input { position: absolute; opacity: 0; pointer-events: none; }
.chips label span { display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--surface); cursor: pointer; transition: background-color .3s, color .3s; user-select: none; }
.chips label span:hover { background: var(--surface-2); }
.chips label input:checked + span { background: var(--ox); color: var(--paper); }
.chips label input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* honeypot: hidden without off-screen offsets (those overflow the page in RTL) */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.notice { padding: 18px 22px; margin-bottom: 32px; border-radius: var(--r); background: var(--surface); border-left: 4px solid var(--ox); }
.notice strong { color: var(--accent); font-stretch: 112%; }
.form-foot { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.form-foot p { font-size: 13px; color: var(--fg-2); max-width: 40ch; }

/* Custom select */
.select { position: relative; }
.select__native { position: absolute !important; opacity: 0; pointer-events: none; width: 1px !important; height: 1px; }
.select__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 19px; text-align: left; }
.select__btn:focus-visible { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.select__value.is-placeholder { color: #8d8c86; }
.select__chev { width: 14px; height: 14px; flex: none; transition: transform .5s var(--ease); }
.select.is-open .select__chev { transform: rotate(180deg); }
.select__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20;
  padding: 6px;
  border-radius: var(--r);
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line-soft), var(--shadow);
  clip-path: inset(0 0 100% 0 round var(--r)); opacity: 0; visibility: hidden;
  transition: clip-path .6s var(--ease), opacity .4s var(--ease), visibility 0s .6s;
}
.select.is-open .select__list { clip-path: inset(0 0 0 0 round var(--r)); opacity: 1; visibility: visible; transition: clip-path .6s var(--ease), opacity .3s var(--ease), visibility 0s; }
.select__opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: var(--r-sm); font-size: 16px; cursor: pointer; isolation: isolate; overflow: hidden; transform: translateY(8px); opacity: 0; transition: transform .5s var(--ease), opacity .4s var(--ease), color .3s; transition-delay: calc(var(--i) * 30ms); }
.select.is-open .select__opt { transform: none; opacity: 1; }
.select__opt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ox); clip-path: inset(0 100% 0 0); transition: clip-path .45s var(--ease); }
.select__opt.is-active { color: var(--paper); }
.select__opt.is-active::before { clip-path: inset(0 0 0 0); }
.select__opt::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; transform: scale(0); transition: transform .4s var(--ease); }
.select__opt[aria-selected="true"]::after { transform: scale(1); }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--header-h) var(--gutter) 0; }
.nf__num { font-stretch: 125%; font-weight: 800; font-size: clamp(6rem, 22vw, 15rem); line-height: .85; letter-spacing: -.04em; color: var(--accent); }
.nf__bg { display: none; }
.nf .label--bone { color: var(--fg-2); }

/* ==========================================================================
   Motion
   ========================================================================== */
.motion .line-draw { border-top-color: transparent !important; position: relative; }
.motion .line-draw::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1.5s var(--ease); }
.motion .line-draw.is-drawn::after { transform: none; }
.motion [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-fade] { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.motion.is-ready [data-fade] { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span { display: block; }
.motion [data-split] .split-line > span { transform: translateY(110%) rotate(3deg); transform-origin: 0 100%; transition: transform 1.3s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.motion [data-split].is-in .split-line > span { transform: none; }
.motion [data-hero-media] { clip-path: inset(8% 6% 0 6% round var(--r-xl)); transition: clip-path 1.6s var(--ease) .15s; }
.motion.is-ready [data-hero-media] { clip-path: inset(0 0 0 0 round var(--r-xl)); }
.intro__text .w { transition: opacity .2s linear; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .header__status { display: none; }
  .navlink { padding: 8px 12px; }
}
@media (max-width: 1100px) {
  .intro__grid, .intro__grid--flip, .name__grid { grid-template-columns: 1fr 1fr; }
  .process__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live { grid-template-columns: 1fr; }
  .live__list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); order: 2; }
  .phero__title, .phero__lead { grid-column: 1 / -1; }
  .case__block { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --header-h: 80px; }
  .header { inset: 10px 0 auto 0; }
  .header__bar { height: 60px; padding-inline: 22px 8px; gap: 8px; }
  .header.is-scrolled .header__bar { height: 56px; }
  .header__nav, .header__cta { display: none; }
  .burger { display: block; }
  .header__logo { width: 92px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 4 / 4.4; border-radius: var(--r-lg); }
  .motion [data-hero-media] { clip-path: inset(6% 4% 0 4% round var(--r-lg)); }
  .motion.is-ready [data-hero-media] { clip-path: inset(0 0 0 0 round var(--r-lg)); }
  .phero__media { aspect-ratio: 4 / 3.4; border-radius: var(--r-lg); }
  .intro__grid, .intro__grid--flip, .name__grid { grid-template-columns: 1fr; }
  .intro__grid--flip .intro__media { order: -1; }
  .intro__media, .name__media { aspect-ratio: 4 / 3.4; }
  .work__grid { grid-template-columns: 1fr; }
  .card--lg, .card--md { grid-column: auto; }
  .work__grid .card:nth-child(n) { margin-top: 0; }
  .card__media, .card--lg .card__media { aspect-ratio: 4 / 3.4; }
  .mock { font-size: clamp(5px, 1.9cqi, 12px); }
  .card__summary { padding-left: 0; }
  .svc-grid { grid-template-columns: 1fr; }
  .global__top { grid-template-columns: 1fr; }
  .global__text { justify-self: start; }
  .phero__aside { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .worklist__row a { grid-template-columns: 34px 1fr auto; }
  .worklist__row a > :nth-child(3), .worklist__row a > :nth-child(4) { display: none; }
  .case__facts { grid-template-columns: 1fr 1fr; }
  .case__block { grid-template-columns: 1fr; gap: 10px; }
  .svcd { grid-template-columns: 1fr; }
  .svcd:nth-of-type(even) .svcd__media { order: 0; }
  .two { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .contact__form, .contact__aside { grid-column: 1 / -1; }
  .row2 { grid-template-columns: 1fr; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .section__head { flex-direction: column; gap: 6px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__badges { left: 10px; right: 10px; bottom: 10px; }
  .badge { min-width: 0; flex: 1 1 0; padding: 12px 14px; }
  .badge strong { font-size: 22px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:last-child { grid-column: 1 / -1; }
  .process__track { grid-template-columns: 1fr; }
  .live__list { grid-template-columns: 1fr; }
  .map { padding: 8px; border-radius: var(--r); }
  .map__tip { padding: 7px 10px; }
  .map__tip strong { font-size: 13px; }
  .map__tip-meta { font-size: 11px; }
  .footer__cta { border-radius: var(--r-lg); }
  .footer__cta-end { width: 100%; }
  .footer__cta-end .btn { width: 100%; }
  .footer__base { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .motion [data-reveal], .motion [data-fade], .motion [data-split] .split-line > span { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
  .js .loader { display: none; }
}

/* ==========================================================================
   Persian / RTL
   ========================================================================== */
:root[lang="fa"] {
  --font: "Vazirmatn", "Archivo", system-ui, sans-serif;
  --mono: "Vazirmatn", "JetBrains Mono", ui-monospace, monospace;
}
/* Connected script: never letter-space Persian */
:lang(fa), :lang(fa) * { letter-spacing: 0 !important; }
:root[lang="fa"] .lockup__studio { letter-spacing: .46em !important; }
:root[lang="fa"] body { line-height: 1.95; font-size: 16.5px; }
:root[lang="fa"] .label, :root[lang="fa"] .chip, :root[lang="fa"] .tag, :root[lang="fa"] .filter,
:root[lang="fa"] .header__status, :root[lang="fa"] .field label, :root[lang="fa"] .field legend {
  text-transform: none; font-weight: 500;
}
:root[lang="fa"] .label { font-size: 13px; line-height: 1.6; }
:root[lang="fa"] .chip, :root[lang="fa"] .header__status { font-size: 12.5px; }
:root[lang="fa"] .hero__title, :root[lang="fa"] .phero__title, :root[lang="fa"] .section__title,
:root[lang="fa"] .process__title, :root[lang="fa"] .footer__title, :root[lang="fa"] .name__word,
:root[lang="fa"] .case__next-title, :root[lang="fa"] .menu__link, :root[lang="fa"] .marquee__word,
:root[lang="fa"] .nf__num {
  font-weight: 800; line-height: 1.4;
}
:root[lang="fa"] .hero__title { font-size: clamp(2rem, 4.2vw, 3.9rem); }
:root[lang="fa"] .hero__title em { line-height: 1.3; padding: 0 .18em .04em; }
:root[lang="fa"] .marquee__word { line-height: 1.5; }
:root[lang="fa"] .intro__text, :root[lang="fa"] .band__text, :root[lang="fa"] .name__text { line-height: 1.75; font-weight: 600; }
:root[lang="fa"] .svc-card__title, :root[lang="fa"] .svcd__title, :root[lang="fa"] .card__title,
:root[lang="fa"] .step__title, :root[lang="fa"] .value h3, :root[lang="fa"] .worklist__title { font-weight: 700; line-height: 1.5; }
:root[lang="fa"] .stat__value, :root[lang="fa"] .badge strong { font-weight: 800; }
:root[lang="fa"] .split-line { padding-bottom: .18em; margin-bottom: -.18em; }

/* Things that stay left-to-right in any language */
.mock, .map__canvas, .lockup, .header__logo, .footer__logo, .langsw[lang="en"], .menu__lang[lang="en"] { direction: ltr; }
a[href^="tel:"], a[href^="mailto:"], .place__offset, .place__time, time { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .map__tip { direction: rtl; text-align: right; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"] { direction: ltr; text-align: right; }

/* Mirror direction-dependent layout */
[dir="rtl"] .ulink--arrow::after { content: "←"; }
[dir="rtl"] .ulink--arrow:hover::after { transform: translateX(-4px); }
[dir="rtl"] .dot--live { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .header__end { margin-left: 0; margin-right: auto; }
[dir="rtl"] .hero__badges { left: auto; right: clamp(12px, 2vw, 24px); }
[dir="rtl"] .card__summary { padding-left: 0; padding-right: calc(2ch + 18px); }
[dir="rtl"] .svc-card__arrow { right: auto; left: 22px; }
[dir="rtl"] .process.is-horizontal .step--end { margin-right: 0; margin-left: var(--gutter); }
[dir="rtl"] .place { text-align: right; }
[dir="rtl"] .place:hover { transform: translateX(-4px); }
[dir="rtl"] .phero__aside { text-align: left; }
[dir="rtl"] .worklist__row a:hover { transform: translateX(-6px); }
[dir="rtl"] .worklist__row .label:last-child { text-align: left; }
[dir="rtl"] .notice { border-left: 0; border-right: 4px solid var(--ox); }
[dir="rtl"] .select__btn { text-align: right; }
[dir="rtl"] .credit { direction: ltr; text-align: left; }
[dir="rtl"] .progress span, [dir="rtl"] .process__progress span, [dir="rtl"] .motion .line-draw::after { transform-origin: right; }
[dir="rtl"] .motion [data-split] .split-line > span { transform-origin: 100% 100%; transform: translateY(110%) rotate(-3deg); }
[dir="rtl"] .motion [data-split].is-in .split-line > span { transform: none; }

/* Arrows point the reading direction */
[dir="rtl"] .btn__arrow, [dir="rtl"] .svc-card__arrow svg, [dir="rtl"] .menu__arrow { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) { [dir="rtl"] .btn:hover .btn__arrow { animation-name: arrow-swap-rtl; } }
@keyframes arrow-swap-rtl { 0% { transform: scaleX(-1); } 40% { transform: translateX(-160%) scaleX(-1); opacity: 0; } 41% { transform: translateX(160%) scaleX(-1); opacity: 0; } 100% { transform: scaleX(-1); opacity: 1; } }
@media (hover: hover) { [dir="rtl"] .svc-card:hover .svc-card__arrow { transform: rotate(-45deg); } }

/* Marquee runs the other way in RTL */
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* Language switch */
/* line-height 1 so the label sits in the optical centre of the circle (body line-height is ~2 in Persian) */
.langsw {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  line-height: 1;
  border-radius: 50%;
  background: var(--surface); color: var(--fg);
  font-family: "Vazirmatn", var(--font); font-size: 13px; font-weight: 700;
  transition: background-color .3s, color .3s;
}
.langsw[lang="en"] { font-family: var(--mono); font-size: 12px; letter-spacing: .06em !important; text-indent: .06em; padding-top: 1px; }
.langsw:hover { background: var(--fg); color: var(--bg); }
.menu__lang { font-weight: 700; background: var(--bone-13); }
@media (max-width: 900px) {
  [dir="rtl"] .card__summary { padding-right: 0; }
  [dir="rtl"] .phero__aside { text-align: right; }
}
@media (max-width: 560px) {
  [dir="rtl"] .hero__badges { left: 10px; right: 10px; }
}
/* ==========================================================================
   Process page
   ========================================================================== */
.process__headrow { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; border-top: 1px solid var(--bone-line); }
.process__head .process__headrow .label { padding-top: 0; border-top: 0; }

.pov { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: pov; }
.pov__item a {
  display: grid; gap: 6px; height: 100%;
  padding: 20px; border-radius: var(--r);
  background: var(--surface);
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.pov__item a:hover { background: var(--ox); color: var(--paper); transform: translateY(-3px); }
.pov__item a:hover .label, .pov__item a:hover .pov__time { color: var(--bone-60); }
.pov__item strong { font-stretch: 112%; font-weight: 600; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.25; }
.pov__time { font-size: 14px; color: var(--fg-2); }

.psteps { display: grid; gap: clamp(48px, 7vw, 96px); }
.pstep { display: grid; grid-template-columns: clamp(56px, 9vw, 120px) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); scroll-margin-top: 110px; }
.pstep__rail { position: relative; }
.pstep__rail::after { content: ""; position: absolute; top: 72px; bottom: calc(clamp(48px, 7vw, 96px) * -1); inset-inline-start: 50%; width: 1px; background: var(--line-soft); }
.pstep:last-child .pstep__rail::after { display: none; }
.pstep__num {
  position: sticky; top: 110px;
  display: grid; place-items: center;
  width: clamp(56px, 7vw, 76px); aspect-ratio: 1; margin-inline: auto;
  border-radius: 50%;
  background: var(--ox); color: var(--paper);
  font-stretch: 125%; font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.3rem);
}
.pstep__body { display: grid; gap: 20px; }
.pstep__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.pstep__title { font-stretch: 125%; font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.08; letter-spacing: -.02em; color: var(--accent); }
.pstep__text { font-size: clamp(16px, 1.3vw, 19px); max-width: 60ch; color: var(--fg-2); }
.pstep__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.pstep__card { padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r-lg); background: var(--surface); display: grid; gap: 16px; }
.checks { display: grid; gap: 4px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.checks li:first-child { border-top: 0; }
.checks li::before {
  content: ""; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--ox) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%23F2EFE8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.pstep__side { display: grid; gap: 14px; }
.pstep__media { aspect-ratio: 3 / 2; border-radius: var(--r-lg); }
.pstep__you { padding: 18px 20px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-soft); display: grid; gap: 6px; }
.pstep__you p { font-size: 15.5px; }

.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.model { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r-lg); background: var(--surface); transition: background-color .4s, color .4s; }
.model:first-child { background: var(--ox); color: var(--paper); }
.model:first-child .tag { color: var(--paper); }
.model:first-child p { color: var(--bone-60); }
.model h3 { font-stretch: 112%; font-weight: 700; font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.2; }
.model p { color: var(--fg-2); }
.band__inner .hero__actions { margin-top: 8px; }

/* ==========================================================================
   Header login button + mobile menu login
   ========================================================================== */
.login-btn {
  height: 44px; flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: var(--surface); color: var(--fg);
  font-stretch: 112%; font-weight: 600; font-size: 14px;
  transition: background-color .3s, color .3s;
}
.login-btn svg { width: 20px; height: 20px; flex: none; }
.login-btn:hover, .login-btn.is-active { background: var(--fg); color: var(--bg); }
@media (max-width: 1280px) { .login-btn { width: 44px; padding: 0; justify-content: center; } .login-btn__text { display: none; } }
@media (max-width: 900px) { .login-btn { display: none; } }
.menu__ctas { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.menu__login {
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--bone-line);
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.menu__login svg { width: 20px; height: 20px; }
@media (max-width: 380px) { .menu__ctas { grid-template-columns: 1fr; } .menu__login { justify-content: center; } }

/* ==========================================================================
   Login page
   ========================================================================== */
.login { padding-top: calc(var(--header-h) + clamp(28px, 4vw, 56px)); padding-bottom: clamp(40px, 6vw, 96px); }
.login__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(12px, 1.6vw, 20px); align-items: stretch; }
.login__brand {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 560px;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--r-xl);
  background: var(--ox); color: var(--paper);
}
.login__pattern { position: absolute; inset: 0; z-index: -1; background: url("../img/pattern-bone.svg") 0 0 / 86px auto; -webkit-mask-image: linear-gradient(160deg, #000, transparent 55%); mask-image: linear-gradient(160deg, #000, transparent 55%); }
.login__mark { width: 84px; color: var(--paper); }
.login__title { font-stretch: 125%; font-weight: 800; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.05; letter-spacing: -.025em; margin: 12px 0 24px; }
.login__perks { display: grid; gap: 10px; }
.login__perks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; color: var(--bone-60); }
.login__perks li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%23793C38' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.login__panel { display: grid; align-content: center; gap: 14px; padding: clamp(28px, 4vw, 64px); border-radius: var(--r-xl); background: var(--surface); }
.login__heading { font-stretch: 125%; font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.1; letter-spacing: -.02em; color: var(--accent); }
.login__sub { color: var(--fg-2); max-width: 44ch; margin-bottom: 8px; }
.login__form { display: grid; }
.login__form .field input { background: transparent; }
.login__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.login__forgot { font-size: 13px; color: var(--fg-2); }
.login__pass { position: relative; }
.login__pass input { padding-inline-end: 44px; }
.login__eye { position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; color: var(--fg-2); border-radius: 50%; }
.login__eye svg { width: 20px; height: 20px; }
.login__eye[aria-pressed="true"] { color: var(--accent); }
.login__remember { display: inline-flex; align-items: center; gap: 10px; margin: -6px 0 22px; font-size: 15px; cursor: pointer; }
.login__remember input { width: 18px; height: 18px; accent-color: var(--ox); }
.login__submit { width: 100%; }
.login__alt { margin-top: 10px; color: var(--fg-2); font-size: 15px; }
.login__alt a { color: var(--fg); font-weight: 600; }
.login .notice { margin-bottom: 18px; }

@media (max-width: 1100px) { .pov { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .pstep { grid-template-columns: 1fr; }
  .pstep__rail { display: none; }
  .pstep__grid { grid-template-columns: 1fr; }
  .models { grid-template-columns: 1fr; }
  .login__grid { grid-template-columns: 1fr; }
  .login__brand { min-height: 0; }
  .login__panel { order: -1; }
}
@media (max-width: 560px) { .pov { grid-template-columns: 1fr; } }
:root[lang="fa"] .pstep__title, :root[lang="fa"] .login__title, :root[lang="fa"] .login__heading { font-weight: 800; line-height: 1.4; }

/* ---------- Project cover images (set in Admin → Projects) ---------- */
.media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
@media (hover: hover) and (pointer: fine) { .card__link:hover .media-img { transform: scale(1.035); } }
.draftbar { position: fixed; z-index: 90; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--ox); color: var(--paper); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); white-space: nowrap; }
.draftbar .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.draftbar .ulink { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* ==========================================================================
   Smooth hover — one soft curve and slower timing for everything the pointer
   touches, so nothing snaps. (Same properties as above; only timing changes.)
   ========================================================================== */
:root {
  --hover-ease: cubic-bezier(.25, .8, .25, 1); /* gentle start, long soft landing */
  --hover: .6s;
}
.navlink, .filter, .chips label span, .langsw, .login-btn, .totop,
.card__title, .svc-card__text, .label, .label--ox, .pov__time {
  transition: color var(--hover) var(--hover-ease), background-color var(--hover) var(--hover-ease);
}
.svc-card, .case__next { transition: background-color .7s var(--hover-ease), color .7s var(--hover-ease); }
.worklist__row a, .pov__item a, .place {
  transition: background-color .7s var(--hover-ease), color .7s var(--hover-ease), transform .8s var(--hover-ease);
}
.mode { transition: transform .8s var(--hover-ease), background-color var(--hover) var(--hover-ease); }
.map__dot { transition: transform .7s var(--hover-ease); }
.svc-card__arrow { transition: transform .9s var(--hover-ease); }
.ulink { transition: background-size .8s var(--hover-ease); }
.ulink--arrow::after { transition: transform .7s var(--hover-ease); }
.footer__mail { transition: background-size .8s var(--hover-ease), color var(--hover) var(--hover-ease); }
.btn { transition: color .7s var(--hover-ease); }
.btn::before { transition: clip-path .9s var(--hover-ease); }
.header__pill { transition: transform .65s var(--hover-ease), width .65s var(--hover-ease), opacity .4s var(--hover-ease); }
.media-img { transition: transform 1.6s var(--hover-ease); }
@media (prefers-reduced-motion: reduce) {
  .navlink, .filter, .chips label span, .langsw, .login-btn, .totop, .card__title, .svc-card__text, .label, .label--ox, .pov__time,
  .svc-card, .case__next, .worklist__row a, .pov__item a, .place, .mode, .map__dot, .svc-card__arrow, .ulink, .ulink--arrow::after,
  .footer__mail, .btn, .btn::before, .header__pill, .media-img { transition-duration: .01ms !important; }
}
