:root {
  color-scheme: dark;
  --bg: #0d0406;
  --bg-soft: #16080b;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #fbeff1;
  --muted: #c9a3a9;
  --faint: #8f6f75;
  --crimson: #f0384d;
  --coral: #ff7361;
  --deep: #6b0a19;
  --green: #4ade80;
  --amber: #fbbf24;
  --radius: 20px;
  --max-width: 1140px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(70rem 42rem at 15% -8%, rgba(240, 56, 77, 0.22), transparent 65%),
    radial-gradient(50rem 34rem at 100% 10%, rgba(255, 115, 97, 0.1), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* faint grid that fades out towards the bottom of the first screen */
body::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 110vh;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

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

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, rgba(13, 4, 6, 0.92), rgba(13, 4, 6, 0.6));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 760;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--line), 0 6px 20px rgba(240, 56, 77, 0.35);
}

.site-nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 8, 11, 0.7);
}

.site-nav a {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.site-nav a:hover { background: var(--surface-strong); color: var(--text); }

/* ---------- shared bits ---------- */

.eyebrow {
  margin-bottom: 14px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gradient-text {
  background: linear-gradient(95deg, var(--coral), var(--crimson) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 720;
  font-size: 0.97rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover { transform: translateY(-1px); }

.button.primary {
  background: linear-gradient(135deg, var(--coral), var(--crimson));
  color: #fff;
  box-shadow: 0 10px 30px rgba(240, 56, 77, 0.35);
}

.button.primary:hover { box-shadow: 0 14px 36px rgba(240, 56, 77, 0.5); }

.button.secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.button.secondary:hover { background: var(--surface-strong); }

.button.small { min-height: 38px; padding: 0 14px; font-size: 0.88rem; border-radius: 10px; }

.section { padding: 96px 0; }
section[id] { scroll-margin-top: 72px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.section-heading p.lead { max-width: 420px; margin-bottom: 4px; color: var(--muted); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 64px);
  padding: 56px 0 72px;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 8.5vw, 6.4rem);
  font-weight: 840;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.out-now {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.out-now:hover { border-color: var(--line-strong); background: var(--surface-strong); }
.out-now img { width: 40px; height: 40px; border-radius: 10px; }
.out-now strong { color: var(--text); }
.out-now .arrow { color: var(--coral); font-weight: 700; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 560px;
}

.hero-visual::before {
  position: absolute;
  inset: 12% 8%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 56, 77, 0.45), transparent);
  filter: blur(30px);
}

.phone {
  position: absolute;
  top: 20px;
  width: 250px;
  aspect-ratio: 642 / 1389;
  overflow: hidden;
  border: 7px solid #1d0c10;
  border-radius: 38px;
  background: #1d0c10;
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow);
}

.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone.back { right: 6%; transform: rotate(7deg) translateY(36px); }
.phone.front { left: 6%; transform: rotate(-6deg); }

/* ---------- projects ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-strong), rgba(255, 255, 255, 0.025));
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}

.project-media > img { width: 100%; height: 100%; object-fit: cover; }
.project-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(13, 4, 6, 0.75));
}

.media-blockpop > img { object-position: center 30%; }
.media-kingdom > img { object-position: center 38%; }

.media-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 115, 97, 0.35), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(240, 56, 77, 0.3), transparent 50%),
    var(--bg-soft);
}

.media-placeholder svg { width: 84px; height: 84px; color: rgba(255, 255, 255, 0.28); }

.status {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(13, 4, 6, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 700;
}

.status::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.status.live { color: var(--green); }
.status.dev { color: var(--amber); }
.status.soon { color: var(--coral); }

.project-body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0 22px 22px;
}

.app-icon {
  width: 64px;
  height: 64px;
  margin-top: -32px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line-strong), 0 10px 26px rgba(0, 0, 0, 0.5);
}

.app-icon.glyph {
  display: grid;
  place-items: center;
  color: #fff;
}

.app-icon.glyph svg { width: 32px; height: 32px; }
.glyph-crown { background: linear-gradient(145deg, #f2c14e, #b7791f); }
.glyph-recipe { background: linear-gradient(145deg, var(--coral), var(--deep)); }

.project-meta {
  margin-bottom: 4px;
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.project-card p.desc { margin-bottom: 18px; color: var(--muted); font-size: 0.97rem; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.project-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.project-note { margin: auto 0 0; color: var(--faint); font-size: 0.88rem; }

/* ---------- contact ---------- */

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 44px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(240, 56, 77, 0.28), transparent 70%),
    linear-gradient(180deg, var(--surface-strong), rgba(255, 255, 255, 0.02));
}

