/* labforge — единая заглушка. Один бренд-шелл, два равных проекта внутри. */

/* ---------- Playfair Display (editorial serif) ---------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/playfair-display-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/playfair-display-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/playfair-display-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/playfair-display-cyrillic-800-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- Inter (sans, UI) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- JetBrains Mono (utility/mono) ---------- */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jetbrains-mono-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/jetbrains-mono-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- tokens ---------- */
:root {
  --bg: #0a0e17;
  --surface: #121826;
  --surface-hover: #161d2e;
  --border: #242c40;
  --border-hover: #33405c;

  --text: #eef1f7;
  --text-muted: #a7b0c4;
  /* #7a839a вместо спецификационного #717b92: обеспечивает AA (>=4.5:1)
     и на --bg, и на --surface — см. отчёт по контрасту. */
  --text-faint: #7a839a;

  --grom: #f0b429;
  --grom-ink: #1a1400;
  --oversoul: #478fef;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-card: 16px;
  --radius-chip: 10px;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 560px at 50% -8%, rgba(70, 90, 150, .18), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 2px solid var(--oversoul);
  outline-offset: 3px;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 24px 32px;
}

.shell {
  width: 100%;
  min-width: 0;
  max-width: 1040px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 40px 0;
}

.hero {
  width: 100%;
  min-width: 0;
  max-width: 660px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
  overflow-wrap: break-word;
}

.hero__subtitle {
  margin: 0 auto;
  max-width: 620px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  overflow-wrap: break-word;
}

.projects {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 2px;
  border-radius: 0 0 2px 2px;
}

.card--grom::before {
  background: var(--grom);
}

.card--oversoul::before {
  background: var(--oversoul);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.card--grom:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35), 0 0 0 1px rgba(240, 180, 41, .12), 0 12px 32px rgba(240, 180, 41, .10);
}

.card--oversoul:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35), 0 0 0 1px rgba(71, 143, 239, .14), 0 12px 32px rgba(71, 143, 239, .12);
}

.card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chip {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-chip);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip--grom {
  background: var(--grom);
  color: var(--grom-ink);
  font-size: 18px;
  font-variant-emoji: text;
}

.chip--oversoul {
  background: var(--oversoul);
}

.card__name {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
}

.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid;
}

.badge--grom {
  color: var(--grom);
  border-color: rgba(240, 180, 41, .4);
}

.badge--oversoul {
  color: var(--oversoul);
  border-color: rgba(71, 143, 239, .4);
}

.tag {
  margin: 0;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.card__desc {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 13px;
  color: var(--text-faint);
  padding-top: 24px;
}

@media (max-width: 720px) {
  .page {
    padding: 48px 20px 28px;
  }

  .shell {
    gap: 40px;
  }

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

  .card {
    padding: 24px;
  }
}
