:root {
  --wine: #821b35;
  --wine-deep: #511022;
  --magenta: #e6007e;
  --cyan: #00a7df;
  --yellow: #f4df00;
  --ink: #17171b;
  --muted: #696970;
  --cream: #f7f2e8;
  --paper: #fffdf9;
  --white: #ffffff;
  --line: rgba(23, 23, 27, 0.12);
  --shadow: 0 24px 70px rgba(37, 14, 22, 0.14);
  --radius: 26px;
  --shell: min(1240px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 52px;
}

.section-heading h2,
.about-copy h2,
.print-copy h2,
.contact-copy h2 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.section-heading > p,
.about-copy > p,
.print-copy > p,
.contact-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--magenta);
  box-shadow: 0 14px 34px rgba(230, 0, 126, 0.28);
}

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

.button-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(14px);
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  border-color: var(--line);
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 10px 40px rgba(23, 23, 27, 0.07);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand img {
  width: 205px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.88rem;
  font-weight: 800;
}

.site-nav a:not(.nav-cta) {
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--magenta);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--white);
  background: var(--wine);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 13px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.hero {
  position: relative;
  display: grid;
  min-height: 94vh;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}

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

.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.07);
  transition: opacity 900ms ease, transform 6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 10, 12, 0.86) 0%, rgba(17, 10, 12, 0.55) 45%, rgba(17, 10, 12, 0.1) 78%),
    linear-gradient(0deg, rgba(17, 10, 12, 0.58), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 160px;
  padding-bottom: 86px;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-kicker::before {
  width: 34px;
  height: 3px;
  background: var(--yellow);
  content: "";
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(3.5rem, 8.2vw, 8.4rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.hero h1 em {
  color: var(--yellow);
  font-style: normal;
}

.hero-summary {
  max-width: 650px;
  margin: 28px 0 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-progress {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - 1240px) / 2));
  bottom: 92px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 42px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  transition: background 180ms ease, width 180ms ease;
}

.hero-dot.is-active {
  width: 72px;
  background: var(--yellow);
}

.trust-strip {
  color: var(--white);
  background: var(--wine);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  padding: 27px 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.trust-item:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.trust-item strong {
  display: block;
  font-size: 0.98rem;
}

.trust-item span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
}

.services,
.portfolio,
.about,
.contact {
  padding: 120px 0;
}

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

.service-card {
  position: relative;
  min-height: 330px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
}

.service-card::before {
  position: absolute;
  inset: auto -70px -90px auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--accent, var(--magenta));
  content: "";
  opacity: 0.12;
  transition: inset 320ms ease, width 320ms ease, height 320ms ease, opacity 320ms ease;
}

.service-card:hover {
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.service-card:hover::before {
  inset: -30%;
  width: 160%;
  height: 160%;
  opacity: 1;
}

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

.service-number {
  display: block;
  margin-bottom: 92px;
  color: var(--accent, var(--magenta));
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.service-card:hover .service-number {
  color: rgba(255, 255, 255, 0.72);
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  line-height: 1.05;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-card:hover p {
  color: rgba(255, 255, 255, 0.82);
}

.print-spotlight {
  padding: 72px 0;
  color: var(--white);
  background: var(--ink);
}

.print-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 70px;
  align-items: center;
}

.print-media {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 32px;
}

.print-media img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.print-badge {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-9deg);
}

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

.print-copy > p {
  max-width: 590px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.68);
}

.print-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 34px 0;
  padding: 0;
  list-style: none;
}

.print-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.92rem;
  font-weight: 700;
}

.portfolio {
  background: var(--cream);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}

.filter-button {
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--white);
  border-color: var(--wine);
  background: var(--wine);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.project-card {
  position: relative;
  grid-column: span 4;
  min-height: 510px;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  color: var(--white);
  background: var(--ink);
  text-align: left;
  isolation: isolate;
}

.project-card:nth-child(5n + 1),
.project-card:nth-child(5n + 4) {
  grid-column: span 8;
}

.project-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}

.project-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(14, 9, 11, 0.86), rgba(14, 9, 11, 0.03) 68%);
  content: "";
  pointer-events: none;
}

.project-card:hover img {
  transform: scale(1.055);
}

.project-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 34px;
}

.project-type {
  display: inline-block;
  margin-bottom: 11px;
  color: var(--yellow);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 2.15rem);
  line-height: 1.06;
}

.project-card p {
  max-width: 620px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 80px 24px;
  border: 1px dashed rgba(130, 27, 53, 0.32);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.46);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 1.2rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 90px;
  align-items: center;
}

.about-collage {
  position: relative;
  min-height: 690px;
}