.contact-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.contact-card p { max-width: 520px; margin-bottom: 0; color: var(--muted); }
.contact-card .hint { margin-top: 10px; color: var(--faint); font-size: 0.9rem; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.contact-actions .email { color: var(--muted); font-size: 0.92rem; text-decoration: none; }
.contact-actions .email:hover { color: var(--text); }

/* ---------- footer ---------- */

.site-footer {
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.88rem;
}

.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- language switch ---------- */

.site-nav { margin-left: auto; }
.site-nav a[aria-current="page"] { background: var(--surface-strong); color: var(--text); }

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 8, 11, 0.7);
}

.lang-switch a {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 160ms ease;
}

.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: linear-gradient(135deg, var(--coral), var(--crimson)); color: #fff; }

/* ---------- clickable project cards ---------- */

.project-card { position: relative; }
.card-link { text-decoration: none; }
.card-link::after { position: absolute; inset: 0; z-index: 1; content: ""; }
/* the row sits above the card-wide link: only its real links take the tap, everything else falls through to the card */
.project-actions { position: relative; z-index: 2; align-items: center; pointer-events: none; }
.project-actions a { pointer-events: auto; }
.card-more { margin-left: auto; color: var(--coral); font-size: 0.9rem; font-weight: 700; }
.project-card:hover .card-more { text-decoration: underline; }
.alt-name { margin: -6px 0 10px; color: var(--faint); font-size: 0.85rem; }

/* ---------- project page ---------- */

.back-link {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

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

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 56px;
  padding: 40px 0 48px;
}

.project-title { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.project-title .app-icon { width: 84px; height: 84px; margin: 0; border-radius: 21px; flex: none; }
.project-title .app-icon.glyph svg { width: 42px; height: 42px; }

.project-hero h1 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  font-weight: 840;
  line-height: 1;
  letter-spacing: -0.035em;
}

.project-hero .status { position: static; margin-bottom: 16px; }
.project-hero .project-meta { margin-bottom: 6px; }
.project-lead { max-width: 600px; color: var(--muted); font-size: clamp(1.06rem, 1.8vw, 1.2rem); }
.project-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button.is-disabled { opacity: 0.55; pointer-events: none; }

.hero-device { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.hero-device::before {
  position: absolute;
  inset: 8% 14%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240, 56, 77, 0.45), transparent);
  filter: blur(30px);
}
.hero-device .phone { position: relative; top: 0; width: 270px; transform: rotate(3deg); }
.hero-device .phone.square { aspect-ratio: 1; display: grid; place-items: center; }
.hero-device .phone.square svg { width: 96px; height: 96px; color: rgba(255, 255, 255, 0.3); }

.section.tight { padding: 56px 0; }
.section.tight .section-heading { margin-bottom: 28px; }
.section.tight .section-heading h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }

/* one swipeable row: all seven fit on desktop, phones scroll sideways */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 1fr);
  gap: 16px;
  margin: 0 -16px;
  padding: 6px 16px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  scrollbar-width: thin;
}

.gallery .shot { scroll-snap-align: start; }

.shot {
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-soft);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.gallery-hint { margin: 14px 0 0; color: var(--faint); font-size: 0.88rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-strong), rgba(255, 255, 255, 0.02));
}

.feature .num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(240, 56, 77, 0.14);
  color: var(--coral);
  font-size: 0.9rem;
  font-weight: 800;
}

.feature h3 { margin-bottom: 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.details div { padding: 18px 20px; background: var(--bg-soft); }
.details dt { margin-bottom: 4px; color: var(--faint); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.details dd { margin: 0; font-weight: 600; }

.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.help-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-strong), rgba(255, 255, 255, 0.02));
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.help-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.help-card h3 { margin: 0; font-size: 1.2rem; }
.help-card p { margin: 0; color: var(--muted); }
.help-card .go { margin-top: 8px; color: var(--coral); font-weight: 700; }

/* ---------- screenshot viewer ---------- */

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: rgba(8, 2, 3, 0.94);
  color: var(--text);
}

.lightbox[open] { display: flex; align-items: center; justify-content: center; gap: 18px; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }

.lightbox img {
  width: auto;
  max-width: min(100%, 560px);
  height: auto;
  max-height: calc(100dvh - 120px);
  border-radius: 26px;
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow);
}

.lb-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.lb-btn:hover { background: rgba(255, 255, 255, 0.16); }
.lb-close { position: absolute; top: 18px; right: 18px; }
.lb-count { position: absolute; right: 0; bottom: 22px; left: 0; margin: 0; color: var(--muted); font-size: 0.9rem; text-align: center; }
html:has(.lightbox[open]) { overflow: hidden; }

/* ---------- documents (privacy, support) ---------- */

