/* Elevate WebWorks — soft light/dark themes, distinctive layout */

:root {
  --accent: #7c3aed;
  --accent-soft: #a78bfa;
  /* Matches #7c3aed — use with rgba(var(--accent-rgb), a) */
  --accent-rgb: 124, 58, 237;
  --accent-muted: rgba(var(--accent-rgb), 0.14);
  --radius: 16px;
  --radius-sm: 12px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Outfit", system-ui, -apple-system, sans-serif;
  --font-sans: "Outfit", system-ui, -apple-system, sans-serif;
  --form-error: #b91c1c;
}

html[data-theme="light"] {
  --bg-deep: #f0edf5;
  --bg-page: linear-gradient(165deg, #f5f2fa 0%, #ebe6f4 42%, #e4ddf0 100%);
  --bg-elevated: rgba(255, 255, 255, 0.55);
  --bg-card: rgba(255, 255, 255, 0.78);
  --border: rgba(48, 36, 88, 0.1);
  --text: #252036;
  --text-muted: rgba(37, 32, 54, 0.62);
  --logo-e: var(--text);
  --gradient: linear-gradient(125deg, #8b5cf6 0%, #7c3aed 40%, #6d28d9 100%);
  --shadow-soft: 0 20px 50px rgba(76, 50, 120, 0.1);
  --shadow-glow: 0 0 60px rgba(var(--accent-rgb), 0.12);
  --mesh-1: rgba(167, 139, 250, 0.35);
  --mesh-2: rgba(196, 181, 253, 0.25);
  --noise-opacity: 0.04;
  --header-bg: rgba(240, 237, 245, 0.82);
  --input-bg: rgba(255, 255, 255, 0.92);
  --footer-bg: #e8e2ef;
  --watermark: rgba(var(--accent-rgb), 0.06);
  --pill-dot: var(--accent);
  --link-hover: #9333ea;
}

html[data-theme="dark"] {
  /* Softer “charcoal violet” dark — lifted from near-black for less eye strain */
  --bg-deep: #22202d;
  --bg-page: linear-gradient(165deg, #2c2838 0%, #252232 42%, #1f1d2a 100%);
  --bg-elevated: rgba(255, 255, 255, 0.075);
  --bg-card: rgba(255, 255, 255, 0.1);
  --border: rgba(230, 225, 255, 0.12);
  --text: #f2f0f8;
  --text-muted: rgba(242, 240, 248, 0.7);
  --logo-e: #fff;
  --gradient: linear-gradient(125deg, #a78bfa 0%, #8b5cf6 45%, #7c3aed 100%);
  --shadow-soft: 0 24px 48px rgba(0, 0, 0, 0.26);
  --shadow-glow: 0 0 70px rgba(139, 92, 246, 0.2);
  --mesh-1: rgba(139, 92, 246, 0.22);
  --mesh-2: rgba(167, 139, 250, 0.14);
  --noise-opacity: 0.055;
  --header-bg: rgba(34, 32, 45, 0.88);
  --input-bg: rgba(255, 255, 255, 0.08);
  --footer-bg: #1a1724;
  --watermark: rgba(167, 139, 250, 0.06);
  --pill-dot: var(--accent-soft);
  --link-hover: #c4b5fd;
  --form-error: #f87171;
}

html[lang="ar"] {
  --font-display: "IBM Plex Sans Arabic", sans-serif;
  --font-sans: "IBM Plex Sans Arabic", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image: var(--bg-page);
  min-height: 100vh;
  overflow-x: hidden;
}

body.nav-mobile-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--link-hover);
}

/* Keyboard focus */
.btn:focus-visible,
.icon-toggle:focus-visible,
.lang-switch__btn:focus-visible,
.nav-toggle:focus-visible,
.header-profile:focus-visible,
.header-logout:focus-visible,
.nav-mobile-logout:focus-visible,
.nav a:focus-visible,
.nav-mobile a:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.55);
}

