/* ============================================================
   RAZAN — PORTFOLIO DESIGN SYSTEM
   Warm ivory editorial · charcoal ink · muted rose accent
   Light / Dark · LTR / RTL · motion-aware · handcrafted
   ============================================================ */

/* ---------- 1. FONTS (self-hosted) ---------- */

@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/Space-Grotesk-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/Space-Grotesk-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/Space-Grotesk-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/Space-Grotesk-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/Space-Grotesk-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/Space-Grotesk-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/Space-Grotesk-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/Space-Grotesk-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/IBM-Plex-Sans-Arabic-400-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/IBM-Plex-Sans-Arabic-500-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/IBM-Plex-Sans-Arabic-600-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/IBM-Plex-Sans-Arabic-700-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }

/* ---------- 2. TOKENS ---------- */

:root {
  --bg: #F7F5F2;
  --bg-alt: #EFECE5;
  --surface: #FFFFFF;
  --ink: #161412;
  --ink-2: #5A554D;
  --line: #E2DED6;
  --line-strong: rgba(22, 20, 18, 0.38);
  --rose: #B06570;
  --rose-deep: #96535D;
  --rose-soft: rgba(176, 101, 112, 0.1);
  --shadow: 0 24px 60px -30px rgba(22, 20, 18, 0.35);

  --font-sans: "Space Grotesk", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Space Grotesk", system-ui, sans-serif;

  --header-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

html[data-theme="dark"] {
  --bg: #121110;
  --bg-alt: #191713;
  --surface: #1E1C18;
  --ink: #F1EDE5;
  --ink-2: #A49D92;
  --line: #2B2822;
  --line-strong: rgba(241, 237, 229, 0.34);
  --rose: #D28A96;
  --rose-deep: #E0A0AB;
  --rose-soft: rgba(210, 138, 150, 0.12);
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
}

/* ---------- 3. BASE ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

html[dir="rtl"] body {
  font-family: var(--font-ar);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--rose); color: #fff; }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: fixed;
  top: -60px;
  inset-inline-start: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.85rem;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 14px; }

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

main { position: relative; z-index: 1; }

section { scroll-margin-top: calc(var(--header-h) + 10px); }

.section { padding-block: clamp(5rem, 11vw, 8.5rem); }
.section-alt { background: var(--bg-alt); }

/* ---------- 4. PROGRESS + HEADER ---------- */

.progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 2px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--rose);
  transition: width 0.1s linear;
}

.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.14em;
}
.brand-mark { color: var(--rose); flex: none; }

.site-nav {
  display: flex;
  gap: 2.2rem;
  margin-inline-start: auto;
}
.site-nav a {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-block: 6px;
  position: relative;
  transition: color 0.3s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--rose);
  transition: width 0.35s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { width: 100%; }

.header-tools { display: flex; align-items: center; gap: 18px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
}
.lang-btn {
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--ink-2);
  transition: all 0.3s var(--ease);
  font-weight: 600;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active { background: var(--ink); color: var(--bg); }
