:root {
  --bg-base: #07090f;
  --bg-elev: #0d111a;
  --surface: rgba(17, 22, 33, 0.82);
  --surface-strong: rgba(15, 20, 31, 0.96);
  --text: #f4f6ff;
  --text-muted: #a8b1c7;
  --brand: #ff2e43;
  --brand-soft: #ff6474;
  --accent: #ff9c3f;
  --line: rgba(255, 255, 255, 0.1);
  --glow: rgba(255, 46, 67, 0.5);
  --container: min(1120px, calc(100% - 3rem));
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-lg: 0 20px 65px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

body {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 46, 67, 0.18), transparent 36%),
    radial-gradient(circle at 85% 35%, rgba(255, 156, 63, 0.16), transparent 30%),
    linear-gradient(170deg, #05060b 0%, #080b12 48%, #05060b 100%);
  color: var(--text);
  font-family: "Sora", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-grain {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 3px 3px, 3px 3px;
  inset: 0;
  mix-blend-mode: soft-light;
  opacity: 0.25;
  pointer-events: none;
  position: fixed;
  z-index: -3;
}

#surrealCanvas {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

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

main {
  padding-bottom: 3rem;
}

.section-shell {
  margin: 0 auto;
  width: var(--container);
}

.section {
  margin-top: 6.5rem;
}

.site-header {
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.9), rgba(5, 7, 11, 0.45));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  left: 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 40;
}

.header-shell {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  min-height: 74px;
  width: var(--container);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.8rem;
}

.brand-logo {
  filter: drop-shadow(0 0 14px rgba(255, 46, 67, 0.45));
  height: 2.4rem;
  object-fit: contain;
  width: 2.4rem;
}

.brand-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 220ms ease, text-shadow 220ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
  text-shadow: 0 0 14px rgba(255, 46, 67, 0.35);
}

.header-controls {
  align-items: center;
  display: flex;
  gap: 0.6rem;
}

.language-select {
  appearance: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7l5 6 5-6'/%3E%3C/svg%3E");
  background-position: center, right 0.52rem center;
  background-repeat: no-repeat;
  background-size: auto, 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  color: var(--text);
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  min-width: 7.1rem;
  padding: 0.48rem 1.65rem 0.48rem 0.62rem;
}

.language-select option {
  background: #0f131f;
  color: #f2f6ff;
}

.language-select:hover,
.language-select:focus-visible {
  border-color: rgba(255, 156, 63, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 156, 63, 0.15);
  outline: 0;
}

.nav-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-toggle span {
  background: var(--text);
  border-radius: 3px;
  display: block;
  height: 2px;
  transition: transform 220ms ease, opacity 220ms ease;
  width: 24px;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.scroll-progress {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  height: 2px;
  width: 0;
}

.hero {
  align-items: center;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: calc(100vh - 74px);
  padding-top: 3rem;
}

.hero-copy h1 {
  display: grid;
  gap: 0.55rem;
  line-height: 0.95;
  margin-top: 0.45rem;
}

.hero-copy h1 .hero-kicker {
  color: var(--brand-soft);
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 .hero-title-main {
  color: var(--text);
  display: block;
  font-size: 1em;
  letter-spacing: inherit;
  text-transform: none;
}

.hero-copy h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.4rem, 7.4vw, 6.5rem);
  letter-spacing: 0.02em;
}

.eyebrow {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-description {
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 58ch;
}

.hero-rotator {
  color: #d7def0;
  display: grid;
  font-size: 0.92rem;
  gap: 0.28rem;
  margin-top: 1rem;
  max-width: 58ch;
}

#heroRotator {
  color: var(--text);
  display: block;
  font-weight: 600;
  font-size: 1em;
  letter-spacing: 0.01em;
  line-height: 1.35;
  min-height: 1.35em;
  overflow: hidden;
  position: relative;
  width: 100%;
  will-change: transform;
}

#heroRotator.is-ready {
  contain: layout paint style;
}

.hero-rotator-line {
  backface-visibility: hidden;
  display: block;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: opacity, transform;
  white-space: pre-line;
}

.hero-rotator-line.is-current {
  position: relative;
}