.about-collage img {
  position: absolute;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.about-collage img:first-child {
  top: 0;
  left: 0;
  width: 72%;
  height: 74%;
}

.about-collage img:last-child {
  right: 0;
  bottom: 0;
  width: 57%;
  height: 53%;
  border: 10px solid var(--paper);
}

.about-copy > p {
  margin-top: 28px;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.about-point {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.about-point strong {
  display: block;
  margin-bottom: 6px;
}

.about-point span {
  color: var(--muted);
  font-size: 0.86rem;
}

.contact {
  color: var(--white);
  background: var(--wine-deep);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 80px;
  align-items: end;
}

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

.contact-copy > p {
  max-width: 630px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.68);
}

.contact-card {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-card span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-email {
  display: block;
  margin-bottom: 26px;
  overflow-wrap: anywhere;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.56);
  background: #2d0812;
  font-size: 0.78rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  color: var(--white);
}

.lightbox {
  width: min(1040px, calc(100% - 28px));
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 35px 120px rgba(0, 0, 0, 0.5);
}

.lightbox::backdrop {
  background: rgba(20, 6, 10, 0.82);
  backdrop-filter: blur(8px);
}

.lightbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
  min-height: 650px;
}

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

.lightbox-copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 42px;
}

.lightbox-copy h3 {
  margin: 0;
  font-size: 2.1rem;
  line-height: 1.03;
}