.lang-sep { color: var(--line-strong); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.theme-toggle:hover { border-color: var(--rose); color: var(--rose); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.menu-toggle { display: none; }

/* ---------- 5. BUTTONS ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: all 0.35s var(--ease);
  white-space: nowrap;
  position: relative;
}
.btn-sm { padding: 10px 20px; font-size: 0.8rem; }
.btn-lg { padding: 17px 36px; }

.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: var(--rose); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -14px var(--rose); }

.btn-outline { border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--rose); color: var(--rose); transform: translateY(-2px); }

.btn-text {
  padding: 10px 4px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
}
.btn-text:hover { color: var(--rose); border-bottom-color: var(--rose); }

/* ---------- 6. SECTION HEADS ---------- */

.sec-head { margin-bottom: clamp(3.2rem, 7vw, 5.5rem); }

.sec-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.sec-num {
  font-weight: 700;
  color: var(--rose);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}
.sec-line {
  display: block;
  height: 1px;
  width: 56px;
  background: var(--line-strong);
}

.sec-title {
  font-size: clamp(2.5rem, 6.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 16em;
}
html[dir="rtl"] .sec-title { letter-spacing: 0; }

.sec-intro {
  margin-top: 20px;
  max-width: 44em;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.sub-head {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.sub-head .sec-num { font-size: 0.85rem; }
html[dir="rtl"] .sub-head { letter-spacing: 0.05em; }

/* ---------- 7. HERO ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 40px) 90px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 90px);
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 78%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 26px;
}
.hero-kicker .brand-mark { color: var(--rose); }
html[dir="rtl"] .hero-kicker { letter-spacing: 0.05em; }

.hero-name {
  font-size: clamp(4.2rem, 17vw, 12.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  position: relative;
  max-width: 100%;
}
.hero-name-mark {
  color: var(--rose);
  font-weight: 400;
  font-size: 0.26em;
  display: inline-block;
  transform: translateY(-0.72em);
  margin-inline-start: 0.04em;
  line-height: 0;
}

.hero-statement {
  margin-top: 38px;
  max-width: 36em;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.55;
  color: var(--ink);
}
html[dir="rtl"] .hero-statement { line-height: 1.7; }

.hero-ctas {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero-notes {
  margin-top: clamp(4rem, 10vw, 7rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0;
  border-block: 1px solid var(--line);
}
.note {
  padding: 22px 8px 18px 0;
  padding-inline-start: 0;
  padding-inline-end: 8px;
}
.note:not(:first-child) { border-inline-start: 1px solid var(--line); padding-inline-start: 26px; }
.note-num {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.note dd {
  margin-top: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  text-transform: uppercase;
}
html[dir="rtl"] .note dd { letter-spacing: 0; text-transform: none; }

.hero-scroll {
  position: absolute;
  bottom: 26px;
  inset-inline-start: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero-scroll-line {
  display: block;
  width: 70px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: -40px;
  width: 40px;
  height: 100%;
  background: var(--rose);
  animation: scrollline 2.6s var(--ease) infinite;
}
@keyframes scrollline {
  0% { transform: translateX(0); }
  100% { transform: translateX(110px); }
}
html[dir="rtl"] .hero-scroll-line::after {
  animation-name: scrollline-rtl;
}
@keyframes scrollline-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(-110px); }
}

/* ---------- 8. MARQUEE ---------- */

.marquee {
  border-block: 1px solid var(--line);
  padding-block: 18px;
  overflow: hidden;
  background: var(--bg-alt);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
  gap: 0;
}
html[dir="rtl"] .marquee-track { animation-direction: reverse; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-inline-end: 28px;
  font-size: 0.82rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.marquee-item::after {
  content: "✚";
  color: var(--rose);
  font-size: 0.7rem;
}
html[dir="rtl"] .marquee-item { letter-spacing: 0.05em; text-transform: none; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 9. SELECTED WORK ---------- */

.work-item {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
}
.work-item:last-child { border-bottom: 1px solid var(--line); }

.work-item:nth-child(even) .work-figure { order: 2; }
.work-item:nth-child(even) .work-meta { order: 1; }

.work-figure {
  position: relative;
}
.work-figure::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  inset-inline-end: -18px;
  inset-inline-start: 18px;
  border: 1px solid var(--rose);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.work-item:hover .work-figure::before { opacity: 0.8; }

.work-shot {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.work-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.work-item:hover .work-shot img { transform: scale(1.035); }

.work-plate {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.2rem, 3vw, 2rem);
  background:
    radial-gradient(ellipse at 80% 10%, rgba(210, 138, 150, 0.16), transparent 55%),
    var(--ink);
  color: var(--bg);
}
.work-plate .plate-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose-deep);
}
.work-plate .plate-name {
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.work-plate .plate-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 245, 242, 0.66);
}
.work-plate .plate-meta::before {
  content: "✚";
  color: var(--rose);
  font-size: 0.65rem;
}

.work-meta .work-index {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--rose);
  margin-bottom: 22px;
  text-transform: uppercase;
}

.work-name {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
html[dir="rtl"] .work-name { letter-spacing: 0; }

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tag {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--ink-2);
}
html[dir="rtl"] .tag { letter-spacing: 0; text-transform: none; }

.work-desc {
  margin-top: 20px;
  color: var(--ink-2);
  max-width: 34em;
}

.work-feats {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}
.work-feats li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.work-feats li::before {
  content: "✚";
  color: var(--rose);
  font-size: 0.6rem;
  transform: translateY(-2px);
}

.work-links {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.btn-case {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-case:hover { color: var(--rose); border-color: var(--rose); }
.btn-case .case-sign { transition: transform 0.4s var(--ease); display: inline-block; }
.work-item.open .btn-case .case-sign { transform: rotate(45deg); }

/* case study */

.case-study {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
}
.work-item.open .case-study { grid-template-rows: 1fr; }
.case-study > div { overflow: hidden; }

.case-inner {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.case-inner h4 {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 10px;
}
.case-inner p { font-size: 0.95rem; color: var(--ink-2); }
.case-inner ul { display: grid; gap: 8px; }
.case-inner ul li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.case-inner ul li::before {
  content: "✚";
  color: var(--rose);
  font-size: 0.6rem;
  transform: translateY(-2px);
}

/* ---------- 10. ARCHIVE ---------- */

.archive-list { border-top: 1px solid var(--line); }

.archive-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 22px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
  transition: padding-inline-start 0.4s var(--ease), background-color 0.4s var(--ease);
}
.archive-item:hover {
  padding-inline-start: 14px;
  background: var(--rose-soft);
}
.archive-idx {
  font-size: 0.8rem;
  color: var(--rose);
  letter-spacing: 0.1em;
}
.archive-name { font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 600; letter-spacing: -0.01em; }
.archive-cat {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
html[dir="rtl"] .archive-cat { letter-spacing: 0; text-transform: none; }
.archive-arrow { color: var(--ink-2); font-size: 1.05rem; transition: transform 0.35s var(--ease), color 0.35s var(--ease); }
.archive-item:hover .archive-arrow { transform: translateX(6px) rotate(-45deg); color: var(--rose); }
html[dir="rtl"] .archive-item:hover .archive-arrow { transform: translateX(-6px) rotate(135deg); }

.archive-note {
  margin-top: 34px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  text-transform: uppercase;
  text-align: center;
}
html[dir="rtl"] .archive-note { letter-spacing: 0; text-transform: none; }

/* ---------- 11. THE LAB ---------- */

.lab-list { border-top: 1px solid var(--line); }

.lab-item { border-bottom: 1px solid var(--line); }

.lab-row {
  width: 100%;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding-block: 28px;
  text-align: start;
  transition: padding-inline-start 0.4s var(--ease);
}
.lab-item:hover .lab-row { padding-inline-start: 12px; }

.status-chip {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  width: fit-content;
}
.status-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-2);
}
.status-chip.live { color: var(--rose); border-color: color-mix(in srgb, var(--rose) 40%, transparent); }
.status-chip.live::before { background: var(--rose); }
html[dir="rtl"] .status-chip { letter-spacing: 0; text-transform: none; }

.lab-name { font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 600; letter-spacing: -0.01em; }
.lab-cat {
  margin-top: 6px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
html[dir="rtl"] .lab-cat { letter-spacing: 0; text-transform: none; }

.lab-plus {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--rose);
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.lab-item.open .lab-plus { transform: rotate(45deg); background: var(--rose); color: #fff; }

.lab-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
}
.lab-item.open .lab-panel { grid-template-rows: 1fr; }
.lab-panel > div { overflow: hidden; }

.lab-body {
  padding-inline-start: 164px;
  padding-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
}
.lab-body h4 {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 10px;
}
.lab-body p { font-size: 0.94rem; color: var(--ink-2); }
.lab-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lab-tech .tag { cursor: default; }

.lab-note {
  margin-top: 30px;
  font-size: 0.8rem;
  color: var(--ink-2);
  font-style: italic;
  border-inline-start: 2px solid var(--rose);
  padding-inline-start: 14px;
}

/* ---------- 12. BEYOND ---------- */

.beyond {
  padding-block: clamp(5rem, 11vw, 8rem);
  background: var(--ink);
  color: var(--bg);
}
html[data-theme="dark"] .beyond { background: var(--bg-alt); color: var(--ink); }

.beyond-title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 13em;
}
html[dir="rtl"] .beyond-title { letter-spacing: 0; }

.beyond-sub {
  margin-top: 18px;
  color: color-mix(in srgb, var(--bg) 62%, transparent);
  max-width: 36em;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}
html[data-theme="dark"] .beyond-sub { color: var(--ink-2); }

.beyond-words {
  margin-top: clamp(2.8rem, 6vw, 4.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 10px;
}
.beyond-words li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.beyond-words li::after {
  content: "✚";
  color: var(--rose);
  font-size: 0.7rem;
  opacity: 0.7;
}
.beyond-word {
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--bg) 24%, transparent);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
  padding-bottom: 2px;
}
html[dir="rtl"] .beyond-word { letter-spacing: 0; }
html[data-theme="dark"] .beyond-word { color: var(--ink-2); }
.beyond-word:hover {
  color: var(--rose);
  border-color: var(--rose);
}

/* ---------- 13. CAPABILITIES ---------- */

.cap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
.cap-item {
  padding: clamp(1.6rem, 3.4vw, 2.6rem);
  border-inline-end: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.cap-item::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 0;
  height: 3px;
  background: var(--rose);
  transition: width 0.5s var(--ease);
}
.cap-item:hover { background: var(--rose-soft); }
.cap-item:hover::before { width: 100%; }

.cap-num {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--rose);
  margin-bottom: 26px;
}
.cap-title {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 22px;
}
html[dir="rtl"] .cap-title { letter-spacing: 0; }

.cap-meta { display: grid; gap: 14px; }
.cap-meta .cm {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  font-size: 0.9rem;
}
.cm-label {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 6px;
}
html[dir="rtl"] .cm-label { letter-spacing: 0; text-transform: none; }
.cm-text { color: var(--ink-2); }

/* ---------- 14. WHY ROZLAT ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.why-item {
  padding: clamp(1.8rem, 3.6vw, 2.8rem) clamp(1.8rem, 3.6vw, 2.8rem) clamp(2.6rem, 5vw, 4rem);
  border-inline-end: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--ease);
  position: relative;
}
.why-item:nth-child(2n) { border-inline-end: 0; }
.why-item:hover { background: var(--surface); }
.why-num {
  display: block;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--rose);
  line-height: 1;
  margin-bottom: 26px;
}
.why-title {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
html[dir="rtl"] .why-title { letter-spacing: 0; }
.why-text { color: var(--ink-2); max-width: 30em; }

/* ---------- 15. PROCESS ---------- */

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.process-step {
  position: relative;
  text-align: start;
  padding: 26px 22px 22px;
  border-inline-end: 1px solid var(--line);
  transition: background-color 0.4s var(--ease);
}
.process-step:last-child { border-inline-end: 0; }
.process-step:hover { background: var(--rose-soft); }
.process-step .ps-num {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--rose);
  margin-bottom: 14px;
}
.process-step .ps-title {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.process-step .ps-bar {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0;
  background: var(--rose);
  transition: width 0.5s var(--ease);
}
.process-step[aria-selected="true"] { background: var(--rose-soft); }
.process-step[aria-selected="true"] .ps-bar { width: 100%; }

.process-panel {
  margin-top: 30px;
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 120px;
  transition: opacity 0.3s var(--ease);
}
.process-panel p {
  max-width: 42em;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--ink-2);
  line-height: 1.8;
}

/* ---------- 16. PLANS ---------- */

.plans-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-block: 1px solid var(--line);
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.8rem, 3.4vw, 2.6rem);
  border-inline-end: 1px solid var(--line);
  transition: background-color 0.4s var(--ease);
}
.plan:last-child { border-inline-end: 0; }
.plan:hover { background: var(--surface); }
.plan::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0;
  background: var(--rose);
  transition: width 0.5s var(--ease);
}
.plan:hover::before { width: 100%; }