.home-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 10% -10%, var(--mesh-1), transparent 50%),
    radial-gradient(ellipse 70% 50% at 100% 20%, var(--mesh-2), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.bg-noise {
  position: fixed;
  inset: 0;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero-watermark {
  position: absolute;
  top: 0.5rem;
  right: max(0px, calc(50% - 620px));
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 22vw, 14rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--watermark);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 899px) {
  .hero-watermark {
    right: -1rem;
    top: 4rem;
    font-size: clamp(5rem, 40vw, 9rem);
  }
}

.container {
  width: min(1120px, calc(100% - 2.5rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.container.narrow {
  width: min(880px, calc(100% - 2.5rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  width: min(1200px, calc(100% - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  flex-shrink: 0;
}

.logo:hover {
  color: var(--text);
}

.logo__mark {
  display: inline-flex;
  align-items: flex-end;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.logo__mark--sm {
  font-size: 1.1rem;
}

.logo__e {
  color: var(--logo-e);
}

.logo__w {
  color: var(--accent-soft);
  display: inline-block;
  transform: translateX(-2px);
  position: relative;
}

.logo__w::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: 0.15em;
  border: solid transparent;
  border-width: 0 0 0.42em 0.28em;
  border-left-color: var(--accent-soft);
  border-bottom-color: var(--accent-soft);
  opacity: 0.9;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo__elevate {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--logo-e);
}

.logo__webworks {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.logo__webworks::before,
.logo__webworks::after {
  content: "";
  height: 1px;
  width: 10px;
  background: var(--accent-soft);
  opacity: 0.6;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav a:hover {
  color: var(--text);
}

.nav a.is-active {
  color: var(--text);
  font-weight: 700;
}

.header-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-muted);
  flex-shrink: 0;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.header-profile:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.header-profile[aria-current="page"],
.header-profile.is-active {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.header-profile__icon {
  display: block;
}

.header-logout {
  white-space: nowrap;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
}

/* .btn sets display:inline-flex and wins over the [hidden] attribute otherwise */
[data-logout-btn][hidden] {
  display: none !important;
}

@media (max-width: 899px) {
  .header-logout {
    display: none !important;
  }
}

.nav-mobile-profile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.6rem 0 0.85rem;
  border-bottom: 1px solid var(--border);
}

.nav-mobile-profile__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.nav-mobile-profile__link:hover {
  color: var(--accent);
}

.nav-mobile-logout {
  align-self: flex-start;
  margin-top: 0.15rem;
  background: none;
  border: none;
  padding: 0.35rem 0;
  font: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  text-align: inherit;
}

.nav-mobile-logout:hover {
  color: var(--text);
}

.auth-gate__choices {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-bottom: 2rem;
}

@media (min-width: 640px) {
  .auth-gate__choices {
    grid-template-columns: 1fr 1fr;
    margin-top: 1rem;
  }
}

.auth-gate__card {
  display: block;
  text-align: start;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.auth-gate__card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.auth-gate__card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.auth-gate__card-title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.auth-gate__card-desc {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.auth-back {
  display: block;
  width: fit-content;
  background: none;
  border: none;
  padding: 0 0 0.85rem;
  margin-bottom: 0.25rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-back:hover {
  color: var(--text);
}

.nav-auth-group {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav-inline-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  text-align: inherit;
}

.nav-inline-btn:hover {
  color: var(--text);
}

.nav-mobile .nav-auth-group {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.25rem 0 0.5rem;
  border-bottom: 1px solid var(--border);
}

.nav-mobile .nav-auth-group a,
.nav-mobile .nav-auth-group .nav-inline-btn {
  padding: 0.75rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.nav-mobile .nav-auth-group > *:last-child {
  border-bottom: none;
}

.nav-mobile a.is-active:not(.btn) {
  color: var(--accent);
  font-weight: 700;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header__controls {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding-right: 0.35rem;
  border-right: 1px solid var(--border);
  margin-right: 0.25rem;
}

.header__ig {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
}

.header__ig-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.nav-mobile-ig {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  padding: 0.75rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.nav-mobile-ig:hover {
  color: var(--accent);
}

.nav-mobile-ig svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: inherit;
}

.icon-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.icon-toggle:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
}

html[data-theme="dark"] .icon-toggle__sun {
  display: none;
}

html[data-theme="light"] .icon-toggle__moon {
  display: none;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-card);
}

.lang-switch__btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.65rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch__btn.is-active {
  background: var(--gradient);
  color: #fff;
}

.lang-switch__btn:not(.is-active):hover {
  color: var(--text);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

/* [hidden] alone is overridden by `display: flex` above in some browsers — keep menu closed until toggled */
.nav-mobile[hidden] {
  display: none !important;
}

.nav-mobile__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a {
  color: var(--text);
  padding: 0.75rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-of-type {
  border-bottom: none;
}

.nav-mobile .btn {
  margin-top: 0.5rem;
  text-align: center;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
  .header__controls {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1.2rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.25s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.btn--ghost:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--text);
}

.btn.btn--ghost.header__ig {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-muted);
}

.btn.btn--ghost.header__ig:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.btn--outline {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}

.btn--outline:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--text);
}

.btn--lg {
  padding: 0.85rem 1.45rem;
  font-size: 0.93rem;
}

.btn--block {
  width: 100%;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.25rem, 7vw, 5.5rem);
}

.section--tight {
  padding-block: clamp(2.75rem, 5vw, 4.25rem);
}

.section-index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  opacity: 0.22;
  display: block;
  margin-bottom: 0.5rem;
}

.section-index--ghost {
  opacity: 0.14;
}

.section-head {
  margin-bottom: 2rem;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.65rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.8vw, 2.35rem);
  line-height: 1.12;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

.section-title--skew {
  transform: skewY(-0.5deg);
  transform-origin: left center;
}

html[dir="rtl"] .section-title--skew {
  transform-origin: right center;
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 52ch;
}

.section-lead--wide {
  max-width: 42rem;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Hero */
.hero {
  position: relative;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(3rem, 7vw, 4.5rem);
  overflow: hidden;
}

.hero__layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
}

.hero__rail {
  display: none;
  flex-direction: column;
  align-items: center;
  padding-top: 0.5rem;
}

@media (min-width: 768px) {
  .hero__rail {
    display: flex;
  }
}

.hero__index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0.85;
}

.hero__rail-line {
  width: 1px;
  flex: 1;
  min-height: 120px;
  margin-top: 0.75rem;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.35;
}

.hero__main {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 960px) {
  .hero__main {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
  }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
}

.hero__title-line {
  display: block;
}

.hero__title-accent {
  display: block;
  margin-top: 0.15rem;
}

.hero__lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 38ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.hero__pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.hero__pillars li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pillar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pill-dot);
  opacity: 0.85;
}

.hero__panel {
  position: relative;
}

.hero__panel-inner {
  position: relative;
  border-radius: 22px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.2;
  filter: blur(50px);
  top: -40px;
  right: -30px;
  pointer-events: none;
}

.device-frame {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.device-frame__bar {
  display: flex;
  gap: 6px;
  padding: 11px 13px;
  background: rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--border);
}

html[data-theme="dark"] .device-frame__bar {
  background: rgba(0, 0, 0, 0.35);
}

.device-frame__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .device-frame__bar span {
  background: rgba(255, 255, 255, 0.12);
}

.device-frame__bar span:first-child {
  background: #ff7a6b;
}
.device-frame__bar span:nth-child(2) {
  background: #f5c563;
}
.device-frame__bar span:nth-child(3) {
  background: #6bcf7a;
}

.device-frame__screen {
  padding: 1.65rem 1.4rem 1.85rem;
  min-height: 200px;
  background: linear-gradient(160deg, var(--bg-card), transparent);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.device-frame__mock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.device-frame__mock-hero {
  grid-column: 1 / -1;
  height: 2.85rem;
  border-radius: 10px;
  background: linear-gradient(
    115deg,
    var(--accent-muted),
    color-mix(in srgb, var(--accent-soft) 40%, transparent)
  );
  border: 1px solid rgba(var(--accent-rgb), 0.12);
}

.device-frame__mock-line {
  height: 0.42rem;
  border-radius: 4px;
  background: var(--border);
}

.device-frame__mock-line--wide {
  grid-column: 1 / -1;
}

.device-frame__mock-cards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.device-frame__mock-cards span {
  height: 2.1rem;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.device-frame__copy {
  margin-top: auto;
}

.device-frame__tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 0.65rem;
}

.device-frame__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  margin: 0 0 1.1rem;
  line-height: 1.25;
}

.device-frame__btn {
  display: inline-block;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  background: var(--gradient);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}

/* About */
.about-wrap__head {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 700px) {
  .about-wrap__head {
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
  }
  .about-wrap__head .section-index {
    margin: 0;
    line-height: 0.9;
  }
}

.about-cards {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.75rem;
}

@media (min-width: 700px) {
  .about-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.45rem 1.45rem 1.55rem;
  backdrop-filter: blur(10px);
}

.card--tilt {
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.card--tilt:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.card--about p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.55rem;
}

.founders-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  margin: 2rem 0 1rem;
  letter-spacing: -0.02em;
}

.founder-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .founder-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
  }
}

html[dir="rtl"] .founder-grid {
  direction: rtl;
}

.founder-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: start;
}

.founder-card__head {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.founder-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.founder-card__role {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.founder-card__bio {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.founder-card__block {
  margin-bottom: 1rem;
}

.founder-card__block:last-of-type {
  margin-bottom: 0.75rem;
}

.founder-card__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.45rem;
}

.founder-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.founder-card__list--bullets {
  list-style: disc;
  padding-inline-start: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.founder-card__list--bullets li::marker {
  color: var(--accent-soft);
}

.founder-card__goal {
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

/* Services page */
.services-page .section-lead--wide {
  max-width: 42rem;
}

.services-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s var(--ease-out), border-color 0.2s ease, box-shadow 0.22s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.28);
}

.service-card--accent {
  border-color: rgba(var(--accent-rgb), 0.22);
  background: linear-gradient(145deg, var(--accent-muted), transparent 55%), var(--bg-card);
}

.service-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-muted);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-muted);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
}

.service-card__tag--app {
  color: #6d28d9;
  background: rgba(109, 40, 217, 0.12);
  border-color: rgba(109, 40, 217, 0.2);
}

html[data-theme="dark"] .service-card__tag--app {
  color: #c4b5fd;
}

.service-card__tag--hw {
  color: #0f766e;
  background: rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.22);
}

