:root {
  --bg: #F5F7F9;
  --text: #111318;
  --muted: #626A73;
  --line: #D9DEE5;
  --accent: #3B6CFF;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(var(--max), calc(100% - (var(--gutter) * 2))); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 34px;
}
.brand { font-weight: 700; letter-spacing: -0.02em; }
.primary-nav { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.primary-nav a:hover { color: var(--text); }
.language-switcher { display: flex; gap: 14px; }
.language-switcher button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.language-switcher button.active { color: var(--accent); }

.hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(58px, 8.2vw, 112px);
  line-height: .9;
  letter-spacing: -0.065em;
  font-weight: 700;
}
.hero p {
  margin: 0;
  max-width: 900px;
  font-size: clamp(26px, 2.7vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.035em;
  color: #343A46;
}

.projects { padding-bottom: 90px; }
.section-heading {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}
.eyebrow,
.status,
.tech-line {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
.eyebrow {
  color: #61728D;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
}
.heading-line { height: 1px; background: var(--line); flex: 1; }
.section-heading-secondary { margin-top: 48px; margin-bottom: 18px; }

.project {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 30px 6px 34px;
  overflow: hidden;
}
.project:last-child { border-bottom: 1px solid var(--line); }
.project h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1;
  letter-spacing: -0.045em;
}
.project p {
  margin: 0 0 12px;
  max-width: 760px;
  color: #4F5868;
  font-size: 17px;
  line-height: 1.55;
}
.project-accent { width: 32px; height: 3px; background: var(--accent); margin-bottom: 14px; }
.tech-line { font-size: 13px !important; color: #677183 !important; }
.project-featured {
  min-height: 315px;
  padding: 44px 44px 48px 6px;
  display: flex;
  align-items: center;
}
.project-featured .project-copy { position: relative; z-index: 2; max-width: 780px; }
.project-featured h2 { font-size: clamp(42px, 4.8vw, 64px); }
.rudex-watermark {
  position: absolute;
  width: min(34vw, 430px);
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  opacity: .13;
  pointer-events: none;
}
.project-grid { display: grid; }
.two-col { grid-template-columns: 1fr 1fr; }
.two-col > .project:first-child { padding-right: 34px; }
.two-col > .project:last-child { padding-left: 34px; border-left: 1px solid var(--line); }
.project-wide { padding-top: 30px; padding-bottom: 34px; }
.development-grid .project { padding-top: 28px; }
.status {
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6B7890;
  margin-bottom: 13px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 24px; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
  margin-top: 6px;
}
.cta span:last-child { transition: transform .18s ease; }
.cta:hover span:last-child { transform: translateX(4px); }

.contact { padding-bottom: 180px; }
.contact-icons {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 4px;
}
.contact-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: transform .18s ease, opacity .18s ease;
  opacity: .76;
}
.contact-icon-primary { width: 58px; height: 58px; opacity: 1; margin-right: 10px; }
.contact-icon img { width: 100%; height: 100%; }
.contact-icon:hover { transform: translateY(-2px); opacity: 1; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-end;
  padding-top: 36px;
  padding-bottom: 36px;
}
.footer-inner p { margin: 0; color: #77808F; font-size: 12px; line-height: 1.5; }
.footer-inner p:first-child { max-width: 560px; }

@media (max-width: 900px) {
  .header-inner { gap: 22px; }
  .primary-nav { gap: 18px; }
  .two-col { grid-template-columns: 1fr; }
  .two-col > .project:first-child { padding-right: 6px; }
  .two-col > .project:last-child { padding-left: 6px; border-left: 0; }
}

@media (max-width: 767px) {
  .site-header { position: sticky; }
  .header-inner {
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand langs"
      "nav nav";
    row-gap: 12px;
  }
  .brand { grid-area: brand; font-size: 17px; }
  .language-switcher { grid-area: langs; gap: 13px; }
  .primary-nav { grid-area: nav; justify-content: space-between; font-size: 15px; }

  .hero {
    min-height: 0;
    justify-content: flex-start;
    padding-top: 40px;
    padding-bottom: 48px;
  }
  .hero h1 {
    font-size: clamp(44px, 13vw, 58px);
    margin-bottom: 22px;
    letter-spacing: -0.06em;
  }
  .hero p { font-size: clamp(22px, 6vw, 29px); line-height: 1.22; }
  .projects { padding-bottom: 60px; }
  .section-heading { margin-bottom: 20px; }
  .section-heading-secondary { margin-top: 34px; }
  .project { padding: 26px 2px 28px; }
  .project-featured {
    min-height: 330px;
    padding: 30px 2px 32px;
    align-items: flex-start;
  }
  .project-featured h2 { font-size: 42px; }
  .project h2 { font-size: 34px; }
  .project p { font-size: 17px; line-height: 1.48; }
  .rudex-project .project-copy { max-width: 66%; }
  .rudex-watermark {
    width: 30%;
    right: 0;
    top: auto;
    bottom: 18px;
    transform: none;
    opacity: .12;
  }
  .cta-row { gap: 16px; }
  .contact { padding-bottom: 104px; }
  .contact-icons { gap: 16px; }
  .contact-icon-primary { width: 54px; height: 54px; }
  .contact-icon { width: 38px; height: 38px; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 18px;
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