.plan-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.plan-name::before {
  content: "✚";
  color: var(--rose);
  font-size: 0.7rem;
}
.plan-tagline {
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--ink-2);
}
.plan-for {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--ink-2);
  padding: 10px 14px;
  background: var(--rose-soft);
  border-inline-start: 2px solid var(--rose);
}

.plan-feats {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  flex: 1;
}
.plan-feats li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.plan-feats li::before {
  content: "✚";
  color: var(--rose);
  font-size: 0.6rem;
  transform: translateY(-2px);
  flex: none;
}

.plan-price {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.plan-price .pp-month {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.plan-price .pp-month small {
  font-size: 0.62em;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}
.plan-price .pp-setup {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--ink-2);
}

.plan-note {
  margin-top: 18px;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.plan-note b {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 4px;
  font-weight: 600;
}
html[dir="rtl"] .plan-note b { letter-spacing: 0; text-transform: none; }

.plan-cta { margin-top: 24px; }

/* comparison */

.compare {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.compare-table { overflow-x: auto; }
.compare-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.compare-table th, .compare-table td {
  padding: 14px 18px;
  text-align: start;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  vertical-align: middle;
}
.compare-table thead th {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
  white-space: nowrap;
}
.compare-table thead th.plan-col { color: var(--ink); font-weight: 700; }
.compare-table thead th.plan-col .th-mark { color: var(--rose); margin-inline-end: 6px; font-size: 0.7rem; }
.compare-table tbody th {
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.compare-table tbody tr:hover td, .compare-table tbody tr:hover th { background: var(--rose-soft); }
.cmp-yes { color: var(--rose); font-weight: 700; }
.cmp-no { color: var(--line-strong); }
.cmp-text { color: var(--ink-2); font-size: 0.8rem; white-space: nowrap; }

.compare-acc { display: none; }

/* calculator */

.calc {
  margin-top: clamp(3.2rem, 7vw, 5rem);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(1.6rem, 4vw, 3rem);
}
.calc-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
html[dir="rtl"] .calc-title { letter-spacing: 0; }
.calc-intro { margin-top: 8px; color: var(--ink-2); font-size: 0.95rem; }

.calc-body {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.calc-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.calc-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 14px 16px;
  text-align: start;
  font-size: 0.9rem;
  transition: all 0.3s var(--ease);
  border-radius: var(--radius);
  position: relative;
}
.calc-chip:hover { border-color: var(--rose); }
.calc-chip .cc-box {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: all 0.3s var(--ease);
  color: transparent;
}
.calc-chip.is-on {
  border-color: var(--rose);
  background: var(--rose-soft);
}
.calc-chip.is-on .cc-box {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
  font-size: 0.7rem;
}
.calc-chip .cc-label { font-weight: 500; }
.calc-chip .cc-price { margin-inline-start: auto; font-size: 0.78rem; color: var(--ink-2); white-space: nowrap; }

.calc-summary {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.calc-summary h4 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
}
html[dir="rtl"] .calc-summary h4 { letter-spacing: 0; text-transform: none; }
.calc-sum-list { margin-top: 14px; display: grid; gap: 8px; min-height: 24px; }
.calc-sum-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.calc-sum-list li span:last-child { color: var(--ink); font-weight: 600; }
.calc-sum-empty { font-size: 0.85rem; color: var(--ink-2); font-style: italic; }
.calc-total {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.calc-total .ct-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.calc-total .ct-value {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.calc-disclaimer {
  margin-top: 14px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.calc-cta { margin-top: 18px; width: 100%; }

/* ---------- 17. BUILT FOR ---------- */

.built-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
.built-item {
  display: block;
  padding: clamp(1.4rem, 2.8vw, 2.2rem);
  border-inline-end: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  position: relative;
}
.built-item::after {
  content: "↗";
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  color: var(--line-strong);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.built-item:hover { background: var(--ink); color: var(--bg); }
html[data-theme="dark"] .built-item:hover { background: var(--surface); color: var(--ink); }
.built-item:hover::after { color: var(--rose); transform: translate(3px, -3px); }
.built-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  padding-inline-end: 22px;
}
.built-line { font-size: 0.84rem; color: var(--ink-2); line-height: 1.6; }
.built-item:hover .built-line { color: color-mix(in srgb, var(--bg) 62%, transparent); }
html[data-theme="dark"] .built-item:hover .built-line { color: var(--ink-2); }

/* ---------- 18. ABOUT ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.about-bio p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.75;
  color: var(--ink);
  max-width: 30em;
}
.about-bio p + p { margin-top: 18px; }
.about-tags {
  margin-top: 30px !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose) !important;
}
html[dir="rtl"] .about-tags { letter-spacing: 0; text-transform: none; }

.evolve-list { border-top: 1px solid var(--line); }
.evolve-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.evolve-idx {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--rose);
  padding-top: 5px;
  text-transform: uppercase;
}
html[dir="rtl"] .evolve-idx { letter-spacing: 0; }
.evolve-title { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.evolve-text { margin-top: 4px; font-size: 0.88rem; color: var(--ink-2); }

.about-tech { margin-top: clamp(3.5rem, 7vw, 5rem); }

.tech-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px clamp(2rem, 5vw, 4rem);
}
.tech-group .tg-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 12px;
}
html[dir="rtl"] .tech-group .tg-label { letter-spacing: 0; text-transform: none; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 19. FAQ ---------- */

.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  text-align: start;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}
.faq-q:hover { color: var(--rose); }
.faq-sign {
  flex: none;
  color: var(--rose);
  font-size: 1.1rem;
  transition: transform 0.4s var(--ease);
}
.faq-item.open .faq-sign { transform: rotate(45deg); }

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.faq-item.open .faq-panel { grid-template-rows: 1fr; }
.faq-panel > div { overflow: hidden; }
.faq-a {
  padding-bottom: 24px;
  max-width: 40em;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.8;
}

/* ---------- 20. CONTACT ---------- */

.section-contact {
  background:
    radial-gradient(ellipse at 90% 0%, var(--rose-soft), transparent 55%),
    var(--bg);
}
html[data-theme="dark"] .section-contact { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }

.field label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
html[dir="rtl"] .field label { letter-spacing: 0; text-transform: none; }

.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px var(--rose-soft);
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
html[dir="rtl"] .field select {
  background-position: 18px 50%, 13px 50%;
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--ink-2) 70%, transparent); }

.field.is-invalid input, .field.is-invalid textarea { border-color: var(--rose); }

.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { font-size: 0.86rem; color: var(--ink-2); max-width: 30em; }
.form-status.ok { color: var(--rose); }
.form-status.err { color: var(--rose); }
.form-status a { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; }

.contact-side { border-inline-start: 1px solid var(--line); padding-inline-start: clamp(2rem, 4vw, 3.2rem); }
.next-steps { counter-reset: steps; display: grid; gap: 16px; margin-bottom: 30px; }
.next-steps li {
  counter-increment: steps;
  display: flex;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--ink-2);
  align-items: baseline;
}
.next-steps li::before {
  content: "0" counter(steps);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--rose);
  font-weight: 700;
  flex: none;
}

/* ---------- 21. FOOTER ---------- */

.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding-block: clamp(3.5rem, 8vw, 6rem) 28px;
}
html[data-theme="dark"] .site-footer { background: var(--bg-alt); color: var(--ink); }

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto auto;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.footer-brand .brand { font-size: 1.4rem; letter-spacing: 0.18em; }
.footer-tagline { margin-top: 14px; color: color-mix(in srgb, var(--bg) 64%, transparent); font-size: 0.9rem; }
html[data-theme="dark"] .footer-tagline { color: var(--ink-2); }
.footer-privacy {
  margin-top: 26px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 45%, transparent);
}
html[data-theme="dark"] .footer-privacy { color: var(--ink-2); }

