:root {
  --ink: #101417;
  --muted: #5f6b70;
  --line: #dfe7e7;
  --paper: #f7f7f3;
  --panel: #ffffff;
  --deep: #0b1417;
  --teal: #0f8d85;
  --teal-dark: #07645f;
  --amber: #d6933a;
  --coral: #c85c4a;
  --shadow: 0 24px 60px rgba(16, 20, 23, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(247, 247, 243, 0.94);
  box-shadow: 0 10px 30px rgba(16, 20, 23, 0.08);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.hero-actions,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.nav {
  justify-content: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}

.header-action {
  padding: 11px 16px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--deep);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 15, 17, 0.92) 0%, rgba(7, 15, 17, 0.74) 36%, rgba(7, 15, 17, 0.28) 72%),
    linear-gradient(0deg, rgba(7, 15, 17, 0.62), rgba(7, 15, 17, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding-top: 88px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--teal);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: clamp(68px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 7vw, 90px);
  align-items: start;
  background: #fff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

.intro p:last-child,
.contact-copy p,
.tech-panel p,
.step p,
.service-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.intro p:last-child {
  margin: 38px 0 0;
  font-size: clamp(18px, 2vw, 22px);
}

.services,
.projects {
  background: var(--paper);
}

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

.service-card {
  min-height: 270px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(16, 20, 23, 0.06);
}

.icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-bottom: 36px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--deep);
  font-size: 13px;
  font-weight: 800;
}

.service-card h3,
.tech-panel h3,
.step h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.service-card p,
.tech-panel p,
.step p {
  margin: 0;
}

.projects {
  padding-top: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.925fr 0.925fr;
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 340px;
  display: grid;
  align-content: end;
  gap: 18px;
  overflow: hidden;
  padding: 28px;
  border-radius: 8px;
  color: #fff;
  background: var(--deep);
  box-shadow: var(--shadow);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(16, 20, 23, 0.15), rgba(16, 20, 23, 0.9)),
    radial-gradient(circle at 24% 18%, rgba(15, 141, 133, 0.75), transparent 34%),
    linear-gradient(135deg, #182024, #101417 54%, #273536);
}

.project-card.tv-card::before {
  background:
    linear-gradient(160deg, rgba(16, 20, 23, 0.08), rgba(16, 20, 23, 0.9)),
    radial-gradient(circle at 72% 22%, rgba(214, 147, 58, 0.68), transparent 32%),
    linear-gradient(135deg, #162123, #0c1113 56%, #27302f);
}

.project-card.brief-card::before {
  background:
    linear-gradient(160deg, rgba(16, 20, 23, 0.12), rgba(16, 20, 23, 0.88)),
    radial-gradient(circle at 42% 24%, rgba(200, 92, 74, 0.62), transparent 34%),
    linear-gradient(135deg, #221d1b, #101417 55%, #243333);
}

.project-card > * {
  position: relative;
  z-index: 1;
}

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

.project-meta span {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.project-card h3 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.05;
}

.project-card p {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.project-link {
  width: fit-content;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--amber);
  color: #fff;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(34px, 8vw, 100px);
  background: #fff;
}

.timeline {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.step span {
  color: var(--coral);
  font-weight: 800;
}

.tech {
  background: var(--deep);
  color: #fff;
}

.tech .section-kicker {
  color: #80d7cf;
}

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

.tech-panel {
  min-height: 250px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.tech-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.tech-panel.accent {
  background: var(--teal);
}

.tech-panel.accent p {
  color: rgba(255, 255, 255, 0.86);
}

.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 7vw, 88px);
  align-items: start;
  background: #fff;
}

.contact-copy p {
  max-width: 560px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cbd7d7;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
.button:focus-visible,
.header-action:focus-visible,
.menu-button:focus-visible {
  outline: 3px solid rgba(15, 141, 133, 0.28);
  outline-offset: 2px;
}

.footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.7);
  background: #070d0f;
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav,
  .header-action {
    display: none;
  }

  .menu-button {
    display: grid;
    justify-self: end;
  }

  .site-header.is-open .nav {
    position: absolute;
    top: 70px;
    left: 18px;
    right: 18px;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-header.is-open .nav a {
    padding: 14px;
  }

  .hero {
    min-height: 820px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 15, 17, 0.92), rgba(7, 15, 17, 0.5)),
      linear-gradient(0deg, rgba(7, 15, 17, 0.7), rgba(7, 15, 17, 0.12));
  }

  .intro,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .project-grid,
  .tech-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card.feature {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    font-size: 15px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .service-grid,
  .project-grid,
  .tech-layout {
    grid-template-columns: 1fr;
  }

  .project-card.feature {
    grid-column: auto;
  }

  .service-card,
  .tech-panel,
  .project-card {
    min-height: auto;
  }

  .step {
    grid-template-columns: 44px 1fr;
  }

  .footer {
    display: grid;
  }
}
