/* ==========================================================================
   Ravshanov Digital — Base: fonts, reset, typography, layout, utilities
   ========================================================================== */

/* ---- Self-hosted fonts (latin subset; cyrillic/latin-ext added at i18n phase) ---- */
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../fonts/sg-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../fonts/sg-600.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("../fonts/sg-700.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("../fonts/pj-400.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../fonts/pj-500.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../fonts/pj-600.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("../fonts/pj-700.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800;
  font-display: swap; src: url("../fonts/pj-800.woff2") format("woff2");
}

/* ---- Cyrillic (Russian) coverage via Manrope, mapped onto the same family
        names by unicode-range. Space Grotesk & Plus Jakarta Sans have no
        Cyrillic glyphs, so Russian text falls through to these. ---- */
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("../fonts/mr-cyr-500.woff2") format("woff2"); unicode-range: U+0400-04FF, U+0500-052F, U+2116; }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url("../fonts/mr-cyr-600.woff2") format("woff2"); unicode-range: U+0400-04FF, U+0500-052F, U+2116; }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("../fonts/mr-cyr-700.woff2") format("woff2"); unicode-range: U+0400-04FF, U+0500-052F, U+2116; }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("../fonts/mr-cyr-400.woff2") format("woff2"); unicode-range: U+0400-04FF, U+0500-052F, U+2116; }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("../fonts/mr-cyr-500.woff2") format("woff2"); unicode-range: U+0400-04FF, U+0500-052F, U+2116; }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("../fonts/mr-cyr-600.woff2") format("woff2"); unicode-range: U+0400-04FF, U+0500-052F, U+2116; }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("../fonts/mr-cyr-700.woff2") format("woff2"); unicode-range: U+0400-04FF, U+0500-052F, U+2116; }

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 4px; }

/* ---- Document ---- */
body {
  font-family: var(--font-body);
  font-weight: var(--w-regular);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-style: normal; /* italics are never used across this site */
}
em, i, cite, dfn { font-style: normal; } /* enforce: no italic anywhere */

/* ---- Ambient background: soft mesh orbs (fixed, non-interactive) ---- */
.bg-mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.bg-mesh::before, .bg-mesh::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.5;
}
.bg-mesh::before {
  width: 46vw; height: 46vw; top: -12vw; left: -8vw;
  background: radial-gradient(circle at center, rgba(109,108,255,0.5), transparent 62%);
}
.bg-mesh::after {
  width: 40vw; height: 40vw; top: 22vw; right: -10vw;
  background: radial-gradient(circle at center, rgba(61,220,151,0.28), transparent 60%);
}
[data-theme="light"] .bg-mesh::before { opacity: 0.35; }
[data-theme="light"] .bg-mesh::after { opacity: 0.22; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--w-bold);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: var(--step-5); letter-spacing: -0.035em; }
h2 { font-size: var(--step-4); letter-spacing: -0.03em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-weight: var(--w-semibold); }
p { color: var(--text-muted); }
strong, b { font-weight: var(--w-bold); color: var(--text); }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); }
.section { position: relative; z-index: 1; padding-block: clamp(4.5rem, 3rem + 7vw, 9rem); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
main { position: relative; z-index: 1; }

/* ---- Eyebrow tag ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: var(--w-semibold);
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.8rem; border-radius: var(--r-pill);
  border: 1px solid var(--hairline); background: var(--surface);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 12px var(--accent-hi); }

/* ---- Section heading block ---- */
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--space-4); font-size: var(--step-1); color: var(--text-muted); }

/* ---- Gradient text accent ---- */
.grad {
  background: linear-gradient(120deg, var(--text) 30%, var(--accent-hi));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ==========================================================================
   Placeholder image box — WHITE box, dimensions centered (per brief).
   Real assets get dropped in later; every box states exactly what & how big.
   ========================================================================== */
.ph {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.35rem; text-align: center;
  width: 100%; padding: 1.5rem;
  background: linear-gradient(155deg, #ffffff 0%, #eef1f6 100%); color: var(--ph-fg);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px rgba(9,12,20,0.05), inset 0 1px 0 rgba(255,255,255,0.9);
  overflow: hidden;
}
.ph::after { /* subtle guide so it clearly reads as an image slot */
  content: ""; position: absolute; inset: 0.6rem; border: 1.5px dashed rgba(9,12,20,0.14);
  border-radius: calc(var(--r-md) - 0.4rem); pointer-events: none;
}
.ph-dim {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: var(--w-bold);
  font-size: clamp(1rem, 0.85rem + 0.7vw, 1.5rem); letter-spacing: -0.01em;
  color: var(--ph-fg); position: relative; z-index: 1;
}
.ph-dim::before { /* muted photo glyph above the dimensions */
  content: ""; width: 1.75rem; height: 1.75rem; opacity: 0.4;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0c14' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.6'/%3E%3Cpath d='m4 18 5-5 4 3 3-2 4 4'/%3E%3C/svg%3E");
}
.ph-logo .ph-dim::before { display: none; }
.ph-label {
  font-family: var(--font-body); font-weight: var(--w-semibold);
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ph-sub); position: relative; z-index: 1;
}
.ph-logo { min-height: 3.75rem; padding: 1rem 1.25rem; border-radius: var(--r-sm); }
.ph-logo .ph-dim { font-size: 0.9rem; }

/* ---- Utility ---- */
.u-mono-num { font-family: var(--font-display); font-weight: var(--w-bold); letter-spacing: -0.02em; }
.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: fixed; top: 0.75rem; left: 0.75rem; z-index: var(--z-toast);
  padding: 0.6rem 1rem; border-radius: var(--r-sm);
  background: var(--accent); color: #fff; font-weight: var(--w-semibold);
  transform: translateY(-160%); transition: transform var(--dur-fast) var(--ease-soft);
}
.skip-link:focus-visible { transform: translateY(0); }
