:root {
  --ink: #211a2d;
  --muted: #6d6875;
  --accent: #6d3cc7;
  --accent-dark: #4d239a;
  --lavender: #f2edf9;
  --paper: #fffdfb;
  --white: #ffffff;
  --line: #e7e0ed;
  --shadow: 0 18px 50px rgba(39, 25, 55, 0.1);
  --radius: 22px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 126px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 11vw, 4rem);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 8vw, 3rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.container {
  width: min(100% - 36px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 17px 14px;
}

.brand {
  align-self: flex-start;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.brand span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  width: 100%;
  gap: 20px;
  overflow-x: auto;
  color: #4d4655;
  font-size: 0.84rem;
  font-weight: 700;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  flex: 0 0 auto;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-color: var(--accent);
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(109, 60, 199, 0.13), transparent 38%),
    linear-gradient(140deg, #fffdfb 50%, #f0e9f8 100%);
}

.hero-grid {
  display: grid;
  gap: 30px;
  padding-block: 48px 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 670px;
}

.eyebrow {
  margin-bottom: 13px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero-support {
  max-width: 600px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.03rem;
}

.headline-desktop {
  display: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

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

.button-primary,
.button-card {
  color: var(--white);
  background: var(--accent);
}

.button-primary:hover,
.button-primary:focus-visible,
.button-card:hover,
.button-card:focus-visible {
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: #cbc0d4;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-visual {
  aspect-ratio: 4 / 5;
  width: min(100%, 520px);
  margin-inline: auto;
  border-radius: 26px 26px 0 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual picture,
.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-visual img {
  object-fit: cover;
  object-position: center;
}

@media (max-width: 699px) {
  .hero-grid {
    gap: 16px;
    padding-block: 42px 0;
  }

  .hero-copy {
    display: contents;
  }

  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-support {
    order: 1;
  }

  .hero-copy h1,
  .hero-support {
    margin-bottom: 0;
  }

  .hero-visual {
    order: 2;
    margin-top: 2px;
  }

  .hero-copy .button-row {
    order: 3;
    margin-top: 0;
  }
}

.section {
  padding-block: 76px;
}

.section-tinted {
  background: var(--lavender);
}

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

.section-heading > p:last-child,
.split-heading > p,
.service-card p,
.project-content > p:not(.project-type),
.page-hero p,
.contact-inner p {
  color: var(--muted);
}

.service-grid,
.project-grid {
  display: grid;
  gap: 18px;
}

.service-card {
  padding: 26px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(39, 25, 55, 0.04);
}

.service-card p {
  margin-bottom: 0;
}

.service-image {
  height: 230px;
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: 14px;
  background: #f2eff3;
}

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

.promo-service-image img {
  object-fit: contain;
  object-position: center center;
  transform: none;
}

.business-visual-image {
  background: #f2eff3;
}

.business-visual-image img {
  object-fit: contain;
  object-position: center center;
  transform: none;
}

.card-number {
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.project-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 35px rgba(39, 25, 55, 0.07);
}

.project-image {
  aspect-ratio: 1200 / 625;
  overflow: hidden;
  background: #e9e1ef;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: none;
}

.project-image.teranga-image {
  background: #092a1e;
}

.project-image.print-express-image {
  background: #efe9df;
}

.project-content {
  padding: 24px;
}

.project-content h2 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.project-content > p:not(.project-type) {
  min-height: 52px;
  margin-bottom: 18px;
}

.project-type {
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-dark);
}

.section-action {
  margin-top: 30px;
  text-align: center;
}

.contact-section {
  padding-block: 64px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.12), transparent 28%),
    #3c206c;
}

.contact-inner {
  display: grid;
  gap: 28px;
}

.contact-inner h2 {
  max-width: 650px;
}

.contact-inner p {
  max-width: 640px;
  margin-bottom: 0;
  color: #dfd4ee;
}

.eyebrow-light {
  color: #d9c5fa !important;
}

.contact-actions {
  align-items: flex-start;
}

.button-light {
  color: var(--accent-dark);
  background: var(--white);
}

.button-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.site-footer {
  padding-block: 25px;
  color: #cfc7d8;
  background: #20172b;
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-inner p {
  margin-bottom: 0;
}

.page-hero {
  padding-block: 60px;
  background:
    radial-gradient(circle at 75% 25%, rgba(109, 60, 199, 0.14), transparent 30%),
    var(--lavender);
}

.page-hero-inner {
  max-width: 760px;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  font-size: 1.03rem;
}

.projects-section {
  padding-top: 52px;
}

.project-grid-all .project-content {
  display: flex;
  min-height: 275px;
  flex-direction: column;
  align-items: flex-start;
}

.project-grid-all .button-card {
  margin-top: auto;
}

@media (max-width: 699px) {
  .project-grid-all .project-content {
    min-height: auto;
  }

  .project-grid-all .project-content > p:not(.project-type) {
    min-height: 0;
    margin-bottom: 12px;
  }

  .project-grid-all .button-card {
    margin-top: 0;
  }
}

.compact-contact {
  padding-block: 54px;
}

@media (min-width: 460px) {
  html {
    scroll-padding-top: 88px;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-nav {
    width: auto;
  }
}

@media (min-width: 700px) {
  .container {
    width: min(100% - 64px, var(--container));
  }

  .header-inner {
    padding-block: 20px;
  }

  .site-nav {
    gap: 28px;
    font-size: 0.9rem;
  }

  .hero {
    padding-block: 34px 42px;
    background: none;
  }

  .hero-grid {
    position: relative;
    isolation: isolate;
    display: block;
    min-height: clamp(560px, 48vw, 590px);
    padding: 0 clamp(34px, 6vw, 72px);
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
  }

  .headline-mobile {
    display: none;
  }

  .headline-desktop {
    display: inline;
  }

  .hero-copy {
    display: flex;
    min-height: clamp(560px, 48vw, 590px);
    max-width: min(500px, 40%);
    flex-direction: column;
    justify-content: center;
    padding-block: 48px;
    color: var(--ink);
  }

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

  .hero-copy h1 {
    color: var(--ink);
    font-size: clamp(2.55rem, 4.25vw, 3.75rem);
    text-shadow: none;
  }

  .hero-support {
    color: #4f4858;
  }

  .hero-visual {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    margin: 0;
    border-radius: inherit;
    box-shadow: none;
  }

  .hero-visual picture {
    position: absolute;
    inset: 0;
    width: 100%;
  }

  .hero-visual::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 34%);
    pointer-events: none;
  }

  .hero-visual img {
    object-fit: contain;
    object-position: right center;
  }

  .section {
    padding-block: 100px;
  }

  .service-grid,
  .project-grid-home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-image {
    height: 180px;
  }

  .split-heading {
    display: grid;
    max-width: none;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 50px;
  }

  .split-heading > p {
    margin-bottom: 10px;
  }

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

  .project-grid-all .project-content {
    min-height: auto;
  }

  .project-grid-all .button-card {
    margin-top: 0;
  }

  .contact-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .contact-actions {
    justify-content: flex-end;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1000px) {
  h1 {
    font-size: 4.65rem;
  }

  .hero-support {
    font-size: 1.12rem;
  }

}

@media (max-width: 359px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  h1 {
    font-size: 2.25rem;
  }

  .button-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .button {
    width: auto;
  }

  .site-nav {
    gap: 16px;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