.lightbox-copy p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  font-size: 1.3rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  :root {
    --shell: min(100% - 32px, 760px);
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 86px 0 auto;
    display: grid;
    gap: 0;
    padding: 18px 16px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 15px 10px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-cta {
    margin-top: 16px;
    border: 0;
    text-align: center;
  }

  .hero {
    min-height: 820px;
  }

  .hero-progress {
    right: 16px;
    bottom: 40px;
  }

  .trust-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading,
  .print-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .project-card,
  .project-card:nth-child(5n + 1),
  .project-card:nth-child(5n + 4) {
    grid-column: span 6;
  }

  .print-media,
  .print-media img {
    min-height: 500px;
  }

  .about-collage {
    min-height: 620px;
  }

  .lightbox-layout {
    grid-template-columns: 1fr;
  }

  .lightbox-image {
    max-height: 58vh;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .brand img {
    width: 170px;
  }

  .header-inner {
    min-height: 76px;
  }

  .site-nav {
    inset-block-start: 76px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding-bottom: 100px;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 18vw, 5.2rem);
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(17, 10, 12, 0.84), rgba(17, 10, 12, 0.32)), linear-gradient(0deg, rgba(17, 10, 12, 0.8), transparent 62%);
  }

  .hero-progress {
    left: 14px;
    right: auto;
  }

  .trust-grid,
  .service-grid,
  .print-list,
  .about-points {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .services,
  .portfolio,
  .about,
  .contact {
    padding: 86px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .service-card {
    min-height: 280px;
  }

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

  .print-spotlight {
    padding: 28px 0 82px;
  }

  .print-media,
  .print-media img {
    min-height: 400px;
  }

  .print-badge {
    width: 102px;
    height: 102px;
  }

  .project-grid {
    display: block;
  }

  .project-card {
    width: 100%;
    min-height: 450px;
    margin-bottom: 16px;
  }

  .project-content {
    padding: 26px;
  }

  .about-collage {
    min-height: 490px;
  }

  .footer-inner {
    display: block;
  }

  .footer-inner p {
    margin: 7px 0;
  }

  .lightbox-copy {
    padding: 30px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Component bindings for the production markup */
.skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.nav-wrap {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.88rem;
  font-weight: 800;
}

.main-nav a:not(.nav-cta) {
  position: relative;
}

.main-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--magenta);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  background-position: center;
  background-size: cover;
}

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

.hero-copy {
  max-width: 650px;
  margin: 28px 0 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.hero-rail {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 36px;
  left: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.slide-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.34);
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
}

.slide-dot span {
  font-size: 0.65rem;
}

.slide-dot.is-active {
  border-color: var(--yellow);
  color: var(--white);
}

.trust-grid > p {
  margin: 0;
  padding: 27px 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.trust-grid > p:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
}

.section {
  padding: 120px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 52px;
}

.section-head h2,
.about-title h2 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.section-head h2 span,
.about-title h2 span {
  color: var(--magenta);
}

.section-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow.dark {
  color: var(--wine);
}

.service-card > a {
  position: absolute;
  z-index: 2;
  right: 34px;
  bottom: 28px;
  left: 34px;
  display: flex;
  justify-content: space-between;
  color: var(--wine);
  font-size: 0.8rem;
  font-weight: 900;
}

.service-card:hover > a {
  color: var(--white);
}

.service-card:nth-child(1) { --accent: var(--wine); }
.service-card:nth-child(2) { --accent: var(--magenta); }
.service-card:nth-child(3) { --accent: var(--cyan); }
.service-card:nth-child(4) { --accent: #e56628; }
.service-card:nth-child(5) { --accent: #5660aa; }

.service-card-accent {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.service-card-accent::before {
  background: var(--magenta);
  opacity: 0.18;
}

.service-card-accent .mini-label {
  margin: 0 0 76px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-card-accent > a {
  color: var(--yellow);
  overflow-wrap: anywhere;
}

.print-feature {
  padding: 72px 0;
  color: var(--white);
  background: var(--ink);
}

.print-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 70px;
  align-items: center;
}

.print-visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 32px;
}

.print-visual img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.print-badge {
  padding: 14px;
}

.print-badge strong,
.print-badge span {
  display: block;
}

.print-badge span {
  margin-top: 3px;
  font-size: 0.6rem;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 34px 0 20px;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.92rem;
  font-weight: 700;
}

.check-list li::before {
  margin-right: 8px;
  color: var(--yellow);
  content: "✓";
}

.print-note {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.8rem !important;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}

.filter {
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
}

.filter:hover,
.filter.is-active {
  color: var(--white);
  border-color: var(--wine);
  background: var(--wine);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.project-card {
  padding: 0;
}

.project-card button {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.project-overlay {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 20px;
  align-items: end;
  padding: 34px;
}

.project-overlay small {
  grid-column: 1 / -1;
  color: var(--yellow);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-overlay strong {
  font-size: clamp(1.35rem, 2.3vw, 2.15rem);
  line-height: 1.06;
}

.project-overlay i {
  font-size: 1.5rem;
  font-style: normal;
}

.portfolio-grid .project-card:nth-child(5n + 1),
.portfolio-grid .project-card:nth-child(5n + 4) {
  grid-column: span 8;
}

.portfolio-grid .project-card:nth-child(5n + 2),
.portfolio-grid .project-card:nth-child(5n + 3),
.portfolio-grid .project-card:nth-child(5n + 5) {
  grid-column: span 4;
}

.empty-state[hidden] {
  display: none;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 90px;
  align-items: start;
}

.about-copy > p {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 42px;
}

.values span {
  padding: 18px 0;
  border-top: 2px solid var(--ink);
  font-weight: 800;
}

.contact > .contact-card {
  display: grid;
  grid-template-columns: 1fr minmax(330px, 0.7fr);
  gap: 60px;
  align-items: end;
  padding: 54px;
  border-color: rgba(255, 255, 255, 0.14);
}

.contact-card h2 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2.25rem, 4.5vw, 4.6rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.contact-card p:last-child {
  color: rgba(255, 255, 255, 0.65);
}

.email-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.footer-grid {
  display: grid;
  grid-template-columns: 205px 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer-grid img {
  width: 170px;
  padding: 8px;
  border-radius: 6px;
  background: var(--white);
}

.footer-grid p {
  margin: 0;
}

.lightbox > img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #09090b;
}

.lightbox-caption {
  padding: 24px 34px 30px;
}

.lightbox-caption span {
  color: var(--yellow);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lightbox-caption h3 {
  margin: 7px 0 0;
  font-size: 1.75rem;
}

@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    inset: 86px 0 auto;
    display: grid;
    gap: 0;
    padding: 18px 16px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

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

  .main-nav .nav-cta {
    margin-top: 16px;
    border: 0;
    text-align: center;
  }

  .section-head,
  .print-grid,
  .about-grid,
  .contact > .contact-card {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .portfolio-grid .project-card,
  .portfolio-grid .project-card:nth-child(n) {
    grid-column: span 6;
  }

  .footer-grid {
    grid-template-columns: 170px 1fr;
  }

  .footer-grid p:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    min-height: 76px;
  }

  .main-nav {
    inset-block-start: 76px;
  }

  .hero-rail {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .trust-grid > p,
  .trust-grid > p:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .section-head {
    gap: 26px;
  }

  .check-list,
  .values {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    display: block;
  }

  .portfolio-grid .project-card {
    margin-bottom: 16px;
  }

  .contact > .contact-card {
    padding: 30px 22px;
  }

  .footer-grid {
    display: block;
  }

  .footer-grid > * {
    margin-bottom: 14px !important;
  }
}

/* Presentación del logotipo corporativo actual */
.brand img {
  width: 238px;
  max-height: 64px;
  object-fit: contain;
}

.footer-grid img {
  width: 230px;
  max-height: 86px;
  padding: 8px 12px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .brand img {
    width: 188px;
    max-height: 55px;
  }

  .footer-grid img {
    width: 210px;
    max-height: 80px;
  }
}
