:root {
  --bg: #10100f;
  --bg-soft: #181816;
  --text: #f4f1ec;
  --muted: #b9b2a7;
  --line: rgba(244, 241, 236, 0.16);
  --accent: #e9ff58;
  --accent-2: #ff5a3d;
  --panel: rgba(244, 241, 236, 0.07);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Onest", Inter, Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

img {
  display: block;
  max-width: 100%;
}

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

button,
.button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 16px 0;
}

.site-header::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 76px;
  content: "";
  background: rgba(16, 16, 15, 0.76);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled::before {
  background: rgba(16, 16, 15, 0.92);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-grid;
  gap: 5px;
  min-width: 126px;
  text-transform: uppercase;
}

.brand img {
  width: 96px;
  height: auto;
  object-fit: contain;
}

.brand small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover {
  color: var(--text);
}

.lang-switch,
.case-filter {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.lang-switch button,
.case-filter button {
  min-height: 34px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.lang-switch button {
  min-width: 38px;
  font-size: 12px;
  font-weight: 700;
}

.lang-switch button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.lang-switch .active,
.case-filter .active {
  color: #10100f;
  background: var(--accent);
}

.hero {
  position: relative;
  display: grid;
  width: 100%;
  min-height: calc(100svh - 76px);
  margin: -76px 0 0;
  padding: clamp(120px, 18vh, 190px) clamp(16px, 6vw, 120px) 32px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.08);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(16, 16, 15, 0.96), rgba(16, 16, 15, 0.56) 44%, rgba(16, 16, 15, 0.86)),
    linear-gradient(0deg, var(--bg), transparent 35%),
    linear-gradient(180deg, rgba(16, 16, 15, 0.58), transparent 36%);
}

.hero-content {
  align-self: center;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(92px, 19vw, 230px);
  font-weight: 700;
  line-height: 0.72;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 74px);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 700;
  line-height: 1;
}

.hero-lead {
  max-width: 690px;
  margin-bottom: 28px;
  color: var(--text);
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.08;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.since-line {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin: 18px 0 0;
  padding: 8px 11px;
  border: 1px solid rgba(233, 255, 88, 0.42);
  color: var(--accent);
  background: rgba(16, 16, 15, 0.38);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-weight: 650;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #10100f;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.07);
}

.hero-facts {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1080px, 100%);
  margin-top: 56px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.hero-facts article {
  min-height: 128px;
  padding: 22px;
  background: rgba(16, 16, 15, 0.72);
  backdrop-filter: blur(18px);
}

.hero-facts strong {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 0.8;
}

.hero-facts span {
  color: var(--muted);
  font-size: 14px;
}

section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: clamp(72px, 11vw, 132px) 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: start;
}

.intro-copy {
  display: grid;
  gap: 24px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 25px);
}

.intro-copy p {
  margin-bottom: 0;
}

.section-heading {
  display: grid;
  gap: 18px;
  max-width: 870px;
  margin-bottom: clamp(30px, 6vw, 64px);
}

.section-heading.compact {
  margin-bottom: 30px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-grid article {
  min-height: 310px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent);
}

.service-grid span,
.case-card span {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-grid p,
.timeline p,
.case-card p,
.contact p {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: minmax(150px, 0.5fr) minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline p {
  margin-bottom: 0;
}

.departments {
  padding-top: 0;
  padding-bottom: clamp(8px, 1.5vw, 16px);
}

.department-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.department-list span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.work {
  padding-top: clamp(32px, 4vw, 44px);
}

.case-filter {
  width: max-content;
  max-width: 100%;
  margin-bottom: 22px;
  overflow-x: auto;
}

.case-filter button {
  min-width: max-content;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
}

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

.case-card {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  transition: transform 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.case-card:hover {
  transform: translateY(-3px);
  border-color: rgba(233, 255, 88, 0.5);
}

.case-card.is-hidden {
  display: none;
}

.case-card.feature {
  grid-column: span 2;
}

.case-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #222;
}

.case-card.no-image {
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(circle at 78% 18%, rgba(233, 255, 88, 0.2), transparent 24%),
    linear-gradient(135deg, rgba(255, 90, 61, 0.2), transparent 42%),
    var(--bg-soft);
}

.case-mark {
  display: grid;
  min-height: 192px;
  align-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(244, 241, 236, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(244, 241, 236, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
}

.case-mark strong {
  color: var(--accent);
  font-size: clamp(68px, 8vw, 112px);
  font-weight: 750;
  line-height: 0.8;
}

.case-mark span {
  max-width: 18ch;
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.case-card div {
  display: grid;
  align-content: start;
  min-height: 230px;
  padding: 22px;
}

.case-card span {
  margin-bottom: 28px;
}

.case-card p {
  margin-bottom: 0;
}

.contact {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(24px, 5vw, 58px);
  align-items: stretch;
  padding-bottom: clamp(76px, 10vw, 128px);
}

.contact-media {
  min-height: 460px;
  overflow: hidden;
}

.contact-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-content {
  display: grid;
  align-content: center;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  background: #f4f1ec;
  color: #10100f;
}

.contact-content .eyebrow {
  color: var(--accent-2);
}

.contact-content p {
  font-size: clamp(17px, 2vw, 22px);
  color: #4d4943;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-links a {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid rgba(16, 16, 15, 0.18);
  font-weight: 700;
}

.contact-links img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.contact-links span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-links a::after {
  margin-left: auto;
  content: "->";
  color: var(--accent-2);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav {
    display: none;
  }

  .lang-switch {
    justify-self: end;
  }

  .hero {
    min-height: 780px;
  }

  .hero-facts,
  .section-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    width: min(100% - 24px, var(--max));
    gap: 12px;
  }

  .brand {
    min-width: 96px;
  }

  .brand img {
    width: 82px;
  }

  .brand small {
    font-size: 9px;
  }

  .hero {
    min-height: 720px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero-lead {
    max-width: 24ch;
  }

  .button {
    width: 100%;
  }

  .hero-facts,
  .service-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .hero-facts article {
    min-height: 108px;
  }

  section,
  .footer {
    width: min(100% - 24px, var(--max));
  }

  .service-grid article {
    min-height: 230px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .case-card.feature {
    grid-column: auto;
  }

  .contact-media {
    min-height: 300px;
  }

  .contact-content {
    padding: 26px;
  }

  .footer {
    flex-direction: column;
  }
}
