﻿:root {
  --bg: #05070a;
  --bg-soft: #0b0f14;
  --panel: rgba(11, 15, 20, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.02);
  --line: rgba(226, 232, 240, 0.12);
  --line-strong: rgba(226, 232, 240, 0.22);
  --text: #f3f6f9;
  --muted: #98a4b3;
  --soft: #cdd6df;
  --accent: #d9e3ee;
  --accent-soft: rgba(217, 227, 238, 0.08);
  --container: 1220px;
  --content: 760px;
  --radius: 24px;
  --radius-sm: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(180deg, #040608 0%, #070a0e 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 90%);
  opacity: 0.32;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 7, 10, 0), rgba(5, 7, 10, 0.18));
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-shell {
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(5, 7, 10, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-row {
  position: relative;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.brand-copy {
  display: grid;
  gap: 0.12rem;
}

.brand-copy strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.lang-button {
  min-width: 2.5rem;
  min-height: 2rem;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.lang-button:hover,
.lang-button:focus-visible {
  color: var(--text);
}

.lang-button.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.site-nav a,
.eyebrow,
.section-tag,
.card-index,
.service-item span,
.contact-list a,
.contact-list span {
  font-family: "IBM Plex Mono", monospace;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.34rem auto;
  background: var(--text);
  transition: transform 0.2s ease;
}

.hero {
  padding: 4.8rem 0 4.15rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  justify-items: center;
}

.hero-copy {
  width: min(100%, 64rem);
  max-width: none;
  min-width: 0;
}

.eyebrow,
.section-tag,
.card-index,
.service-item span {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 5.2vw, 4.95rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  overflow-wrap: normal;
  hyphens: manual;
  text-wrap: balance;
}

h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  overflow-wrap: normal;
  hyphens: manual;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.lead,
.hero-note,
.prose,
.info-card p,
.service-item p,
.principle-card p,
.tool-note,
.project-card dd,
.contact-list a,
.contact-list span {
  color: var(--soft);
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.lead {
  width: 100%;
  margin-top: 1.35rem;
  font-size: 1.08rem;
  text-wrap: pretty;
}

.hero-note {
  width: 100%;
  margin-top: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

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

.button-primary {
  background: var(--text);
  color: #06080b;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line-strong);
}

.section {
  padding: 4rem 0;
}

.section-line {
  border-top: 1px solid var(--line);
}

.section-grid,
.cta-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.52fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.section-meta {
  display: grid;
  gap: 0.5rem;
}

.section-body {
  min-width: 0;
}

.prose {
  display: grid;
  gap: 1rem;
}

.prose-wide {
  max-width: var(--content);
}

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

.card-grid-double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid-triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.principle-card,
.project-card,
.tool-panel,
.audience-panel,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.info-card,
.principle-card,
.project-card,
.tool-panel,
.audience-panel,
.contact-panel {
  padding: 1.45rem;
}

.info-card,
.principle-card {
  min-height: 100%;
}

.card-index {
  display: inline-block;
  margin-bottom: 1rem;
}

.info-card h3,
.principle-card h3,
.project-card h3 {
  margin-bottom: 0.8rem;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.service-item h3 {
  margin-bottom: 0.45rem;
}

.tool-panel {
  display: grid;
  gap: 1.4rem;
}

.tool-list,
.audience-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-list li,
.audience-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text);
  line-height: 1.6;
}

.tool-list li::before,
.audience-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0.35rem var(--accent-soft);
}

.tool-note {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.audience-panel {
  display: grid;
  gap: 1.4rem;
}

.project-grid {
  margin-top: 1.8rem;
}

.project-head {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

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

.project-card dt {
  margin-bottom: 0.32rem;
  color: var(--text);
  font-weight: 700;
}

.project-card dd {
  margin: 0;
}

.cta-panel {
  grid-template-columns: minmax(260px, 0.62fr) minmax(320px, 0.72fr);
  gap: 2.6rem;
  padding: 2.4rem 0 0.2rem;
  align-items: center;
}

.cta-panel > * {
  padding-top: 0.2rem;
}

.cta-copy {
  max-width: 36rem;
}

.cta-copy h2 {
  max-width: 13ch;
  font-size: clamp(1.85rem, 2.5vw, 2.55rem);
  line-height: 1.06;
}

.cta-panel .prose {
  max-width: 31rem;
  gap: 1.5rem;
  padding-top: 1.35rem;
}

.contact-panel {
  display: grid;
  gap: 1.4rem;
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.contact-list a,
.contact-list span {
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.site-footer {
  padding: 1.4rem 0 2.4rem;
}

.footer-row {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.footer-title {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
}

.footer-legal {
  max-width: 100%;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.footer-legal a {
  color: inherit;
}

@media (max-width: 1100px) {
  .hero-grid,
  .section-grid,
  .cta-panel,
  .card-grid-triple {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .section-grid {
    gap: 1.7rem;
  }

  .hero-copy,
  .prose-wide {
    max-width: 100%;
  }

  .cta-panel .prose {
    max-width: 100%;
    padding-top: 0.2rem;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 3.4rem 0;
  }

  .hero {
    padding: 4rem 0 3.2rem;
  }

  .nav-toggle {
    display: inline-block;
  }

  .header-tools {
    gap: 0.75rem;
    padding-right: 3.7rem;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 1rem;
    left: 1rem;
    display: grid;
    gap: 0.4rem;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: rgba(10, 13, 18, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.4rem);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .site-header.menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.82rem 0.95rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .info-card,
  .principle-card,
  .project-card,
  .tool-panel,
  .audience-panel,
  .contact-panel {
    padding: 1.25rem;
  }

  .project-grid {
    margin-top: 1.35rem;
  }

  .site-header.menu-open .nav-toggle span:first-child {
    transform: translateY(0.34rem) rotate(45deg);
  }

  .site-header.menu-open .nav-toggle span:last-child {
    transform: translateY(-0.34rem) rotate(-45deg);
  }

  .card-grid-double {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .header-row,
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-row {
    min-height: 72px;
    justify-content: center;
    padding: 0.85rem 0;
  }

  .header-tools {
    width: 100%;
    margin-left: 0;
    padding-right: 3.7rem;
  }

  .lang-switcher {
    margin-top: 0.2rem;
  }

  .nav-toggle {
    position: absolute;
    top: 0.95rem;
    right: 0;
  }

  .hero {
    padding: 3.15rem 0 2.5rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 11.5vw, 3.15rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  h2 {
    max-width: 100%;
    font-size: clamp(1.65rem, 7.5vw, 2.1rem);
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .lead {
    font-size: 0.98rem;
    max-width: 100%;
  }

  .hero-note,
  .prose,
  .info-card p,
  .service-item p,
  .principle-card p,
  .tool-note,
  .project-card dd {
    line-height: 1.64;
  }

  .section-grid,
  .cta-panel {
    gap: 1.35rem;
  }

  .cta-copy h2 {
    max-width: 100%;
  }

  .cta-panel .prose {
    gap: 1.15rem;
    padding-top: 0;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .service-item {
    padding: 1.05rem 0;
  }

  .info-card,
  .principle-card,
  .project-card,
  .tool-panel,
  .audience-panel,
  .contact-panel {
    padding: 1.05rem;
    border-radius: 20px;
  }

  .contact-list a,
  .contact-list span,
  .site-nav a {
    letter-spacing: 0.02em;
  }

  .footer-row {
    gap: 0.45rem;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(calc(100% - 1rem), var(--container));
  }

  h1 {
    font-size: clamp(1.9rem, 10.5vw, 2.55rem);
    letter-spacing: -0.04em;
  }

  h2 {
    font-size: clamp(1.4rem, 6.8vw, 1.85rem);
  }

  .hero {
    padding-top: 2.9rem;
  }

  .header-row {
    padding: 0.8rem 0;
  }

  .brand-copy span {
    display: none;
  }

  .hero-actions {
    margin-top: 1.3rem;
  }

  .site-nav {
    left: 0.5rem;
    right: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
