/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --surface: #161616;
  --surface-hover: #1f1f1f;
  --border: #2c2c2c;
  --text: #f2f2f2;
  --muted: #a6a6a6;        /* grey from the profile photo, about 8:1 on --bg */
  --accent: #f2f2f2;       /* white from the profile photo highlights */
  --accent-ink: #0a0a0a;   /* text on accent buttons */
  --focus: #ffffff;

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Serif", Georgia, "Times New Roman", serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --container: 1120px;
  --gutter: 16px;
  --section-y: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 400; }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.01em; }
h3 { font-family: var(--font-body); font-size: 0.92rem; font-weight: 400; letter-spacing: -0.005em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.sr-only {
  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; left: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

.eyebrow {
  font-size: 0.7rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.eyebrow::after { content: ""; width: 48px; height: 1px; background: var(--accent); opacity: 0.7; }
.muted { color: var(--muted); }
.lead { color: var(--muted); font-size: clamp(0.85rem, 1.2vw, 0.95rem); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px; border-radius: var(--radius-pill);
  font-weight: 400; font-size: 0.82rem; text-decoration: none; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px); background: #d9d9d9; }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn-small {
  min-height: 40px; padding: 0 22px; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 18px;
}
.proof-card .btn-small { margin-top: 18px; }

.text-link {
  display: inline-flex; margin-top: 14px; color: var(--accent); font-weight: 400; text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease);
}
.text-link:hover { border-bottom-color: var(--accent); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--font-display); font-size: 1.6rem; text-decoration: none; letter-spacing: 0.01em; }

.menu-toggle {
  width: 48px; height: 48px; background: none; border: 1px solid var(--border); border-radius: 12px;
  cursor: pointer; display: grid; place-items: center; color: var(--text);
}
.bars, .bars::before, .bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.menu-open .bars { background: transparent; }
.menu-open .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-open .bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  position: fixed; inset: 72px 0 auto 0; background: var(--bg-alt); border-bottom: 1px solid var(--border);
  padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.site-nav a {
  display: block; padding: 14px 0; text-decoration: none; font-size: 0.9rem; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.site-nav a:hover { color: var(--accent); }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .site-nav {
    position: static; inset: auto; background: none; border: 0; padding: 0; transform: none;
    opacity: 1; visibility: visible;
  }
  .site-nav ul { display: flex; gap: 32px; }
  .site-nav a { padding: 6px 0; border: 0; font-size: 0.85rem; color: var(--muted); position: relative; }
  .site-nav a::after {
    content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
  }
  .site-nav a:hover { color: var(--text); }
  .site-nav a:hover::after { transform: scaleX(1); }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 110px); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(3.4rem, 10vw, 6.5rem); margin-bottom: 14px; }
.tagline { font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 2.6vw, 1.6rem); color: var(--text); margin-bottom: 22px; }
.hero-photo {
  width: min(100%, 420px); margin-inline: auto; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border); background: var(--surface);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero-photo--placeholder { display: grid; place-items: center; color: var(--muted); text-align: center; font-size: 0.95rem; }
.hero-photo--placeholder small { font-size: 0.8rem; opacity: 0.8; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 72px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.section-intro { color: var(--muted); margin-top: 18px; max-width: 60ch; }

.about-grid { display: grid; gap: 48px; }
.about-body p { color: var(--muted); margin-bottom: 18px; font-size: 0.85rem; max-width: 62ch; }
.about-body p:first-child { color: var(--text); font-size: 0.92rem; }
.facts { display: grid; gap: 12px; align-content: start; }
.fact {
  padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
}
.fact dt { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 6px; }
.fact dd { margin: 0; font-size: 0.85rem; font-weight: 400; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.4fr 1fr; gap: 80px; } }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid.services-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.4); background: var(--surface-hover); }
.card p { color: var(--muted); margin-top: 10px; }

.service-num {
  display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: var(--accent);
  opacity: 0.85; margin-bottom: 22px;
}
.service-card h3 { font-size: 0.98rem; font-family: var(--font-display); font-weight: 400; }

.proof-card { padding: 0; }
.proof-card .card-body { padding: 26px 28px 30px; }
.proof-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; }
.card-media-placeholder {
  aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--bg-alt);
  border-bottom: 1px dashed var(--border); color: var(--muted); font-size: 0.9rem; letter-spacing: 0.04em;
}
.proof-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--border); }