.footer-nav { display: grid; gap: 10px; }
.footer-nav-title {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 8px;
}
html[dir="rtl"] .footer-nav-title { letter-spacing: 0; }
.footer-nav a {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--bg) 72%, transparent);
  transition: color 0.3s var(--ease);
  width: fit-content;
}
html[data-theme="dark"] .footer-nav a { color: var(--ink-2); }
.footer-nav a:hover { color: var(--rose); }

.footer-top {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 55%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--bg) 30%, transparent);
  padding-bottom: 4px;
  justify-self: end;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer-top:hover { color: var(--rose); border-color: var(--rose); }

.footer-base {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--bg) 18%, transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--bg) 50%, transparent);
}
html[data-theme="dark"] .footer-base { border-top-color: var(--line); color: var(--ink-2); }
.footer-base-marks { color: var(--rose); letter-spacing: 6px; }

/* ---------- 22. MOBILE MENU ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 20px) 6vw 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }

.mobile-nav { display: grid; gap: 6px; }
.mobile-nav a {
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.3s var(--ease), padding-inline-start 0.3s var(--ease);
}
html[dir="rtl"] .mobile-nav a { letter-spacing: 0; }
.mobile-nav a::after { content: "↗"; font-size: 0.4em; color: var(--rose); opacity: 0; transform: translateY(4px); transition: all 0.3s var(--ease); }
.mobile-nav a:hover { color: var(--rose); padding-inline-start: 10px; }
.mobile-nav a:hover::after { opacity: 1; transform: none; }

.mobile-menu-foot { display: grid; gap: 20px; }
.mobile-menu-tools { display: flex; align-items: center; gap: 16px; }

/* ---------- 23. CURSOR ---------- */