html[data-theme="dark"] .service-card__tag--hw {
  color: #5eead4;
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.22);
}

.service-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.service-card__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.service-card__list {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-card__list li {
  position: relative;
  padding-inline-start: 1.25rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.service-card__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.45em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.85;
}

.services-hint {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.service-card--clickable {
  width: 100%;
  text-align: inherit;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.service-card--clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.service-card__action {
  margin-top: auto;
  padding-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.service-card--clickable:hover .service-card__action {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-card__preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin: -0.35rem -0.35rem 0.5rem;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
}

.service-card__preview img {
  display: block;
  width: 100%;
  height: 3.25rem;
  object-fit: cover;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.service-modal[hidden] {
  display: none;
}

.service-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 18, 0.62);
  backdrop-filter: blur(4px);
}

.service-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(52rem, 100%);
  max-height: min(88vh, 52rem);
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

@media (min-width: 640px) {
  .service-modal {
    align-items: center;
    padding: 1.5rem;
  }

  .service-modal__dialog {
    border-radius: var(--radius);
    max-height: min(86vh, 44rem);
  }
}

.service-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.service-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  padding-inline-end: 0.5rem;
}

.service-modal__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.service-modal__close:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: var(--accent-muted);
}

.service-modal__body {
  padding: 1.15rem 1.25rem 1.35rem;
  overflow-y: auto;
}

.service-panel-wip {
  text-align: center;
  padding: 1.5rem 0.75rem 0.5rem;
}

.service-panel-wip__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: var(--accent-muted);
  color: var(--accent);
}

