:root {
  --ink: #232323;
  --text: #302626;
  --muted: #303030;
  --title: #363c3b;
  --accent: #0cce94;
  --teal: #72c9bf;
  --bar: rgba(50, 50, 50, 0.85);
  --box: 1280px;
  --pad: 60px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }

.site {
  max-width: var(--box);
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
}

.topbar { height: 20px; background: var(--bar); }

.header {
  height: 80px;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  padding: 0 30px 0 30px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
}
.logo { display: flex; align-items: center; height: 80px; padding: 20px 0; }
.logo img { height: 30px; width: auto; display: block; }

.nav { text-align: center; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 6px; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  display: block;
  padding: 28px 16px;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 24px;
}
.nav > ul > li > a:hover,
.nav > ul > li > a.active,
.nav > ul > li:hover > a { color: var(--accent); }
.sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  text-align: left;
  z-index: 50;
}
.nav li:hover > .sub,
.nav li:focus-within > .sub { display: block; }
.sub a {
  display: block;
  padding: 8px 20px;
  color: #454545;
  font-size: 13px;
  line-height: 22px;
  letter-spacing: 0;
  text-transform: none;
}
.sub a:hover,
.sub a.active { color: var(--accent); }

.actions { display: flex; align-items: center; gap: 14px; }
.social { display: flex; align-items: center; gap: 12px; }
.social a { color: #000; display: flex; }
.social a:hover { color: var(--teal); }
.social svg { width: 15px; height: 15px; fill: currentColor; display: block; }

.join {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--teal);
  color: #fff;
  border-radius: 50px;
  height: 38px;
  padding: 0 16px 0 12px;
  font-family: Oswald, Roboto, sans-serif;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
}
.join:hover { background: #000; color: #fff; }
.join svg { width: 12px; height: 12px; fill: currentColor; }

.burger {
  display: none;
  width: 28px;
  height: 22px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.burger span { display: block; height: 2px; background: #222; width: 100%; }

.hero {
  position: relative;
  margin: 30px var(--pad) 8px;
  aspect-ratio: 2 / 1;
  background: #ececec;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12%;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: clamp(18px, 2.3vw, 34px);
  line-height: 1.25;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(0, 0, 0, 0.35); }
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
  padding: 48px var(--pad) 90px;
}
.service img { width: 100%; display: block; margin-bottom: 12px; background: #dbdbdb; aspect-ratio: 3 / 2; object-fit: cover; }
.service h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 28px;
  text-transform: uppercase;
  color: #222;
}
.service p { margin: 0; color: var(--text); font-size: 13px; line-height: 20px; }
.service p a { color: var(--accent); }

.banner {
  position: relative;
  margin: 28px var(--pad) 36px;
  height: 200px;
  background: #d5d5d5;
  overflow: hidden;
}
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner h1 {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
  padding: 0 var(--pad);
}
.card img { width: 100%; display: block; background: #eee; }
.card h2 {
  margin: 12px 0 6px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 22px;
  text-transform: uppercase;
  color: var(--title);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card:hover h2 { color: var(--accent); }

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 36px var(--pad) 80px;
}
.pagination a,
.pagination span {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f3;
  color: #333;
  font-size: 13px;
}
.pagination a:hover { color: var(--accent); }
.pagination .current { background: var(--accent); color: #fff; }

.prose {
  max-width: 860px;
  margin: 0 auto;
  padding: 10px var(--pad) 90px;
  font-size: 15px;
  line-height: 1.75;
  color: #302626;
}
.prose h2 {
  margin: 28px 0 12px;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  color: #222;
}
.prose p { margin: 0 0 16px; }
.prose a { color: var(--accent); }

.client-block { margin-bottom: 28px; }
.client-block h2 {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.names {
  columns: 3;
  column-gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.names li {
  break-inside: avoid;
  padding: 4px 0;
  text-transform: lowercase;
  font-size: 13px;
  line-height: 22px;
  color: #333;
}

.article {
  padding: 10px var(--pad) 90px;
}
.article-head { max-width: 860px; margin: 0 auto 24px; }
.article-head h1 {
  margin: 0 0 8px;
  font-family: Oswald, Roboto, sans-serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.4px;
  line-height: 1.3;
  text-transform: uppercase;
  color: #000;
}
.article-head time {
  display: block;
  color: #757575;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.cats { margin-top: 10px; font-size: 12px; color: #757575; }
.cats a { color: var(--accent); }
.cats a:hover { text-decoration: underline; }

.post-body {
  max-width: 860px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.75;
  color: #302626;
}
.post-body p { margin: 0 0 16px; }
.post-body a { color: var(--accent); }
.post-body img,
.post-body figure { margin: 8px auto 22px; }
.post-body img { display: block; width: 100%; height: auto; }
.post-body figure { margin-left: 0; margin-right: 0; }
.post-body iframe,
.video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  margin: 12px 0 22px;
  display: block;
}
.post-body .video iframe { height: 100%; }
.empty { padding: 40px var(--pad) 80px; color: #666; }

.mobile-panel {
  display: none;
}

@media (max-width: 1024px) {
  :root { --pad: 24px; }
  .header { grid-template-columns: 1fr auto; padding: 0 18px; }
  .nav { display: none; }
  .social { display: none; }
  .join-label { display: none; }
  .join { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .burger { display: flex; }
  body.menu-open { overflow: hidden; }
  body.menu-open .mobile-panel { display: block; }
  .mobile-panel {
    position: fixed;
    inset: 100px 0 0 0;
    background: #fff;
    z-index: 60;
    overflow: auto;
    padding: 10px 8px 40px;
  }
  .mobile-panel a {
    display: block;
    padding: 12px 18px;
    border-bottom: 1px solid #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    color: var(--ink);
  }
  .mobile-panel .sub-link {
    text-transform: none;
    letter-spacing: 0;
    padding-left: 32px;
    color: #555;
    font-size: 14px;
  }
  .services, .grid { grid-template-columns: 1fr 1fr; }
  .banner h1 { font-size: 24px; }
  .names { columns: 2; }
}

@media (max-width: 700px) {
  .services, .grid, .names { grid-template-columns: 1fr; columns: 1; }
  .hero { margin-top: 16px; aspect-ratio: 4 / 3; }
  .banner { height: 150px; }
  .banner h1 { font-size: 20px; }
  .article-head h1 { font-size: 22px; }
}