.cursor { display: none; }

@media (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    z-index: 300;
    pointer-events: none;
  }
  .cursor-dot, .cursor-ring {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    border-radius: 50%;
    transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0);
    will-change: transform;
  }
  .cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--rose);
    margin: -3px 0 0 -3px;
  }
  .cursor-ring {
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 1px solid var(--rose);
    opacity: 0.55;
    transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), opacity 0.3s var(--ease), background-color 0.3s var(--ease);
  }
  .cursor.is-hover .cursor-ring {
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    opacity: 0.9;
    background: var(--rose-soft);
  }
}

/* ---------- 24. REVEAL MOTION ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }

html.lang-swap { animation: langfade 0.45s var(--ease); }
@keyframes langfade {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

/* ---------- 25. RTL REFINEMENTS ---------- */

html[dir="rtl"] .brand { letter-spacing: 0.08em; }
html[dir="rtl"] .sec-kicker { letter-spacing: 0.08em; text-transform: none; }
html[dir="rtl"] .hero-scroll { letter-spacing: 0.08em; text-transform: none; }
html[dir="rtl"] .work-index { letter-spacing: 0.1em; text-transform: none; }
html[dir="rtl"] .case-inner h4, html[dir="rtl"] .lab-body h4 { letter-spacing: 0.1em; text-transform: none; }

