:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0b0b0d;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f4f1eb;
  --muted: #aaa39a;
  --dim: #6e6861;
  --red: #d91822;
  --red-deep: #7d1117;
  --max: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 24, 34, 0.18), transparent 34rem),
    linear-gradient(135deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 18px),
    var(--bg);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), transparent 16%, transparent 84%, rgba(255,255,255,0.035));
  mix-blend-mode: screen;
  opacity: 0.35;
}


.language-switch {
  position: fixed;
  z-index: 5;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: var(--dim);
  background: rgba(5, 5, 5, 0.62);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.lang-option {
  cursor: pointer;
  user-select: none;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  transition: color 160ms ease;
}

.lang-option.active {
  color: var(--text);
}

.switch {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 24px;
}

.switch input {
  width: 0;
  height: 0;
  opacity: 0;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  transition: background 160ms ease, border-color 160ms ease;
}

.slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: var(--text);
  border-radius: 50%;
  transition: transform 160ms ease, background 160ms ease;
}

.switch input:checked + .slider {
  background: rgba(217, 24, 34, 0.30);
  border-color: rgba(217, 24, 34, 0.54);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
  background: #fff;
}

.switch input:focus-visible + .slider {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.site-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 56px 0 48px;
}

.hero {
  min-height: min(760px, 92vh);
  display: grid;
  align-content: center;
  gap: 44px;
  padding: 40px 0 72px;
}

.mark-wrap {
  position: relative;
  display: grid;
  place-items: center;
  gap: 22px;
}

.mark-wrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(720px, 86vw);
  aspect-ratio: 1.9;
  background: radial-gradient(closest-side, rgba(217, 24, 34, 0.18), transparent 72%);
  pointer-events: none;
}

.brand-mark {
  position: relative;
  z-index: 1;
  display: block;
  width: min(860px, 100%);
  height: auto;
}

.accent-line {
  width: min(420px, 56vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.66;
}

.hero-copy {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 7vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.intro {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.24rem);
}

.what-we-do,
.thesis,
.contact {
  border-top: 1px solid var(--panel-border);
  padding: 72px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2,
.thesis h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  border: 1px solid var(--panel-border);
  border-radius: 24px;
}

.card::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -48px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(217, 24, 34, 0.36);
  transform: rotate(45deg);
}

.card-number {
  display: block;
  margin-bottom: 40px;
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
}

.card p,
.thesis p {
  color: var(--muted);
  font-size: 1.04rem;
}

.thesis {
  max-width: 860px;
}

.thesis h2 {
  margin-bottom: 24px;
}

.thesis p {
  max-width: 760px;
  margin-bottom: 14px;
}

.contact {
  min-height: 300px;
}

.contact h2 {
  margin-bottom: 18px;
}

.contact a {
  display: inline-flex;
  color: var(--text);
  font-size: clamp(1.35rem, 4vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  text-decoration: none;
  border-bottom: 2px solid var(--red);
}

.contact a:hover,
.contact a:focus-visible {
  color: #fff;
  text-shadow: 0 0 24px rgba(217, 24, 34, 0.45);
}

@media (max-width: 760px) {
  
.language-switch {
  position: fixed;
  z-index: 5;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: var(--dim);
  background: rgba(5, 5, 5, 0.62);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.lang-option {
  cursor: pointer;
  user-select: none;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  transition: color 160ms ease;
}

.lang-option.active {
  color: var(--text);
}

.switch {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 24px;
}

.switch input {
  width: 0;
  height: 0;
  opacity: 0;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  transition: background 160ms ease, border-color 160ms ease;
}

.slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: var(--text);
  border-radius: 50%;
  transition: transform 160ms ease, background 160ms ease;
}

.switch input:checked + .slider {
  background: rgba(217, 24, 34, 0.30);
  border-color: rgba(217, 24, 34, 0.54);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
  background: #fff;
}

.switch input:focus-visible + .slider {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.site-shell { width: min(100% - 24px, var(--max)); padding-top: 32px; }
  .hero { min-height: auto; padding: 64px 0 56px; gap: 32px; }
  .cards { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .card { min-height: 190px; }
  .what-we-do, .thesis, .contact { padding: 54px 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .brand-mark { animation: emerge 900ms ease-out both; }
  .hero-copy { animation: rise 700ms ease-out 120ms both; }
  .card { transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
  .card:hover { transform: translateY(-3px); border-color: rgba(217, 24, 34, 0.42); background: linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035)); }
}

@keyframes emerge {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