.exp-card .exp-period { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin: 0 0 10px; }
.exp-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; }
.exp-card .exp-project { color: var(--text); font-weight: 400; margin-top: 4px; }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--border); }
.contact-inner { max-width: 760px; }
.contact h2 { font-size: clamp(1.6rem, 3.8vw, 2.2rem); margin-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-top: 56px; background: var(--bg-alt); }
.footer-inner { display: grid; gap: 32px; padding-bottom: 40px; }
.brand--footer { font-size: 1.3rem; margin-bottom: 8px; }
.socials { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.socials li:not(:has(.social-icon)) { flex-basis: 100%; }
.socials a, .socials li > span { display: flex; gap: 12px; padding: 10px 0; text-decoration: none; border-bottom: 1px solid var(--border); }
.socials a:hover .social-handle { color: var(--accent); }
.socials li { display: block; }
.social-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.social-icon:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
/* Official brand colors for each logo. */
.social-icon--telegram, .social-icon--discord, .social-icon--x { background: none; border-color: transparent; }
.social-icon--telegram { color: #26a5e4; }
.social-icon--discord { color: #5865f2; }
.social-icon--x { color: #f2f2f2; }
.social-icon--telegram:hover, .social-icon--discord:hover, .social-icon--x:hover { border-color: transparent; background: none; }
.social-icon svg { width: 32px; height: 32px; }
.socials .social-icon { display: inline-grid; place-items: center; padding: 0; justify-content: center; border: 0; }
.social-label { min-width: 84px; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; padding-top: 2px; }
.social-handle { color: var(--text); overflow-wrap: anywhere; transition: color 0.2s var(--ease); }
.copyright { border-top: 1px solid var(--border); padding-block: 22px; color: var(--muted); font-size: 0.78rem; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .card.reveal.is-visible:hover { transform: translateY(-4px); }

/* ---------- Motion: bouncy entrances, floating hero photo, image zoom ---------- */
.js .reveal { transition: opacity 0.7s var(--ease), transform 0.9s cubic-bezier(0.34, 1.45, 0.64, 1); }
.js .card-grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .card-grid > .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .card-grid > .reveal:nth-child(4) { transition-delay: 0.24s; }
.js .card-grid > .reveal:nth-child(5) { transition-delay: 0.32s; }
.js .card-grid > .reveal:nth-child(6) { transition-delay: 0.4s; }
.js .card-grid > .reveal:nth-child(n+7) { transition-delay: 0.1s; }

@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.4deg); }
}
@keyframes hero-in {
  from { opacity: 0; transform: scale(0.92) translateY(24px); }
  to { opacity: 1; transform: none; }
}
.hero-photo {
  animation: hero-in 1s cubic-bezier(0.34, 1.45, 0.64, 1) both, hero-float 7s ease-in-out 1s infinite;
  box-shadow: 0 30px 60px -30px rgba(255, 255, 255, 0.06);
}

.proof-card img,
.proof-card .card-media-placeholder { transition: transform 0.7s var(--ease); transform-origin: center; }
.proof-card:hover img { transform: scale(1.06); }

.btn-primary, .btn-ghost { will-change: transform; }
.social-icon:active, .btn:active { transform: scale(0.96); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-photo { animation: none; }
}

/* ---------- Mobile overflow safety ---------- */
/* Let grid items shrink below their content width so nothing spills past the screen. */
.hero-grid > *, .about-grid > *, .footer-inner > *, .card-grid > *, .container > * { min-width: 0; max-width: 100%; }
h1, h2, h3, p, dd, dt, a { overflow-wrap: anywhere; }
img, video { max-width: 100%; }

/* ---------- Contact: locked message button ---------- */
.cta-row .is-locked { pointer-events: none; opacity: 0.35; cursor: not-allowed; }
.message-hint { color: var(--muted); font-size: 0.78rem; width: 100%; margin-top: 4px; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { padding: 22px 24px; margin: 0; }
.review-card blockquote { margin: 0; font-size: 0.78rem; line-height: 1.6; color: var(--muted); }

.review-card figcaption { margin-top: 14px; font-size: 0.72rem; font-weight: 400; letter-spacing: 0.04em; color: var(--text); }
.review-card figcaption::before { content: "— "; color: var(--muted); }

/* ---------- Hero refinements: bold sans name, upright tagline ---------- */
.hero h1 { font-family: var(--font-body); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.tagline { font-style: normal; }

/* Header has no name now, so keep the menu button on the right. */
.menu-toggle { margin-left: auto; }

/* ---------- Hero name: bold sans, tagline upright ---------- */
.hero-name { font-family: var(--font-body); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.tagline { font-style: normal; }

/* Hero name keeps its bold sans-serif. */
.hero-name { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