.service-panel-wip__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.service-panel-wip__lead {
  margin: 0 auto 1.25rem;
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.service-panel-gallery__intro {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.service-panel-gallery {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .service-panel-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .service-panel-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-panel-gallery__item {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.service-panel-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-panel-gallery--visual {
  gap: 0.65rem;
}

.service-panel-gallery--visual .service-panel-gallery__item {
  border: none;
  background: transparent;
}

.service-panel-gallery--visual .service-panel-gallery__item img {
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 0.35rem;
}

.service-panel-gallery__item figcaption {
  padding: 0.5rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.services-process {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--border);
}

.services-process__title {
  margin: 0.35rem 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.services-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .services-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.services-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.services-step__num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent);
  background: var(--accent-muted);
}

.services-step__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.services-step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.services-page .cta-band {
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

/* Legacy service cards (if referenced elsewhere) */
.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 132px;
  flex-shrink: 0;
  background: var(--bg-deep);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-muted);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

/* Portfolio */
.section--portfolio {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
}

.portfolio-intro {
  margin-bottom: 2.25rem;
}

.portfolio-intro__lead {
  max-width: 40rem;
}

.portfolio-founders {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.35rem 0 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(var(--accent-rgb), 0.35);
  background: var(--accent-muted);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  max-width: 40rem;
  line-height: 1.5;
}

.portfolio-founders__mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
  background: var(--gradient);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

/* Sites we've built — compact showcase rows */
.built-sites {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--border);
}

.built-sites__header {
  margin-bottom: 1rem;
}

.built-sites__title {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.showcase-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 640px) {
  .showcase-item {
    grid-template-columns: 200px minmax(0, 1fr) auto;
    gap: 0.85rem 1rem;
    padding: 0.55rem 0.65rem 0.55rem 0.55rem;
  }
}

.showcase-item:hover {
  border-color: rgba(var(--accent-rgb), 0.28);
}

.showcase-item__thumb {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  line-height: 0;
}

.showcase-item__thumb--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.showcase-item__thumb--duo .showcase-item__img {
  aspect-ratio: 16 / 11;
}

.showcase-item__thumb.showcase-item__link--hidden {
  pointer-events: none;
  cursor: default;
}

.showcase-item__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.showcase-item__body {
  min-width: 0;
}

.showcase-item__tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.showcase-item__title {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.showcase-item__meta {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.showcase-item__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
}

.showcase-item__cta-icon {
  font-size: 0.9em;
  line-height: 1;
}

.showcase-item__link--hidden {
  display: none !important;
}

html[dir="rtl"] .showcase-item__cta-icon {
  transform: scaleX(-1);
}

.portfolio-section-break {
  margin-bottom: 1.35rem;
}

.portfolio-section-break__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.portfolio-section-break__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 36rem;
}

.section--built-preview {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
  padding-block: clamp(1.75rem, 3.5vw, 2.25rem);
}

.built-preview__head {
  margin-bottom: 0.85rem;
}

.section-title--compact {
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  margin-bottom: 0;
}

.showcase-list--home {
  margin-bottom: 0.25rem;
}

.built-preview__more {
  margin: 0.75rem 0 0;
  text-align: center;
}

.text-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  color: var(--link-hover);
  border-color: var(--link-hover);
}

.portfolio-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.portfolio-project-card.portfolio-chip {
  margin: 0;
  height: 100%;
}

.portfolio-byline {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.portfolio-bento {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .portfolio-bento {
    grid-template-columns: 1.25fr 1fr;
    align-items: stretch;
    gap: 1.5rem;
  }
}

.portfolio-spotlight {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.portfolio-spotlight__media {
  position: relative;
  aspect-ratio: 16/11;
  min-height: 200px;
  background:
    radial-gradient(circle at 25% 30%, color-mix(in srgb, var(--spot) 55%, transparent), transparent 55%),
    radial-gradient(circle at 85% 70%, color-mix(in srgb, var(--spot) 35%, transparent), transparent 45%),
    var(--bg-deep);
}

@supports not (color: color-mix(in lab, red, red)) {
  .portfolio-spotlight__media {
    background:
      radial-gradient(circle at 25% 30%, rgba(var(--accent-rgb), 0.45), transparent 55%),
      radial-gradient(circle at 85% 70%, rgba(139, 92, 246, 0.25), transparent 45%),
      var(--bg-deep);
  }
}

.portfolio-spotlight__mesh {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 38px,
    rgba(255, 255, 255, 0.04) 38px,
    rgba(255, 255, 255, 0.04) 39px
  );
  pointer-events: none;
}

.portfolio-spotlight__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .portfolio-spotlight__badge {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  border-color: var(--border);
}

.portfolio-spotlight__body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.portfolio-spotlight__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.portfolio-spotlight__meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.portfolio-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portfolio-chip {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s ease, transform 0.2s var(--ease-out);
}

@media (min-width: 500px) {
  .portfolio-chip:not(.portfolio-chip--wide) {
    grid-template-columns: 120px 1fr;
    align-items: center;
  }
}

.portfolio-chip:hover {
  border-color: rgba(var(--accent-rgb), 0.28);
  transform: translateX(4px);
}

html[dir="rtl"] .portfolio-chip:hover {
  transform: translateX(-4px);
}

.portfolio-chip--wide {
  grid-template-columns: 1fr;
}

@media (min-width: 500px) {
  .portfolio-chip--wide {
    grid-template-columns: 140px 1fr;
    align-items: center;
  }
}

.portfolio-chip__thumb {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 10px;
  overflow: hidden;
  background: var(--bg-deep);
}

.portfolio-chip__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--spot) 55%, rgba(0, 0, 0, 0.35)) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

