:root {
  --ink: #141414;
  --muted: #62646b;
  --paper: #fbf8f2;
  --white: #ffffff;
  --line: rgba(20, 20, 20, 0.12);
  --teal: #006d77;
  --red: #b83257;
  --gold: #f6bd60;
  --blue: #2457d6;
  --shadow: 0 24px 80px rgba(20, 20, 20, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(251, 248, 242, 0.94);
  box-shadow: 0 12px 40px rgba(20, 20, 20, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  background: var(--red);
  border-radius: 8px;
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.93rem;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-open .site-nav a:hover {
  background: rgba(20, 20, 20, 0.07);
}

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

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 132px clamp(20px, 6vw, 88px) 88px;
  color: var(--white);
}

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

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 16, 22, 0.86) 0%, rgba(12, 16, 22, 0.64) 38%, rgba(12, 16, 22, 0.16) 100%),
    linear-gradient(180deg, rgba(12, 16, 22, 0.2) 0%, rgba(12, 16, 22, 0.72) 100%);
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.6rem, 11vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  max-width: 790px;
  margin-bottom: 34px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 14px 30px rgba(184, 50, 87, 0.25);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.intro-band {
  margin-top: -52px;
  padding: 0 clamp(18px, 4vw, 54px);
  position: relative;
  z-index: 3;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.intro-grid > div {
  min-height: 168px;
  padding: 26px;
  background: var(--white);
}

.metric {
  display: block;
  margin-bottom: 20px;
  color: var(--teal);
  font-size: 2.7rem;
  line-height: 1;
  font-weight: 800;
}

.intro-grid p,
.service-card p,
.portfolio-item p,
.process-step p,
.contact-copy p,
.site-footer p {
  color: var(--muted);
  line-height: 1.62;
}

.section,
.portfolio-section,
.contact-section {
  padding: clamp(76px, 11vw, 142px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 1180px;
  margin: 0 auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.service-card {
  min-height: 278px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-number {
  display: inline-flex;
  margin-bottom: 58px;
  color: var(--blue);
  font-weight: 800;
}

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

.portfolio-section .section-heading .eyebrow {
  color: var(--gold);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-auto-rows: minmax(238px, auto);
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 250px;
  padding: 24px;
  border-radius: 8px;
  overflow: hidden;
  background: #232323;
}

.portfolio-item.featured {
  grid-row: span 2;
  min-height: 520px;
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.08), rgba(20, 20, 20, 0.86)),
    url("assets/marketing-studio-hero.png") center / cover;
}

.portfolio-item.accent-a {
  background: linear-gradient(135deg, #b83257, #7f2b45);
}

.portfolio-item.accent-b {
  background: linear-gradient(135deg, #006d77, #153d52);
}

.portfolio-item.accent-c {
  background: linear-gradient(135deg, #f6bd60, #2457d6);
}

.portfolio-item p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

.portfolio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: auto;
}

.portfolio-meta span {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.75rem;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  max-width: 1324px;
  margin: 0 auto;
}

.split-section .section-heading {
  margin: 0;
}

.process-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.process-step {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

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

.process-step p {
  margin-bottom: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 44px;
  background: #e8efe9;
}

.contact-copy,
.contact-form {
  max-width: 590px;
}

.contact-copy {
  justify-self: end;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  font-weight: 800;
}

.contact-links a {
  width: fit-content;
  border-bottom: 2px solid var(--red);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(20, 20, 20, 0.16);
  border-radius: 8px;
  background: #fbfbfb;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 87, 214, 0.12);
}

.form-note {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: var(--white);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer p:first-child {
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 980px) {
  .intro-grid,
  .service-grid,
  .portfolio-grid,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .portfolio-item.featured {
    min-height: 430px;
  }

  .contact-copy {
    justify-self: start;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

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

  .hero {
    min-height: 86vh;
    padding: 116px 20px 76px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(12, 16, 22, 0.92) 0%, rgba(12, 16, 22, 0.66) 58%, rgba(12, 16, 22, 0.88) 100%);
  }

  .intro-band {
    margin-top: 0;
    padding: 0;
  }

  .intro-grid {
    border-radius: 0;
    box-shadow: none;
  }

  .service-card {
    min-height: auto;
  }

  .service-number {
    margin-bottom: 34px;
  }

  .process-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 8px;
  }
}

@media (max-width: 420px) {
  .brand span:last-child {
    max-width: 150px;
    line-height: 1.05;
  }

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

  .portfolio-item {
    min-height: 226px;
  }
}
