:root {
  --ink: #101426;
  --muted: #5f6678;
  --line: #dfe4ee;
  --paper: #f7f8fb;
  --white: #ffffff;
  --navy: #25205e;
  --blue: #004785;
  --accent: #d71675;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(16, 20, 38, .08);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
}

.brand img {
  width: 44px;
  height: 30px;
}

.nav {
  display: none;
}

.language-switcher {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.language-switcher button {
  width: 38px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  display: grid;
  align-content: end;
  isolation: isolate;
  overflow: hidden;
  background: #0d1020;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, #12162b, #22204e);
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .32;
  filter: grayscale(.2) contrast(1.08);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 16, 32, .45), rgba(13, 16, 32, .92));
}

.hero-content {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 72px 20px 26px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 20px;
  font-size: clamp(42px, 11vw, 106px);
  line-height: .92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions,
.contact-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .28);
  font-weight: 800;
}

.button.primary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.button.secondary {
  color: var(--white);
}

.metrics {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.metrics div {
  padding: 18px 14px;
  border-right: 1px solid rgba(255, 255, 255, .15);
}

.metrics div:last-child { border-right: 0; }

.metrics dt {
  font-size: 30px;
  font-weight: 900;
}

.metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
}

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 72px 20px;
}

.split,
.section-head,
.contact {
  display: grid;
  gap: 24px;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(32px, 8vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.split p,
.section-head p,
.principle-grid p,
.contact h2 + p,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.portfolio {
  width: 100%;
  max-width: none;
  padding-inline: 0;
  background: var(--paper);
}

.portfolio > * {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: 20px;
}

.project-grid {
  display: grid;
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
  border: 1px solid var(--line);
}

.project-card {
  display: grid;
  gap: 22px;
  min-height: 270px;
  padding: 24px;
  background: var(--white);
}

.project-card:focus-within,
.project-card:hover {
  outline: 2px solid var(--navy);
  outline-offset: -2px;
}

.project-card img {
  width: min(100%, 280px);
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.project-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.project-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.project-card p {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.project-card a {
  font-weight: 800;
  color: var(--navy);
}

.principles {
  border-bottom: 1px solid var(--line);
}

.principle-grid {
  display: grid;
  gap: 1px;
  margin-top: 36px;
  background: var(--line);
  border: 1px solid var(--line);
}

.principle-grid article {
  padding: 24px;
  background: var(--white);
}

.principle-grid span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.principle-grid h3 {
  margin: 20px 0 10px;
  font-size: 22px;
}

.contact-panel {
  align-content: start;
}

.contact-panel a,
.contact-panel span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  font-weight: 800;
}

.site-footer {
  display: grid;
  gap: 16px;
  padding: 34px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer img {
  width: 56px;
  height: auto;
}

.site-footer span {
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-links a,
.footer-links span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--navy);
}

@media (min-width: 720px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    padding-inline: 28px;
  }

  .nav {
    display: flex;
    justify-content: center;
    gap: 26px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
  }

  .hero-content {
    padding-inline: 32px;
  }

  .metrics div {
    padding: 24px 32px;
  }

  .metrics dt {
    font-size: 44px;
  }

  .metrics dd {
    font-size: 14px;
  }

  .section {
    padding: 96px 32px;
  }

  .split,
  .section-head,
  .contact {
    grid-template-columns: 1.2fr .8fr;
    align-items: end;
  }

  .portfolio > * {
    padding-inline: 32px;
  }

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

  .principle-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding-inline: 32px;
  }
}

@media (min-width: 1040px) {
  .project-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .project-card {
    min-height: 320px;
  }
}