@supports not (color: color-mix(in lab, red, red)) {
  .portfolio-chip__thumb::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 55%);
  }
}

.portfolio-chip__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.portfolio-chip__badge {
  position: relative;
  z-index: 1;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .portfolio-chip__badge {
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.portfolio-chip__thumb--horiz {
  aspect-ratio: 16/9;
}

.portfolio-chip__text h2,
.portfolio-chip__text h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0 0 0.25rem;
}

.portfolio-chip__text p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* CTA */
.cta-band {
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  align-items: flex-start;
  padding: clamp(1.6rem, 3.5vw, 2.25rem);
  border-radius: var(--radius);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: linear-gradient(120deg, var(--accent-muted), transparent 60%), var(--bg-card);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .cta-band__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-band__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.28rem, 2.6vw, 1.65rem);
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.cta-band__copy p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40ch;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
    gap: 2.75rem;
  }
}

.contact-copy .section-index {
  margin-bottom: 0.35rem;
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 1.1rem;
}

.contact-list__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.contact-list a {
  font-weight: 500;
  color: var(--text);
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-list__sep {
  color: var(--text-muted);
  margin: 0 0.3rem;
}

.contact-form {
  padding: 1.6rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.optional {
  font-weight: 400;
  opacity: 0.75;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.72rem 0.88rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.55;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-row--error label {
  color: var(--form-error);
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: var(--form-error);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

html[data-theme="dark"] .contact-form input.is-invalid,
html[data-theme="dark"] .contact-form textarea.is-invalid {
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
}

.field-error-msg {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--form-error);
}

.field-error-msg:empty {
  display: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 118px;
}

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.86rem;
  color: var(--accent);
  min-height: 1.2em;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem 2rem;
  background: var(--footer-bg);
  position: relative;
  z-index: 1;
}

.footer__shell {
  max-width: 1120px;
}

.footer__top {
  display: grid;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 3rem;
  }
}

.footer__brand-col {
  text-align: center;
}

@media (min-width: 768px) {
  .footer__brand-col {
    text-align: start;
  }
}

.footer__brand-col .logo {
  justify-content: center;
}

@media (min-width: 768px) {
  .footer__brand-col .logo {
    justify-content: flex-start;
  }
}

html[dir="rtl"] .footer__brand-col .logo {
  justify-content: center;
}

@media (min-width: 768px) {
  html[dir="rtl"] .footer__brand-col .logo {
    justify-content: flex-start;
  }
}

.footer__contact-col {
  text-align: center;
}

@media (min-width: 768px) {
  .footer__contact-col {
    text-align: start;
  }
}

html[dir="rtl"] .footer__contact-col {
  text-align: center;
}

@media (min-width: 768px) {
  html[dir="rtl"] .footer__contact-col {
    text-align: start;
  }
}

.footer__contact-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.footer-contact-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.footer-contact-list li {
  margin-bottom: 0.85rem;
}

.footer-contact-list__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.footer-contact-list a {
  font-weight: 500;
  color: var(--text);
}

.footer-contact-list a:hover {
  color: var(--accent);
}

.footer__form-link {
  margin: 0;
  font-size: 0.92rem;
}

.footer__form-link a {
  font-weight: 600;
}

.logo--footer .logo__text {
  text-align: start;
}

.footer__tagline {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  max-width: 28ch;
}

@media (min-width: 768px) {
  .footer__tagline {
    margin-inline: 0;
  }
}

.footer__legal {
  margin: 1.25rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.85;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__legal {
    text-align: start;
  }
}

/* Home — explore cards */
.home-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .home-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-card {
  display: block;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.22s var(--ease-out),
    border-color 0.2s ease,
    box-shadow 0.22s ease;
}

.home-card:hover {
  color: inherit;
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: var(--shadow-soft);
}

.home-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.home-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.home-card__desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.home-card__go {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.home-card:hover .home-card__go {
  color: var(--accent);
}

html[dir="rtl"] .home-card__go {
  transform: scaleX(-1);
}

html[dir="rtl"] .home-card:hover .home-card__go {
  transform: scaleX(-1);
}

.page-head {
  padding-top: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: 0.5rem;
}

.page-head .section-title {
  margin-bottom: 0.5rem;
}

/* Auth pages */
.auth-panel {
  max-width: 440px;
  margin-inline: auto;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.65rem;
  box-shadow: var(--shadow-soft);
}

.auth-card .form-row {
  margin-bottom: 1rem;
}

.auth-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.auth-card .form-row--checkbox {
  margin-bottom: 0.85rem;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2rem 0 0;
  accent-color: var(--accent, #7c3aed);
  cursor: pointer;
}

.auth-card input,
.auth-card textarea {
  width: 100%;
  padding: 0.72rem 0.88rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.auth-card textarea {
  min-height: 100px;
  resize: vertical;
}

.auth-card input:focus,
.auth-card textarea:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.auth-pw-meter {
  margin-top: 0.65rem;
}

.auth-pw-meter__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.auth-pw-meter__level {
  font-weight: 700;
  color: var(--text);
}

.auth-pw-meter__track {
  direction: ltr;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 85%, transparent);
  overflow: hidden;
}

.auth-pw-meter__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 0.22s ease, background 0.2s ease;
  background: var(--text-muted);
}

.auth-pw-meter__fill--1 {
  background: #ef4444;
}

.auth-pw-meter__fill--2 {
  background: #f97316;
}

.auth-pw-meter__fill--3 {
  background: #ca8a04;
}

.auth-pw-meter__fill--4 {
  background: #16a34a;
}

html[data-theme="dark"] .auth-pw-meter__fill--1 {
  background: #f87171;
}

html[data-theme="dark"] .auth-pw-meter__fill--2 {
  background: #fb923c;
}

html[data-theme="dark"] .auth-pw-meter__fill--3 {
  background: #facc15;
}

html[data-theme="dark"] .auth-pw-meter__fill--4 {
  background: #4ade80;
}

.auth-pw-meter__hint {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.auth-pw-req {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.auth-pw-req__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.auth-pw-req__item.is-met {
  color: var(--text);
}

.auth-pw-req__mark {
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
}

.auth-pw-req__item.is-met .auth-pw-req__mark {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.14);
  color: #16a34a;
}

.auth-pw-req__item.is-met .auth-pw-req__mark::after {
  content: "✓";
}

html[data-theme="dark"] .auth-pw-req__item.is-met .auth-pw-req__mark {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
}

.auth-card .btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-error {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #b91c1c;
  font-size: 0.88rem;
}

html[data-theme="dark"] .auth-error {
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.15);
}

.auth-error[hidden] {
  display: none !important;
}

.auth-switch {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.auth-switch a {
  font-weight: 600;
}

.account-card dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.account-card dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.account-card dd {
  margin: 0;
  font-weight: 500;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay {
  transition-delay: 0.08s;
}

/* -------------------------------------------------------------------------- */
/* Mobile & touch — readable type, safe areas, tap targets, less cramped UI   */
/* -------------------------------------------------------------------------- */

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

body {
  -webkit-tap-highlight-color: rgba(var(--accent-rgb), 0.12);
}

@media (max-width: 767px) {
  .hero__layout {
    grid-template-columns: 1fr;
  }

  .hero__main {
    gap: 1.5rem;
  }

  .hero__title {
    font-size: clamp(1.65rem, 9.2vw, 2.75rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .hero__lead {
    font-size: 1rem;
    max-width: none;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .hero__pillars {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .hero__panel-inner {
    border-radius: 18px;
  }

  .device-frame__headline {
    font-size: clamp(1.05rem, 5vw, 1.22rem);
  }
}

@media (max-width: 899px) {
  .header__inner {
    padding-inline: max(0.75rem, env(safe-area-inset-left, 0px))
      max(0.75rem, env(safe-area-inset-right, 0px));
    padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
    gap: 0.5rem;
  }

  .nav-mobile {
    max-height: min(78vh, calc(100dvh - var(--header-h)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    padding-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px));
  }

  .nav-mobile a:not(.btn) {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding-block: 0.65rem;
  }

  .nav-mobile .btn--block {
    min-height: 48px;
  }

  .icon-toggle,
  .icon-toggle.icon-toggle--mobile {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .lang-switch__btn {
    min-height: 40px;
    padding-inline: 0.75rem;
  }

  .header-profile,
  .header__ig {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .nav-toggle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
}

/* Narrow header: drop duplicated CTAs (still in hamburger menu) */
@media (max-width: 520px) {
  .header__actions > .btn.btn--primary {
    display: none;
  }
}

@media (max-width: 380px) {
  .header__ig {
    display: none;
  }
}

@media (max-width: 767px) {
  .cta-band__inner .btn {
    align-self: stretch;
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .section-title {
    font-size: clamp(1.45rem, 6.5vw, 2.35rem);
  }

  .home-card {
    padding: 1.2rem 1.15rem;
    min-height: 44px;
  }

  .contact-form {
    padding: 1.25rem max(1rem, env(safe-area-inset-left, 0px)) 1.25rem max(1rem, env(safe-area-inset-right, 0px));
  }

  .footer {
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
  }

  .footer-contact-list a,
  .contact-list a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .auth-panel {
    padding-inline: max(0.5rem, env(safe-area-inset-left, 0px)) max(0.5rem, env(safe-area-inset-right, 0px));
  }

  .auth-card {
    padding: 1.25rem 1.1rem 1.35rem;
  }
}

@media (hover: none) {
  .home-card:hover {
    transform: none;
  }

  .home-card:active {
    border-color: rgba(var(--accent-rgb), 0.35);
    background: color-mix(in srgb, var(--bg-card) 92%, var(--accent));
  }

  .btn--primary:hover {
    transform: none;
  }
}