.doc { width: min(100% - 32px, 780px); margin: 0 auto; padding: 40px 0 96px; }
.doc h1 { margin-bottom: 12px; font-size: clamp(2.3rem, 6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; }
.doc .meta { margin-bottom: 0; color: var(--faint); }
.doc .lead { color: var(--muted); font-size: 1.12rem; }
.doc .note {
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.92rem;
}
.doc section { padding-top: 30px; }
.doc h2 { margin-bottom: 12px; font-size: 1.38rem; letter-spacing: -0.015em; }
.doc h3 { margin: 22px 0 8px; font-size: 1.06rem; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.doc section a, .doc .note a { color: var(--coral); }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 4px; }

.support-card {
  margin-top: 30px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(30rem 16rem at 100% 0%, rgba(240, 56, 77, 0.22), transparent 70%),
    linear-gradient(180deg, var(--surface-strong), rgba(255, 255, 255, 0.02));
}

.support-card p { margin-bottom: 8px; color: var(--muted); }
.support-card .mail { display: inline-block; margin: 4px 0 18px; font-size: 1.3rem; font-weight: 760; text-decoration: none; }
.support-card .mail:hover { color: var(--coral); }

/* ---------- site games ---------- */

.page-hero { padding: 56px 0 8px; }
.page-hero h1 { margin-bottom: 14px; font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1; letter-spacing: -0.035em; }
.page-hero .lead { max-width: 560px; color: var(--muted); font-size: clamp(1.06rem, 1.8vw, 1.2rem); }

.empty-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 64px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 24px;
  background: radial-gradient(28rem 14rem at 50% 0%, rgba(240, 56, 77, 0.16), transparent 70%), var(--surface);
  text-align: center;
}

.project-grid .empty-card { align-content: center; padding: 40px 24px; }

.media-game {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 115, 97, 0.45), transparent 60%),
    linear-gradient(145deg, #3a0811, #12050a);
}

.game-mark {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 6.5rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 10px 40px rgba(240, 56, 77, 0.7);
}

.game-card .project-body { padding-top: 20px; }
.game-back { margin-top: 24px; }

.empty-card .glyph-box {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 6px;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--coral), var(--deep));
  box-shadow: 0 0 0 1px var(--line-strong), 0 14px 34px rgba(240, 56, 77, 0.35);
  color: #fff;
}

.empty-card svg { width: 44px; height: 44px; }
.empty-card h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.015em; }
.empty-card p { margin: 0; color: var(--muted); }

.not-found { display: grid; place-items: center; min-height: 70vh; padding: 40px 0; text-align: center; }
.not-found h1 { margin-bottom: 8px; font-size: clamp(4rem, 14vw, 8rem); line-height: 1; letter-spacing: -0.05em; }
.not-found p { color: var(--muted); }
.hero-actions.centered { justify-content: center; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid, .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .project-hero { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; }
  .hero-device .phone { width: 220px; }
  .help-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 24px; padding-top: 40px; }
  .hero-visual { min-height: 440px; }
  .phone { width: 200px; border-radius: 32px; }
  .phone.front { left: calc(50% - 190px); }
  .phone.back { right: calc(50% - 190px); }
  .section { padding: 72px 0; }
  .section-heading { flex-direction: column; align-items: start; }
  .contact-card { flex-direction: column; align-items: start; padding: 32px 24px; }
  .contact-actions { align-items: start; }
}

@media (max-width: 620px) {
  .project-grid { grid-template-columns: 1fr; }
  .site-nav a { padding: 6px 11px; font-size: 0.85rem; }
  .hero-visual { min-height: 380px; }
  .phone { width: 170px; border-width: 6px; border-radius: 28px; }
  .phone.front { left: calc(50% - 165px); }
  .phone.back { right: calc(50% - 165px); }
  .out-now { margin-top: 32px; }
  /* nav gets its own centred row under the logo and language switch */
  .header-inner { flex-wrap: wrap; row-gap: 10px; padding: 10px 0 12px; }
  .site-nav { order: 3; flex: 1 0 100%; justify-content: center; margin-left: 0; }
  .lang-switch { margin-left: auto; }
  section[id] { scroll-margin-top: 124px; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery { grid-auto-columns: 44%; gap: 12px; }
  .project-title .app-icon { width: 68px; height: 68px; border-radius: 17px; }
  .lightbox { padding: 16px 12px 84px; }
  .lightbox img { max-height: calc(100dvh - 120px); border-radius: 20px; }
  .lb-prev, .lb-next { position: absolute; bottom: 18px; }
  .lb-prev { left: calc(50% - 90px); }
  .lb-next { right: calc(50% - 90px); }
  .lb-close { top: 12px; right: 12px; z-index: 1; }
  .lb-count { bottom: 32px; }
}
