:root {
  --ink: #101216;
  --muted: #5f6670;
  --paper: #f4f2ee;
  --line: rgba(16, 18, 22, 0.14);
  --red: #d4212d;
  --yellow: #f1c232;
  --green: #0b7b68;
  --blue: #205a9e;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header[data-elevated="true"] {
  background: rgba(244, 242, 238, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: currentColor;
  opacity: 0.72;
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.3vw, 34px);
  font-size: 14px;
}

.main-nav a {
  opacity: 0.84;
}

.main-nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 108px clamp(18px, 4vw, 56px) 160px;
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.92), rgba(5, 8, 12, 0.6) 46%, rgba(5, 8, 12, 0.16)),
    linear-gradient(0deg, rgba(5, 8, 12, 0.72), transparent 42%);
}

.hero-personal::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent 68%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

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

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(42px, 6.7vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 1.8vw, 22px);
}

.hero-actions,
.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-weight: 700;
}

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

.button.ghost {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero-strip {
  position: absolute;
  z-index: 1;
  left: clamp(18px, 4vw, 56px);
  right: clamp(18px, 4vw, 56px);
  bottom: 28px;
}

.hero-strip article {
  flex: 1 1 210px;
  min-height: 118px;
  padding: 20px;
  border-top: 3px solid var(--yellow);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.hero-strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 32px;
}

.hero-strip span {
  color: rgba(255, 255, 255, 0.75);
}

.ticker {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.ticker span {
  min-height: 64px;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.section {
  padding: clamp(64px, 9vw, 128px) clamp(18px, 4vw, 56px);
}

.intro,
.safety {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}

.intro h2,
.safety h2,
.section-head h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1;
}

.intro > p {
  color: var(--muted);
  font-size: 20px;
}

.business {
  background: var(--white);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.business-card {
  min-height: 190px;
  padding: 20px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.business-card span {
  display: block;
  margin-bottom: 58px;
  color: var(--red);
  font-weight: 800;
}

.business-card strong {
  display: block;
  max-width: 230px;
  font-size: 20px;
  line-height: 1.1;
}

.business-card.active {
  background: var(--ink);
  color: var(--white);
}

.business-panel {
  margin-top: 24px;
  padding: clamp(24px, 5vw, 54px);
  background: #e7e3da;
  border-left: 8px solid var(--red);
}

.business-panel h3 {
  max-width: 890px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.business-panel p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.panel-kicker {
  color: var(--red);
  font-weight: 800;
}

.projects {
  background: #15191f;
  color: var(--white);
}

.projects .eyebrow,
.news .eyebrow {
  color: var(--yellow);
}

.project-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.case-item {
  min-height: 430px;
  display: grid;
  grid-template-rows: 230px 1fr;
  overflow: hidden;
  background: #222832;
  color: var(--white);
}

.case-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, opacity 220ms ease;
}

.case-item:hover img {
  transform: scale(1.035);
  opacity: 0.86;
}

.case-item div {
  padding: 22px;
  border-top: 3px solid var(--red);
}

.case-item p {
  margin-bottom: 28px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
}

.case-item h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.02;
}

.case-item span {
  color: rgba(255, 255, 255, 0.74);
}

.project-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(212, 33, 45, 0.88), rgba(32, 90, 158, 0.86)),
    linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.18));
}

.project-card.large {
  grid-row: span 2;
  min-height: 516px;
  background:
    linear-gradient(145deg, rgba(11, 123, 104, 0.88), rgba(16, 18, 22, 0.78)),
    url("assets/web-creation-hero.png") center / cover;
  background-blend-mode: multiply;
}

.project-card p {
  color: var(--yellow);
  font-weight: 800;
}

.project-card h3 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1;
}

.case-card span {
  max-width: 620px;
}

.project-card span {
  color: rgba(255, 255, 255, 0.75);
}

.safety-list {
  display: grid;
  gap: 12px;
}

.safety-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.safety-list strong {
  color: var(--green);
}

.news {
  background: var(--ink);
  color: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.news-grid article {
  min-height: 230px;
  padding: 24px;
  background: var(--ink);
}

.news-grid time {
  display: block;
  margin-bottom: 50px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
}

.news-grid h3 {
  font-size: 24px;
  line-height: 1.12;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 42px clamp(18px, 4vw, 56px);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.footer p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
}

.footer a {
  color: var(--red);
  font-weight: 800;
}

.assistant-widget {
  position: fixed;
  z-index: 40;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
}

.assistant-fab {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 0;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 18px 42px rgba(16, 18, 22, 0.28);
  cursor: pointer;
}

.assistant-fab span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
}

.assistant-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(380px, calc(100vw - 32px));
  display: none;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(16, 18, 22, 0.28);
  border: 1px solid var(--line);
}

.assistant-panel.open {
  display: block;
}

.assistant-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: var(--ink);
  color: var(--white);
}

.assistant-header strong,
.assistant-header span {
  display: block;
}

.assistant-header span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.assistant-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.assistant-messages {
  max-height: 300px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #f7f6f2;
}

.assistant-progress {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.assistant-progress span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.assistant-progress div {
  height: 6px;
  overflow: hidden;
  background: #e7e3da;
}

.assistant-progress i {
  display: block;
  height: 100%;
  background: var(--red);
  transition: width 180ms ease;
}

.assistant-message {
  width: fit-content;
  max-width: 92%;
  padding: 11px 12px;
  font-size: 14px;
  line-height: 1.35;
}

.assistant-message.bot {
  background: var(--white);
  border-left: 4px solid var(--red);
}

.assistant-message.user {
  justify-self: end;
  background: var(--ink);
  color: var(--white);
}

.assistant-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px 0;
}

.assistant-quick button {
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.assistant-quick button:hover {
  border-color: var(--red);
  color: var(--red);
}

.assistant-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 16px 16px;
}

.assistant-form textarea {
  min-width: 0;
  min-height: 76px;
  resize: vertical;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font: inherit;
}

.assistant-form button {
  min-height: 42px;
  border: 0;
  padding: 0 14px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
  }

  .ticker,
  .business-grid,
  .news-grid,
  .project-grid,
  .case-grid,
  .intro,
  .safety {
    grid-template-columns: 1fr;
  }

  .project-card.large {
    min-height: 360px;
  }

  .section-head,
  .footer {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  .hero {
    padding-bottom: 24px;
  }

  .hero-strip {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 44px;
  }

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

  .business-card {
    min-height: 150px;
  }

  .business-card span {
    margin-bottom: 36px;
  }

  .case-item {
    min-height: auto;
    grid-template-rows: 210px 1fr;
  }

  .assistant-widget {
    right: 12px;
    bottom: 12px;
  }

  .assistant-fab {
    width: 56px;
    height: 56px;
  }

  .assistant-panel {
    bottom: 68px;
  }

  .assistant-form {
    grid-template-columns: 1fr;
  }

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