:root {
  --bg: #ffffff;
  --ink: #050505;
  --muted: #565656;
  --soft: #f7f7f7;
  --line: #eeeeee;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
  width: min(1320px, calc(100% - clamp(28px, 5vw, 80px)));
  margin: 0 auto;
}

.topbar {
  padding: 10px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: clamp(1.28rem, 1.35vw, 1.58rem);
  line-height: 1;
  font-weight: 680;
  letter-spacing: -0.04em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0 auto;
}

.nav-menu a {
  font-size: 0.82rem;
  font-weight: 650;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #111111;
  border-radius: 12px;
  padding: 8px 13px;
  background: #111111;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
}

.lang-picker {
  position: relative;
}

.lang-trigger,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1px solid #d3d3d3;
  border-radius: 13px;
  background: #ffffff;
  color: #050505;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-trigger {
  gap: 8px;
  min-width: 66px;
  padding: 0 12px;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 180px;
  padding: 6px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.10);
  z-index: 30;
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  color: #050505;
  font-size: 0.92rem;
}

.lang-option:hover {
  background: #f2f2f2;
}

.menu-toggle {
  display: none;
  width: 40px;
  flex-direction: column;
  gap: 3px;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.drawer[hidden] {
  display: none;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity .18s ease;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(82vw, 320px);
  height: 100%;
  padding: 16px;
  background: #ffffff;
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 54px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform .18s ease;
}

.drawer.is-open {
  pointer-events: auto;
}

.drawer.is-open .drawer-backdrop {
  opacity: 1;
}

.drawer.is-open .drawer-panel {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  background: #ffffff;
  color: #050505;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.drawer-nav {
  display: grid;
  gap: 4px;
  padding: 14px 0;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  color: #050505;
  font-size: 1.02rem;
  font-weight: 580;
  border-bottom: 1px solid #f0f0f0;
}

.drawer-nav a::after {
  content: "→";
  color: #777777;
}

.drawer-contact {
  width: 100%;
}

.page {
  min-height: calc(100vh - 53px);
}

.compact-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 54px) 0 clamp(22px, 3vw, 38px);
  border-bottom: 1px solid var(--line);
}

.compact-hero::after {
  content: "";
  position: absolute;
  top: -42px;
  right: max(-220px, calc((100vw - 1320px) / 2 - 190px));
  width: clamp(420px, 42vw, 720px);
  height: clamp(150px, 13vw, 230px);
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.052) 0 1px, transparent 1px 9px),
    linear-gradient(100deg, rgba(255,255,255,0.92), rgba(0,0,0,0.1), rgba(255,255,255,0.78));
  transform: rotate(38deg) skewX(-16deg);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}

.hero-grid > .lede {
  display: none;
}

.kicker {
  margin: 0 0 12px;
  color: #666666;
  font-size: 0.82rem;
  font-weight: 650;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 3.45vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 560;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.08vw, 1.14rem);
  line-height: 1.5;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.summary div {
  padding: clamp(14px, 1.5vw, 20px) clamp(16px, 2vw, 26px);
  border-right: 1px solid var(--line);
}

.summary strong {
  display: block;
  font-size: clamp(1rem, 1.2vw, 1.22rem);
  line-height: 1;
  font-weight: 650;
}

.summary span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.section {
  padding: clamp(24px, 3vw, 42px) 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(min(100%, 460px), 0.42fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(18px, 2vw, 26px);
}

h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.35vw, 2.65rem);
  line-height: 1.08;
  font-weight: 560;
}

.section-head p,
.card p,
.project-card p,
.list p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 0.95vw, 1rem);
  line-height: 1.48;
}

[data-page="services"] .section-head p,
[data-page="support"] .section-head p {
  display: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.card {
  min-height: clamp(130px, 11vw, 168px);
  padding: clamp(16px, 1.6vw, 24px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.card h3,
.project-card h3,
.list h3 {
  margin: 0 0 8px;
  font-size: clamp(0.98rem, 1vw, 1.08rem);
  line-height: 1.18;
  font-weight: 620;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  border-color: #c9c9c9;
  transform: translateY(-1px);
}

.logo-box {
  display: grid;
  place-items: center;
  height: clamp(92px, 7.5vw, 118px);
  text-decoration: none;
  background: #ffffff;
}

.logo-box img {
  width: 100%;
  max-width: clamp(228px, 18vw, 315px);
  max-height: 99px;
  object-fit: contain;
  filter: grayscale(100%);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(min(100%, 480px), 0.36fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: start;
}

.list {
  display: grid;
  gap: 10px;
}

.list article {
  padding: clamp(15px, 1.5vw, 20px);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.consulting-layout {
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(28px, 4vw, 62px);
  align-items: start;
}

.consulting-copy {
  position: sticky;
  top: 78px;
  max-width: 520px;
}

.consulting-copy h2 {
  font-size: clamp(1.9rem, 2.55vw, 3rem);
  line-height: 1.05;
}

.consulting-copy .lede {
  max-width: 34rem;
  margin-top: 14px;
  font-size: clamp(0.95rem, 1vw, 1.06rem);
  line-height: 1.5;
}

.consulting-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.consulting-list article {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 176px;
  padding: clamp(16px, 1.6vw, 22px);
  background: #ffffff;
}

.consulting-list article span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 26px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #5f5f5f;
  font-size: 0.72rem;
  font-weight: 700;
}

.consulting-list h3 {
  max-width: 22ch;
}

.footer {
  padding: 24px 0 18px;
  color: #555555;
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  padding-bottom: 22px;
}

.footer-brand {
  color: #050505;
  font-size: clamp(1.28rem, 1.35vw, 1.58rem);
  line-height: 1;
  font-weight: 680;
  letter-spacing: -0.04em;
}

.footer-legal h3 {
  margin: 0 0 10px;
  color: #050505;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-legal a {
  display: block;
  margin-bottom: 8px;
  color: #555555;
}

.footer hr {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.footer-bottom {
  padding-top: 16px;
}

@media (max-width: 1280px) {
  .compact-hero::after {
    top: auto;
    right: -220px;
    bottom: -70px;
    opacity: 0.65;
  }

  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .section-head,
  .split {
    grid-template-columns: 1fr;
  }

  .consulting-copy {
    position: static;
    max-width: none;
  }

  .consulting-list {
    grid-template-columns: 1fr;
  }

  .consulting-list article {
    min-height: auto;
  }

  .hero-grid > .lede {
    display: block;
  }

  [data-page="services"] .section-head p,
  [data-page="support"] .section-head p {
    display: block;
  }

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

  .summary {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav .btn {
    padding: 9px 12px;
    white-space: nowrap;
  }

  h1 {
    max-width: 12ch;
  }
}
