:root {
  --color-blue: #1515d8;
  --color-red: #d8111b;
  --color-ink: #262724;
  --color-muted: #656762;
  --color-paper: #ffffff;
  --color-surface: #f4f6f8;
  --content-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: Inter, Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .75rem 1rem;
  color: var(--color-paper);
  background: var(--color-blue);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 2.5rem), var(--content-width)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #dfe3e7;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 4px 18px rgba(38, 39, 36, .06);
}
.site-header .container { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; }
.brand img { width: 136px; height: auto; }
.site-nav { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; flex-wrap: wrap; gap: .25rem .75rem; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--color-ink); font-size: .875rem; font-weight: 800; text-decoration: none; }
.nav-toggle { display: none; min-width: 44px; min-height: 44px; border: 1px solid var(--color-ink); background: var(--color-paper); color: var(--color-ink); font: inherit; font-weight: 800; cursor: pointer; }
.language-switcher { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .25rem; }
.language-switcher a { display: inline-grid; min-width: 44px; min-height: 44px; padding: .5rem; place-items: center; text-decoration: none; font-size: .875rem; font-weight: 800; }
.language-switcher a[aria-current="page"] { color: var(--color-paper); background: var(--color-blue); }

.hero { position: relative; min-height: min(44rem, calc(100vh - 5rem)); display: grid; align-items: end; overflow: hidden; color: var(--color-paper); background: #080d18; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media::before, .hero-media::after { content: ""; position: absolute; pointer-events: none; }
.hero-media::before {
  z-index: 1;
  inset: -20% auto -20% -45%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(67, 113, 255, .18), rgba(216, 17, 27, .12), transparent);
  filter: blur(12px);
  mix-blend-mode: screen;
  transform: translateX(-25%) skewX(-13deg);
  animation: light-sweep 8s cubic-bezier(.45, 0, .3, 1) infinite;
}
.hero-media::after {
  z-index: 2;
  inset: 0;
  background:
    radial-gradient(circle at 83% 49%, rgba(255, 255, 255, .15), transparent 9%),
    linear-gradient(90deg, rgba(6, 10, 18, .92), rgba(6, 10, 18, .62) 42%, rgba(6, 10, 18, .12) 72%, rgba(6, 10, 18, .38));
  animation: headlight-pulse 4.5s ease-in-out infinite;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  transform: scale(1.035) translate3d(-.5%, 0, 0);
  animation: hero-drift 18s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-content { position: relative; z-index: 3; max-width: 48rem; padding-block: clamp(5rem, 14vw, 10rem) clamp(3.5rem, 8vw, 6rem); }
.eyebrow { margin: 0 0 .75rem; color: #ffffff; font-size: .79rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.hero-content .eyebrow { animation: hero-copy-in 1.1s cubic-bezier(.2, .75, .25, 1) .2s both; }
.hero h1, .section h2 { margin: 0; font-weight: 850; letter-spacing: -.04em; line-height: 1.05; }
.hero h1 {
  max-width: 13ch;
  color: #ffffff;
  font-size: clamp(2.75rem, 6vw, 5.9rem);
  transform-origin: left center;
  animation: hero-title-in 2.4s cubic-bezier(.16, .82, .22, 1) .3s both, title-shimmer 11s ease-in-out 3.2s infinite;
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero h1 {
    background: linear-gradient(105deg, #ffffff 28%, #8da4ff 42%, #ffffff 50%, #ff767d 58%, #ffffff 72%);
    background-size: 260% 100%;
    background-position: 100% 50%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.hero p:not(.eyebrow) { max-width: 40rem; margin: 1.5rem 0 0; font-size: clamp(1.1rem, 2vw, 1.35rem); animation: hero-copy-in 1.4s cubic-bezier(.2, .75, .25, 1) 1.1s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; animation: hero-copy-in 1.4s cubic-bezier(.2, .75, .25, 1) 1.55s both; }

.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: .75rem 1.15rem; border: 2px solid transparent; font-weight: 800; text-align: center; text-decoration: none; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.button-primary { color: var(--color-paper); background: var(--color-red); }
.button-primary:hover { background: #b80e17; }
.button-secondary { color: var(--color-paper); border-color: currentColor; background: transparent; }
.button-secondary:hover { color: var(--color-ink); background: var(--color-paper); }

.fact-strip { background: var(--color-blue); color: var(--color-paper); }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { min-height: 7.5rem; display: grid; align-content: center; padding: 1.5rem 2rem; border-right: 1px solid rgba(255, 255, 255, .32); }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-size: 1.45rem; line-height: 1.1; }
.fact span { margin-top: .25rem; font-size: .9rem; }

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-surface { background: var(--color-surface); }
.section-heading { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.section h2 { font-size: clamp(2.15rem, 4vw, 4.25rem); }
.section-heading p, .section-copy { max-width: 46rem; margin: 0; color: var(--color-muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-card, .project-card { padding: 1.5rem; background: var(--color-paper); border: 1px solid #e0e4e7; }
.service-card h3, .project-card h3 { margin: 0 0 .6rem; font-size: 1.2rem; }
.service-card p, .project-card p { margin: 0; color: var(--color-muted); }
.project-list { display: grid; gap: 1rem; }
.project-card { display: grid; grid-template-columns: minmax(0, .7fr) minmax(16rem, 1.3fr); align-items: center; gap: 2rem; overflow: hidden; }
.project-card:nth-child(even) .project-copy { order: 2; }
.project-card:nth-child(even) .project-visual { order: 1; }
.project-visual { background: var(--color-surface); }
.project-visual img { width: 100%; height: auto; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.5rem 0 0; list-style: none; }
.tag-list li { padding: .4rem .65rem; color: var(--color-blue); border: 1px solid currentColor; font-weight: 750; font-size: .9rem; }

.credits-intro { max-width: 48rem; margin: 1rem 0 0; color: var(--color-muted); }
.credits-grid { display: grid; gap: 1rem; margin-top: 2rem; }
.credits-panel { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid #e0e4e7; background: var(--color-paper); }
.credits-panel h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
.credits-panel h3 { margin: 2rem 0 .5rem; color: var(--color-blue); }
.credits-panel p { max-width: 50rem; margin: .5rem 0 0; }
.credits-panel a { color: var(--color-blue); font-weight: 750; overflow-wrap: anywhere; }

.site-footer { padding-block: 2rem; color: var(--color-paper); background: var(--color-ink); }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.site-footer p { margin: 0; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; color: var(--color-paper); font-weight: 800; }

@media (max-width: 700px) {
  .container { width: min(calc(100% - 1.5rem), var(--content-width)); }
  .site-header .container { min-height: 4.5rem; flex-wrap: wrap; padding-block: .375rem; }
  .brand img { width: 112px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { min-width: 0; max-width: 100%; flex-basis: 100%; justify-content: flex-start; gap: .25rem 1rem; order: 3; }
  .site-nav a { min-height: 44px; }
  .site-nav[data-enhanced]:not([data-open]) { display: none; }
  .language-switcher a { min-width: 44px; min-height: 44px; }
  .hero { min-height: 38rem; }
  .hero-image { object-position: 66% center; }
  .hero h1 {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: currentColor;
    animation: hero-title-in 1.8s cubic-bezier(.16, .82, .22, 1) .15s both;
  }
  .hero-media::before, .hero-media::after { animation: none; }
  .hero-media::before { display: none; }
  .hero-media::after {
    background:
      radial-gradient(circle at 73% 42%, rgba(255, 255, 255, .12), transparent 8%),
      linear-gradient(0deg, rgba(6, 10, 18, .94), rgba(6, 10, 18, .58) 68%, rgba(6, 10, 18, .2));
  }
  .fact-grid, .card-grid, .section-heading, .project-card { grid-template-columns: 1fr; }
  .fact { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .32); }
  .fact:last-child { border-bottom: 0; }
  .project-card:nth-child(even) .project-copy, .project-card:nth-child(even) .project-visual { order: initial; }
  .site-footer .container { align-items: flex-start; flex-direction: column; }
}

@keyframes hero-drift {
  from { transform: scale(1.035) translate3d(-.5%, 0, 0); }
  to { transform: scale(1.075) translate3d(1.2%, -.4%, 0); }
}

@keyframes light-sweep {
  0%, 18% { transform: translateX(-25%) skewX(-13deg); opacity: 0; }
  36%, 60% { opacity: .9; }
  78%, 100% { transform: translateX(350%) skewX(-13deg); opacity: 0; }
}

@keyframes headlight-pulse {
  0%, 100% { opacity: .92; }
  50% { opacity: 1; }
}

@keyframes hero-title-in {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: perspective(700px) translate3d(-1.5rem, 1rem, -80px) rotateX(8deg);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: perspective(700px) translate3d(0, 0, 0) rotateX(0);
  }
}

@keyframes hero-copy-in {
  from { opacity: 0; filter: blur(5px); transform: translate3d(0, 1rem, 0); }
  to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }
}

@keyframes title-shimmer {
  0%, 42% { background-position: 100% 50%; }
  68%, 100% { background-position: -120% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .hero-image, .hero-media::before, .hero-media::after { animation: none; }
  .hero-image { transform: none; }
  .hero h1, .hero-content .eyebrow, .hero p:not(.eyebrow), .hero-actions { animation: none; opacity: 1; filter: none; transform: none; }
  .hero h1 { color: #ffffff; background: none; -webkit-text-fill-color: currentColor; }
}