/* ---------- 26. RESPONSIVE ---------- */

@media (max-width: 1080px) {
  .site-nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    align-items: center;
  }
  .menu-toggle span {
    display: block;
    width: 22px;
    height: 1.6px;
    background: var(--ink);
    transition: transform 0.35s var(--ease), opacity 0.3s;
  }
  .menu-toggle.open span:first-child { transform: translateY(3.8px) rotate(45deg); }
  .menu-toggle.open span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

  .plans-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan:nth-child(2n) { border-inline-end: 0; }
  .plan:nth-child(3) { border-inline-start: 0; }
  .plan:nth-child(2) { border-inline-end: 1px solid var(--line); }
  .plan:nth-child(1), .plan:nth-child(2) { border-bottom: 1px solid var(--line); }

  .built-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); overflow-x: auto; }
}

@media (max-width: 860px) {
  .work-item { grid-template-columns: 1fr; }
  .work-item:nth-child(even) .work-figure { order: 0; }
  .work-item:nth-child(even) .work-meta { order: 0; }

  .cap-list { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item:nth-child(2n) { border-inline-end: 1px solid var(--line); }

  .process-steps { grid-template-columns: 1fr; }
  .process-step { border-inline-end: 0; border-bottom: 1px solid var(--line); }

  .lab-row { grid-template-columns: 110px minmax(0, 1fr) auto; }
  .lab-row .status-chip { grid-row: 1 / 2; grid-column: 1 / 2; align-self: center; }
  .lab-name-wrap { grid-column: 2 / 3; }
  .lab-plus { grid-column: 3 / 4; }
  .lab-body { padding-inline-start: 0; }

  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { border-inline-start: 0; padding-inline-start: 0; }

  .calc-body { grid-template-columns: 1fr; }
  .calc-summary { position: static; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-top { justify-self: start; }
  .compare-table { display: none; }
  .compare-acc { display: block; }
}

@media (max-width: 640px) {
  .hero { min-height: auto; }
  .hero-name { font-size: clamp(3.4rem, 20vw, 12.5rem); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .hero-notes { grid-template-columns: 1fr; }
  .note:not(:first-child) { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline-start: 0; padding-top: 18px; }
  .hero-scroll { display: none; }

  .archive-item { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .archive-cat { display: none; }

  .lab-row { grid-template-columns: 1fr auto; }
  .lab-row .status-chip { grid-column: 1 / -1; grid-row: auto; }
  .lab-name-wrap { grid-column: 1 / 2; }
  .lab-plus { grid-column: 2 / 3; }

  .inquiry-form { grid-template-columns: 1fr; }
  .field-wide { grid-column: 1; }

  .plans-list { grid-template-columns: 1fr; }
  .plan { border-inline-end: 0 !important; border-bottom: 1px solid var(--line); }

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

  .calc-options { grid-template-columns: 1fr; }

  .tech-groups { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; text-align: center; }
}

/* ---------- 27. REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cursor, .cursor-dot, .cursor-ring { display: none !important; }
  .hero-scroll-line::after { display: none; }
  .marquee-track { animation: none; }
}
