:root {
  --bg: #0b0d0f;
  --bg-soft: #12161a;
  --paper: #f2f2ef;
  --paper-2: #e7e7e2;
  --text: #121416;
  --muted: #6f7479;
  --white: #ffffff;
  --line: rgba(255,255,255,.16);
  --line-dark: rgba(16,18,20,.14);
  --accent: #d9ff39;
  --max: 1240px;
  --header-h: 92px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  padding: 0 clamp(28px, 4.5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(6,8,10,.82), rgba(6,8,10,.26), transparent);
  transition: background .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled {
  background: rgba(8,10,12,.83);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand { display: flex; align-items: center; gap: 14px; font-weight: 750; letter-spacing: .01em; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand span { font-size: 17px; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); font-size: 14px; }
.site-nav > a { position: relative; color: rgba(255,255,255,.78); transition: color .2s ease; }
.site-nav > a:hover { color: #fff; }
.lang-switch { display: flex; align-items: center; gap: 6px; margin-left: 6px; color: rgba(255,255,255,.38); }
.lang-switch button { border: 0; background: transparent; color: rgba(255,255,255,.45); padding: 4px 0; cursor: pointer; font-weight: 700; }
.lang-switch button.active { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang-switch-mobile { display: none; margin: 0; white-space: nowrap; min-width: max-content; line-height: 1; }
.menu-toggle { display: none; border: 0; background: transparent; width: 42px; height: 42px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: transform .2s ease; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 25%, rgba(217,255,57,.08), transparent 26%),
    linear-gradient(125deg, #11161a 0%, #080a0c 58%, #050607 100%);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5,7,9,.91) 0%, rgba(5,7,9,.69) 42%, rgba(5,7,9,.20) 76%, rgba(5,7,9,.30) 100%),
    linear-gradient(0deg, rgba(5,7,9,.78) 0%, rgba(5,7,9,.12) 48%, transparent 68%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
  padding: calc(var(--header-h) + 58px) 0 clamp(102px, 12vh, 150px);
}
.eyebrow {
  margin: 0 0 22px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--accent);
}
.eyebrow.dark { color: #57620c; }
.hero h1 {
  margin: 0;
  max-width: 1040px;
  font-size: clamp(54px, 7.2vw, 112px);
  line-height: .85;
  letter-spacing: -.05em;
  font-weight: 800;
}

body[data-lang="en"] .hero h1 {
  max-width: 1040px;
  font-size: clamp(54px, 7.2vw, 112px);
  line-height: .85;
  letter-spacing: -.05em;
}
.hero-lead {
  margin: 30px 0 0;
  max-width: 720px;
  font-size: clamp(18px, 2vw, 26px);
  color: rgba(255,255,255,.72);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1px solid rgba(255,255,255,.24);
  font-size: 15px;
  font-weight: 750;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); border-color: var(--accent); color: #0a0c0d; box-shadow: 0 10px 32px rgba(0,0,0,.16); }
.button-ghost { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.30); backdrop-filter: blur(8px); }
.scroll-cue {
  position: absolute;
  z-index: 3;
  right: clamp(22px, 4vw, 64px);
  bottom: 30px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: rgba(255,255,255,.68);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.scroll-cue .arrow { color: var(--accent); font-size: 18px; }

.section { padding: clamp(88px, 10vw, 150px) clamp(22px, 4vw, 64px); }
.section-light { background: var(--paper); color: var(--text); }
.section-dark { background: var(--bg); color: var(--white); }
.section-head { width: min(var(--max), 100%); margin: 0 auto 58px; display: grid; grid-template-columns: 1.25fr .75fr; column-gap: 80px; align-items: end; }
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head h2 { margin: 0; font-size: clamp(42px, 5vw, 76px); line-height: .98; letter-spacing: -.045em; }
.section-head > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 18px; max-width: 600px; }
.section-head-dark > p:not(.eyebrow) { color: rgba(255,255,255,.55); }

.competence-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.competence-card { padding: 34px 24px 38px 0; min-height: 280px; border-right: 1px solid var(--line-dark); }
.competence-card + .competence-card { padding-left: 24px; }
.competence-card:last-child { border-right: 0; }
.card-number { font-size: 12px; color: #777b7e; letter-spacing: .12em; }
.competence-card h3 { margin: 72px 0 14px; font-size: 24px; line-height: 1.05; letter-spacing: -.025em; }
.competence-card p { margin: 0; color: var(--muted); }

.project-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.project-card {
  position: relative;
  grid-column: span 4;
  min-height: 430px;
  overflow: hidden;
  background: var(--bg-soft);
}
.project-card-large { grid-column: span 8; min-height: 560px; }
.project-card-wide { grid-column: span 8; }
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.project-card:hover img { transform: scale(1.035); }
.project-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,5,6,.9) 0%, rgba(4,5,6,.16) 58%, rgba(4,5,6,.06) 100%); }
.project-copy { position: absolute; inset: auto 26px 26px 26px; }
.project-copy span { display: block; margin-bottom: 8px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.project-copy h3 { margin: 0 0 8px; font-size: clamp(24px, 2.4vw, 38px); line-height: 1; letter-spacing: -.035em; }
.project-copy p { margin: 0; max-width: 560px; color: rgba(255,255,255,.68); }

.about-layout { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(60px, 9vw, 130px); }
.about-copy h2 { margin: 0 0 32px; font-size: clamp(42px, 5.2vw, 74px); line-height: .98; letter-spacing: -.045em; }
.about-copy p:not(.eyebrow) { max-width: 720px; color: var(--muted); font-size: 18px; }
.about-facts { border-top: 1px solid var(--line-dark); }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 26px 0; border-bottom: 1px solid var(--line-dark); }
.fact strong { font-size: 28px; letter-spacing: -.025em; }
.fact span { color: var(--muted); }
.seal-wrap { padding-top: 34px; }
.seal-wrap img { width: 180px; height: auto; }

.contact { background: #111518; padding: clamp(90px, 12vw, 170px) clamp(22px, 4vw, 64px); }
.contact-inner { width: min(var(--max), 100%); margin: 0 auto; }
.contact h2 { margin: 0; max-width: 980px; font-size: clamp(48px, 6.5vw, 96px); line-height: .94; letter-spacing: -.05em; }
.contact p:not(.eyebrow) { margin: 28px 0 42px; max-width: 670px; color: rgba(255,255,255,.6); font-size: 18px; }
.contact-mail { display: inline-flex; gap: 16px; align-items: baseline; font-size: clamp(22px, 3vw, 40px); font-weight: 750; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 8px; }
.contact-mail span { color: var(--accent); }

.site-footer {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 42px 0 54px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  color: rgba(255,255,255,.55);
  font-size: 14px;
}
.site-footer strong { color: rgba(255,255,255,.9); }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  :root { --header-h: 78px; }
  .header-actions { position: relative; z-index: 3; display: grid; grid-auto-flow: column; grid-auto-columns: max-content; align-items: center; column-gap: 12px; }
  .lang-switch-mobile { display: inline-grid; grid-auto-flow: column; grid-auto-columns: max-content; align-items: center; justify-items: center; column-gap: 4px; white-space: nowrap; transform: none; height: 42px; }
  .lang-switch-mobile button,
  .lang-switch-mobile > span { display: inline-flex; align-items: center; justify-content: center; height: 18px; line-height: 1; margin: 0; padding: 0; vertical-align: middle; }
  .lang-switch-mobile button { font-size: 13px; }
  .site-nav .lang-switch { display: none; }
  .menu-toggle { display: block; z-index: 2; }
  .site-nav {
    position: fixed;
    inset: 0;
    padding: 120px 28px 40px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    background: rgba(8,10,12,.98);
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  .site-nav > a { font-size: 32px; font-weight: 700; }
  .nav-open .site-nav { transform: none; }
  .nav-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .lang-switch { margin: 16px 0 0; font-size: 18px; }
  .section-head { grid-template-columns: 1fr; gap: 26px; }
  .competence-grid { grid-template-columns: repeat(2, 1fr); }
  .competence-card:nth-child(2) { border-right: 0; }
  .competence-card:nth-child(3), .competence-card:nth-child(4) { border-top: 1px solid var(--line-dark); }
  .project-card, .project-card-large, .project-card-wide { grid-column: span 6; min-height: 440px; }
  .about-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .header-actions { column-gap: 10px; }
  .lang-switch-mobile { font-size: 12px; letter-spacing: .02em; column-gap: 4px; position: relative; top: -6px; }
  .lang-switch-mobile button,
  .lang-switch-mobile > span { font-size: 12px; }
  .site-header { padding-inline: 20px; }
  .brand { gap: 11px; }
  .brand img { width: 50px; height: 50px; }
  .brand span { display: inline; font-size: 15px; }
  .hero-content { width: calc(100% - 40px); padding-top: calc(var(--header-h) + 70px); padding-bottom: 108px; }
  .hero .eyebrow { margin-bottom: 18px; font-size: 10px; line-height: 1.45; letter-spacing: .17em; max-width: 100%; }
  .hero h1 { font-size: clamp(38px, 10.7vw, 54px); line-height: .91; letter-spacing: -.042em; }
  body[data-lang="en"] .hero h1 { font-size: clamp(35px, 9.4vw, 51px); line-height: .90; }
  .hero-lead { margin-top: 26px; font-size: 17px; line-height: 1.45; max-width: 94%; }
  .hero-overlay { background: linear-gradient(0deg, rgba(5,7,9,.88) 0%, rgba(5,7,9,.56) 56%, rgba(5,7,9,.46) 100%); }
  .hero-video { object-position: center center; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 100%; margin-top: 32px; }
  .scroll-cue { left: 20px; right: auto; bottom: 28px; }
  .section { padding-inline: 18px; }
  .section-head { margin-bottom: 38px; }
  .section-head h2, .about-copy h2 { font-size: clamp(40px, 12vw, 58px); }
  .section-head > p:not(.eyebrow), .about-copy p:not(.eyebrow) { font-size: 16px; }
  .competence-grid { grid-template-columns: 1fr; }
  .competence-card, .competence-card + .competence-card { min-height: auto; padding: 26px 0 30px; border-right: 0; border-top: 1px solid var(--line-dark); }
  .competence-card:first-child { border-top: 0; }
  .competence-card h3 { margin-top: 42px; }
  .project-grid { gap: 10px; }
  .project-card, .project-card-large, .project-card-wide { grid-column: 1 / -1; min-height: 390px; }
  .project-copy { inset: auto 20px 20px 20px; }
  .contact { padding-inline: 18px; }
  .contact h2 { font-size: clamp(42px, 13vw, 64px); }
  .contact-mail { font-size: 21px; }
  .site-footer { width: calc(100% - 36px); grid-template-columns: 1fr; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Legal pages */
.legal-body { background: var(--paper); color: var(--text); }
.legal-header {
  min-height: 82px; padding: 18px clamp(22px, 4vw, 64px); display: flex;
  justify-content: space-between; align-items: center; background: #0b0d0f; color: #fff;
}
.legal-back { color: rgba(255,255,255,.72); font-size: 14px; }
.legal-page { width: min(940px, calc(100% - 44px)); margin: 0 auto; padding: 90px 0 120px; }
.legal-page h1 { margin: 0 0 46px; font-size: clamp(48px, 7vw, 88px); line-height: .95; letter-spacing: -.05em; }
.legal-content { color: #4d5357; font-size: 16px; line-height: 1.75; }
.legal-content b { color: #15181a; }
.legal-content a { text-decoration: underline; }
@media (max-width: 680px) {
  .legal-header { padding-inline: 18px; }
  .legal-page { width: calc(100% - 36px); padding-top: 64px; }
  .legal-header .brand span { display: none; }
}