.hero-rotator-line.is-exit {
  opacity: 0;
  transform: translate3d(16px, 0, 0);
  transition: opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-rotator-line.is-next {
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transform: translate3d(-20px, 0, 0);
  width: 100%;
}

.hero-rotator-line.is-next.is-enter {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-rotator-line--measure {
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  visibility: hidden;
  width: 100%;
}

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

.btn {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 600;
  gap: 0.4rem;
  justify-content: center;
  letter-spacing: 0.02em;
  min-width: 170px;
  padding: 0.8rem 1.3rem;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #ff5e3d);
  box-shadow: 0 10px 28px rgba(255, 46, 67, 0.35);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 15px 32px rgba(255, 46, 67, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(255, 156, 63, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 156, 63, 0.12);
}

.hero-metrics {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin-top: 2rem;
  padding-top: 1.2rem;
}

.hero-metrics strong {
  color: var(--text);
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.hero-metrics span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.hero-panel {
  background: linear-gradient(160deg, rgba(18, 24, 36, 0.95), rgba(12, 15, 25, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 1.1rem;
  padding: 1.5rem;
  position: relative;
  transition: transform 180ms ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-panel::after {
  background: radial-gradient(circle at 75% 8%, rgba(255, 46, 67, 0.35), transparent 60%);
  border-radius: inherit;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.panel-kicker {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-panel h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.15rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
}

.signal-grid {
  display: grid;
  gap: 0.8rem;
}

.signal-grid article {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
}

.signal-grid h3 {
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signal-grid p {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.panel-tags span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: #d8deed;
  font-size: 0.76rem;
  padding: 0.35rem 0.68rem;
}

.section-intro {
  display: grid;
  gap: 0.9rem;
  max-width: 760px;
}

.section-intro h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.04;
}

.section-intro p:last-child {
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.feature-card {
  background: linear-gradient(160deg, rgba(16, 21, 33, 0.9), rgba(10, 13, 22, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.3rem;
  transition: transform 220ms ease, border-color 220ms ease;
}

.feature-card:hover {
  border-color: rgba(255, 46, 67, 0.45);
  transform: translateY(-5px);
}

.feature-card h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.45rem;
}

.projects .section-intro {
  margin-bottom: 1.6rem;
}

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

.project-card {
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 230ms ease, border-color 230ms ease;
}

a.project-card {
  display: block;
}

.project-card:hover {
  border-color: rgba(255, 156, 63, 0.6);
  transform: translateY(-6px);
}

a.project-card:focus-visible {
  border-color: rgba(255, 156, 63, 0.75);
  outline: 2px solid rgba(255, 156, 63, 0.75);
  outline-offset: 2px;
}

.project-visual {
  height: 170px;
  position: relative;
}

.project-visual img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.project-visual::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent 70%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.p1 {
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 103, 96, 0.8), transparent 36%),
    linear-gradient(135deg, #2e090e, #430e19 50%, #110910);
}

.p2 {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 167, 77, 0.72), transparent 34%),
    linear-gradient(140deg, #2a1e2a, #0e0e16 45%, #180e18);
}

.p3 {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 75, 116, 0.75), transparent 34%),
    linear-gradient(135deg, #131f2f, #120b17 50%, #260f14);
}

.project-content {
  display: grid;
  gap: 0.55rem;
  padding: 1.1rem;
}

.project-status {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-content h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
}

.project-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.project-obfuscated {
  filter: blur(4px);
  user-select: none;
}

.project-obfuscated--title {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #d7dded;
  display: flex;
  font-size: 0.78rem;
  justify-content: space-between;
  margin-top: 0.35rem;
  padding-top: 0.65rem;
}

.timeline {
  display: grid;
  gap: 0.95rem;
  list-style: none;
  margin-top: 1.8rem;
}

.timeline-step {
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr;
  padding: 1rem 1.15rem;
}

.timeline-step span {
  align-items: center;
  background: linear-gradient(140deg, rgba(255, 46, 67, 0.4), rgba(255, 156, 63, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  color: #fff;
  display: inline-flex;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
  font-weight: 700;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.timeline-step h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.timeline-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.team-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 1.8rem;
}

.team-card {
  background: linear-gradient(165deg, rgba(17, 22, 34, 0.95), rgba(11, 14, 24, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  display: grid;
  gap: 0.3rem;
  grid-template-rows: auto minmax(2.3rem, auto) minmax(2.7rem, auto) 1fr;
  padding: 1rem;
  transition: transform 220ms ease, border-color 220ms ease;
}

.team-card:hover {
  border-color: rgba(255, 46, 67, 0.45);
  transform: translateY(-4px);
}

.team-photo {
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: block;
  margin-bottom: 0.4rem;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.team-photo-logo {
  background: rgba(255, 0, 0, 0.06);
  object-fit: contain;
  padding: 0.8rem;
}

.team-card h3 {
  align-items: flex-end;
  color: var(--text);
  display: flex;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin: 0;
}

.team-card p {
  align-items: flex-start;
  color: var(--accent);
  display: flex;
  font-size: 0.85rem;
  line-height: 1.3;
  margin-top: 0;
}

.team-card span {
  color: var(--text-muted);
  display: block;
  font-size: 0.87rem;
  line-height: 1.45;
  margin-top: 0;
}

.contact {
  align-items: start;
  background: linear-gradient(160deg, rgba(19, 24, 38, 0.92), rgba(12, 15, 25, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 1.4rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  margin-top: 6rem;
  padding: clamp(1.2rem, 2.4vw, 2rem);
}

.contact p {
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 48ch;
  overflow-wrap: anywhere;
}

.email-link {
  color: var(--text);
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.94rem;
  margin-top: 1rem;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.social-btn {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  color: #f0f3ff;
  display: inline-flex;
  height: 2.85rem;
  justify-content: center;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
  width: 2.85rem;
}

.social-btn svg {
  fill: none;
  height: 1.18rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 1.18rem;
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-2px);
}

.social-btn:focus-visible {
  outline: 0;
}

.social-btn--youtube:hover,
.social-btn--youtube:focus-visible {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.16);
}

.social-btn--facebook:hover,
.social-btn--facebook:focus-visible {
  background: rgba(24, 119, 242, 0.2);
  border-color: rgba(24, 119, 242, 0.65);
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.14);
}

.social-btn--linkedin:hover,
.social-btn--linkedin:focus-visible {
  background: rgba(10, 102, 194, 0.2);
  border-color: rgba(10, 102, 194, 0.65);
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.14);
}

.social-btn--patronite:hover,
.social-btn--patronite:focus-visible {
  background: rgba(255, 100, 116, 0.2);
  border-color: rgba(255, 100, 116, 0.68);
  box-shadow: 0 0 0 3px rgba(255, 100, 116, 0.16);
}

.social-btn--patreon:hover,
.social-btn--patreon:focus-visible {
  background: rgba(255, 66, 77, 0.2);
  border-color: rgba(255, 66, 77, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 66, 77, 0.16);
}

.social-btn--discord:hover,
.social-btn--discord:focus-visible {
  background: rgba(88, 101, 242, 0.2);
  border-color: rgba(88, 101, 242, 0.72);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.16);
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.contact-form {
  display: grid;
  gap: 0.55rem;
}

.contact-form label {
  color: #d3d9ea;
  font-size: 0.8rem;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  padding: 0.68rem 0.78rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 46, 67, 0.62);
  box-shadow: 0 0 0 3px rgba(255, 46, 67, 0.14);
  outline: 0;
}

.contact-form .btn {
  margin-top: 0.35rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  margin-top: 3.5rem;
  padding: 1.3rem 1rem 2.2rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2.3rem;
  }

  .hero-panel {
    max-width: 640px;
  }

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

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

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

@media (max-width: 760px) {
  .section-shell {
    width: min(1120px, calc(100% - 1.4rem));
  }

  .site-header {
    position: sticky;
  }

  .main-nav {
    background: rgba(7, 10, 17, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    left: 0.7rem;
    margin-left: 0;
    opacity: 0;
    padding: 0.8rem;
    pointer-events: none;
    position: absolute;
    right: 0.7rem;
    top: calc(100% + 0.55rem);
    transform: translateY(-8px);
    transition: transform 220ms ease, opacity 220ms ease;
    z-index: 12;
  }

  .main-nav a {
    border-radius: 8px;
    padding: 0.55rem 0.45rem;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .brand-name {
    font-size: 1.6rem;
  }

  .language-select {
    min-width: 5.9rem;
    padding: 0.43rem 1.55rem 0.43rem 0.55rem;
  }

  .hero {
    min-height: auto;
    padding-top: 1.9rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .project-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .section {
    margin-top: 5rem;
  }

  .contact {
    margin-top: 5rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

