:root {
  --bg: #f3f3f5;
  --white: #ffffff;
  --ink: #0f1728;
  --muted: #5a6476;
  --line: #e5e7ef;
  --pink: #f00474;
  --cyan: #33a5b5;
  --cyan-dark: #046772;
  --black: #050507;
  --radius: 22px;
  --hero-height: 560px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(51, 165, 181, 0.75);
  outline-offset: 2px;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, 92vw);
  margin: 18px auto 36px;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.logo,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-mark-image {
  width: auto;
  height: 26px;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-size: 0.95rem;
  font-weight: 600;
}

.menu {
  justify-self: center;
  display: inline-flex;
  gap: 18px;
  padding: 10px 20px;
  border: 1px solid #d8dae2;
  border-radius: 999px;
  background: #fafafc;
}

.menu a {
  font-size: 0.84rem;
  text-decoration: none;
}

.call-btn {
  justify-self: end;
  text-decoration: none;
  background: #000;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

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

.hero-main {
  grid-column: span 8;
  min-height: var(--hero-height);
  padding: 28px;
  position: relative;
  overflow: hidden;
  background: #05070a;
}

.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    image-set(
      url("./images/2020-03-hp0.jpg")
        type("image/jpeg") 1x
    )
    center / cover no-repeat;
  opacity: 0.3;
  transform: scale(1.02);
}

.hero-main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 84% 10%, rgba(44, 143, 163, 0.38), transparent 42%),
    radial-gradient(circle at 8% 90%, rgba(241, 2, 111, 0.22), transparent 36%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.5), rgba(5, 7, 10, 0.82));
}

.card-dark {
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 84% 10%, rgba(44, 143, 163, 0.35), transparent 42%),
    radial-gradient(circle at 8% 90%, rgba(241, 2, 111, 0.2), transparent 36%),
    #05070a;
  color: #fff;
}

.hero-main > * {
  position: relative;
  z-index: 2;
}

.card-light,
.card-cyan,
.card-black,
.card-photo,
.card-accent,
.work-card,
.contact-form {
  border-radius: 18px;
}

.hero-main .tag,
.section-tag,
.work-tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
}

.hero-main .tag {
  background: rgba(255, 255, 255, 0.13);
}

.hero-main h1 {
  font-size: clamp(1.95rem, 4.6vw, 3.6rem);
  line-height: 1.02;
  margin: 14px 0 24px;
  max-width: 10.5ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-side {
  grid-column: span 4;
  min-height: var(--hero-height);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) 186px;
  gap: 12px;
}

.btn-primary {
  background: var(--pink);
  color: #fff;
  padding: 11px 17px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.btn-link {
  text-decoration: none;
  font-size: 0.82rem;
}

.hero-static-btn {
  display: inline-block;
  pointer-events: none;
  cursor: default;
  user-select: none;
}

.metric {
  background: #efeff3;
  padding: 16px;
}

.hero-side .metric:nth-child(1) {
  background: #f2f3f7;
}

.hero-side .metric:nth-child(2) {
  background: #e8eaf1;
}

.metric h3 {
  margin: 0 0 5px;
  font-size: 2rem;
}

.metric p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.team-card {
  min-height: 186px;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0)),
    image-set(
        url("./images/2020-03-hp0.jpg")
          type("image/jpeg") 1x
      )
      center / cover no-repeat;
  position: relative;
}

.overlay-label {
  position: absolute;
  left: 12px;
  bottom: 11px;
  color: #fff;
  font-size: 0.8rem;
}

.mini-contact {
  padding: 16px;
  min-height: 186px;
}

.card-black {
  background: #000;
  color: #fff;
}

.mini-contact p {
  margin: 0 0 5px;
  font-size: 0.76rem;
  opacity: 0.75;
}

.mini-contact a {
  display: block;
  max-width: 100%;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.2;
}

/* Remove all decorative icons site-wide */
.icon-box {
  display: none !important;
}

.section {
  margin-top: 52px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head.center {
  text-align: center;
}

.section-head.between {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.section-head h2 {
  margin: 9px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.section-tag.pink {
  background: rgba(240, 4, 116, 0.14);
  color: #b30c5f;
}

.section-tag.cyan {
  background: rgba(51, 165, 181, 0.18);
  color: var(--cyan-dark);
}

.all-link {
  font-size: 0.84rem;
  color: #c40f68;
  text-decoration: none;
}

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

.service-card {
  grid-column: span 4;
  padding: 26px 28px;
  min-height: 320px;
  box-shadow: 0 14px 30px rgba(15, 23, 40, 0.07);
  border: 1px solid #dde1eb;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card-light {
  background: #f2f2f6;
  border: 1px solid #e4e7ef;
}

.card-accent {
  background: linear-gradient(165deg, #f00474, #cf005f);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 36px rgba(207, 0, 95, 0.25);
}

.service-card h3 {
  margin: 12px 0 8px;
  font-size: 1.7rem;
}

.service-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.accent {
  color: #d11269;
  font-weight: 600;
  margin-bottom: 5px !important;
}

.accent-light {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  margin-bottom: 5px !important;
}

.service-wide {
  grid-column: span 6;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 26px;
  min-height: 138px;
  box-shadow: 0 12px 26px rgba(15, 23, 40, 0.06);
  border: 1px solid #dde1eb;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-wide h3 {
  margin: 0 0 4px;
}

.service-wide p {
  margin: 0;
  font-size: 0.86rem;
}

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

#home-portfolio-grid .work-card {
  --portfolio-pad-top: 14px;
  --portfolio-pad-left: 14px;
  min-height: 138px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #fff;
  background: #05070a;
}

#home-portfolio-grid .work-card .work-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  z-index: 0;
  transform: scale(1.01);
  transition: transform 260ms ease;
}

#home-portfolio-grid .work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.14), rgba(5, 7, 10, 0.44));
}

#home-portfolio-grid .work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 84% 10%, rgba(44, 143, 163, 0.24), transparent 42%),
    radial-gradient(circle at 8% 90%, rgba(241, 2, 111, 0.16), transparent 36%);
}

#home-portfolio-grid .work-card > * {
  position: relative;
  z-index: 3;
}

#home-portfolio-grid .work-card h3 {
  margin: 7px 0 0;
  font-size: 1.75rem;
}

#home-portfolio-grid .work-card .work-tag {
  position: absolute;
  top: var(--portfolio-pad-top);
  left: var(--portfolio-pad-left);
  z-index: 4;
}

@media (min-width: 901px) {
  #home-portfolio-grid .work-card {
    --portfolio-pad-top: 42px;
    --portfolio-pad-left: 20px;
    padding: 42px 20px 38px;
    min-height: 188px;
  }

  #home-portfolio-grid .work-card h3 {
    margin-top: 12px;
  }

  #home-portfolio-grid .hp {
    min-height: 360px;
  }

  #home-portfolio-grid .metro {
    min-height: 286px;
  }
}

.work-grid a.work-card {
  text-decoration: none;
  color: #fff;
}

.work-grid a.work-card:focus-visible {
  outline: 2px solid rgba(240, 4, 116, 0.95);
  outline-offset: 3px;
}

.work-tag {
  background: var(--pink);
  color: #fff;
  align-self: flex-start;
  width: fit-content;
}

.hp {
  grid-column: span 8;
  grid-row: span 2;
  min-height: 290px;
  --work-image: url("./images/2020-03-hp0.jpg");
}

.claro {
  grid-column: span 4;
  --work-image: url("./images/2018-08-claro-inicio.jpg");
}

.terra {
  grid-column: span 4;
  --work-image: url("./images/2020-03-terra.png");
}

.metro {
  grid-column: span 4;
  min-height: 238px;
  --work-image: url("./images/2018-08-metro-inicio.jpg");
}

.lcperu {
  grid-column: span 4;
  --work-image: url("./images/2018-08-lcperu-inicio.jpg");
}

.acity {
  grid-column: span 4;
  --work-image: url("./images/2018-08-acity-inicio.jpg");
}

@media (hover: hover) and (pointer: fine) {
  #home-portfolio-grid .work-card:hover .work-bg-media {
    transform: scale(1.05);
  }
}

.quote {
  margin-top: 56px;
  padding: 48px 24px;
  text-align: center;
}

.quote-mark {
  width: 42px;
  height: 42px;
  margin: 0 auto 15px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--pink);
  font-size: 1.8rem;
  line-height: 1;
}

.quote blockquote {
  margin: 0;
  font-size: clamp(1.5rem, 2.7vw, 2.2rem);
  font-weight: 500;
}

.quote p {
  margin: 14px 0;
  color: #6fd8e6;
  font-size: 0.9rem;
}

.quote-source {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
}

.quote-cta {
  margin: 14px 0 0;
  font-size: 0.82rem;
}

.quote-cta a {
  color: #d8f8fd;
}

.dots button {
  appearance: none;
  border: none;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #676a74;
  margin: 0 2px;
  padding: 0;
  cursor: pointer;
}

.dots button.active {
  width: 22px;
  border-radius: 999px;
  background: var(--pink);
}

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

.contact-form {
  grid-column: span 7;
  background: #f6f6f8;
  border: 1px solid #e5e8ef;
  padding: 24px;
}

.contact-form h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.contact-form p {
  margin: 0 0 14px;
  color: var(--muted);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

input,
textarea,
button {
  width: 100%;
  font: inherit;
}

input,
textarea {
  border: 1px solid #e0e2ea;
  background: #f1f2f6;
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 8px;
}

button {
  border: none;
  background: #000;
  color: #fff;
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.contact-cards {
  grid-column: span 5;
  display: grid;
  gap: 12px;
}

.contact-info {
  padding: 16px;
}

.card-cyan {
  background: var(--cyan);
  color: #fff;
}

.contact-info p {
  margin: 0 0 4px;
  font-size: 0.8rem;
}

.contact-info a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}

.footer {
  margin-top: 36px;
  padding: 14px 4px;
  border-top: 1px solid #dadce5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #666d7a;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 450ms ease, transform 450ms ease;
}

.page-hero {
  border-radius: 20px;
  padding: 41px 34px;
  margin-bottom: 16px;
}

.case-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.case-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--case-bg) center / cover no-repeat;
  transform: scale(1.03);
  filter: grayscale(25%);
}

.case-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 85% 15%, rgba(12, 96, 108, 0.55), transparent 44%),
    linear-gradient(180deg, rgba(4, 7, 12, 0.45), rgba(4, 7, 12, 0.82));
}

.case-hero > * {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1.02;
}

.page-hero p {
  margin: 0 0 18px;
  max-width: 70ch;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.case-hero .quote-cta {
  margin-top: 22px;
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
}

.case-meta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.panel {
  border-radius: 18px;
  padding: 22px;
  border: 1px solid #e1e5ef;
  background: #f2f4f8;
}

.panel h2,
.panel h3 {
  margin: 0 0 10px;
  font-weight: 700;
}

.panel p {
  margin: 0;
  color: #2f3b4d;
  line-height: 1.55;
}

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

.team-cardx {
  background: #f4f5f9;
  border: 1px solid #e1e5ef;
  border-radius: 16px;
  padding: 18px;
}

.team-cardx h3 {
  margin: 0;
  font-size: 1.05rem;
}

.team-cardx .role {
  margin-top: 4px;
  color: #d10f68;
  font-weight: 600;
  font-size: 0.86rem;
}

.team-cardx p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #304056;
  line-height: 1.5;
}

.checklist {
  padding: 0;
  margin: 0;
  list-style: none;
}

.checklist li {
  border-top: 1px solid #dde2ed;
  padding: 10px 0;
  color: #25344b;
}

.checklist li:first-child {
  border-top: none;
  padding-top: 0;
}

.cta-band {
  margin-top: 14px;
  border-radius: 16px;
  background: linear-gradient(130deg, #f00474, #d10362);
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.cta-band p {
  margin: 0;
}

.cta-band a {
  text-decoration: none;
  background: #fff;
  color: #141a2b;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
}

.case-card {
  background: #f2f4f9;
  border: 1px solid #e1e4ed;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bento-grid .bento-xl {
  grid-column: span 2;
  min-height: 280px;
}

.bento-grid .bento-md {
  min-height: 230px;
}

.bento-grid .bento-sm {
  min-height: 180px;
}

.bento-grid .bento-tall {
  grid-row: span 2;
  min-height: 420px;
}

.case-card.bento-tall {
  display: flex;
  flex-direction: column;
}

.case-card.bento-tall .tall-case-image {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d8deea;
  min-height: 170px;
  flex: 1 1 auto;
}

.case-card.bento-tall .tall-case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-card.has-media-right {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 12px;
  align-items: stretch;
}

.wide-case-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wide-case-copy h3,
.wide-case-copy p {
  margin: 0;
}

.wide-case-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d8deea;
  min-height: 170px;
}

.wide-case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.deco-card {
  overflow: hidden;
  padding: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-color: #d2d9e8;
}

.case-card h3 {
  margin: 0;
}

.case-meta {
  display: inline-block;
  align-self: flex-start;
  background: #ebeff7;
  color: #2f4059;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.7rem;
  font-weight: 600;
}

.case-card p {
  margin: 0;
  color: #34425a;
  font-size: 0.9rem;
  line-height: 1.5;
}

.case-card .case-cta {
  margin-top: auto;
  text-decoration: none;
  font-size: 0.82rem;
  color: #c20d65;
  font-weight: 700;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.trust-item {
  background: #f4f5f8;
  border: 1px solid #e3e6ee;
  border-radius: 14px;
  padding: 14px;
  font-size: 0.82rem;
  color: #30425a;
}

.form-note {
  margin-top: 9px;
  font-size: 0.76rem;
  color: #637189;
}

.contact-page .page-hero {
  min-height: 360px;
  padding: 52px 42px;
}

.contact-page .split {
  margin-top: 18px;
  gap: 22px;
}

.contact-page .contact-single {
  margin-top: 18px;
  display: grid;
}

.contact-page .contact-main-panel {
  width: min(100%, 760px);
  margin-inline: auto;
}

.contact-page .panel {
  padding: 30px 30px;
}

.contact-page .panel h2,
.contact-page .panel h3 {
  margin-bottom: 14px;
}

.contact-page .panel p {
  line-height: 1.7;
}

.contact-page .lead-form .field-row {
  gap: 12px;
}

.contact-page .lead-form input,
.contact-page .lead-form textarea {
  margin-bottom: 12px;
  padding: 14px 14px;
  border-radius: 12px;
  background: #eef1f7;
}

.contact-page .lead-form textarea {
  min-height: 140px;
}

.contact-page .lead-form button {
  margin-top: 6px;
  padding: 13px 16px;
  border-radius: 12px;
}

.contact-page .form-note {
  margin-top: 12px;
  font-size: 0.8rem;
}

.contact-page .checklist li {
  padding: 12px 0;
}

.contact-page .cta-band {
  margin-top: 24px;
  padding: 24px;
}

.case-description p {
  margin: 0 0 10px;
  line-height: 1.6;
  color: #2f3d54;
}

.case-description > * {
  max-width: 100%;
}

.case-description {
  column-count: 2;
  column-gap: 28px;
}

.case-description > * {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.case-description img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #dbe1eb;
}

.case-video-links {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #d9e0ec;
}

.case-video-links p {
  margin: 0 0 8px;
}

.case-video-links a {
  color: #0f4f63;
  font-weight: 700;
  text-decoration: none;
}

.case-video-links a:hover {
  color: #c20d65;
}

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

.video-embed {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #dbe1eb;
  background: #0b1018;
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.subtle {
  margin-top: 8px;
  font-size: 0.86rem;
  color: #b8c6de;
}

.case-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.case-gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #dbe1eb;
}

.checklist a {
  color: #16223a;
  font-weight: 600;
  text-decoration: none;
}

.checklist a:hover {
  color: #c20d65;
}

.related-mini-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.related-mini-card {
  border: 1px solid #dbe1eb;
  background: #f5f7fb;
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 62px;
  display: flex;
  align-items: center;
}

.related-mini-card a {
  color: #16223a;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.25;
}

.related-mini-card a:hover {
  color: #c20d65;
}

.related-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.related-type-card {
  border: 1px solid #dbe1eb;
  background: #f5f7fb;
  border-radius: 14px;
  padding: 14px 16px;
}

.related-type-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.related-type-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.related-type-list a {
  color: #16223a;
  text-decoration: none;
  font-weight: 600;
}

.related-type-list a:hover {
  color: #c20d65;
}

.magenta-separator {
  border: 0;
  height: 2px;
  margin: 42px 0 0;
  background: linear-gradient(90deg, #f00474, #cf005f);
  border-radius: 999px;
}

/* Works page density/contrast improvements */
.works-page .works-block {
  margin-top: 20px;
}

.works-page .page-hero {
  min-height: 468px;
  display: flex;
  flex-direction: column;
}

.works-page .hero-static-btn {
  margin-top: auto;
  margin-bottom: auto;
  width: fit-content;
  align-self: flex-start;
}

.works-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
  align-items: stretch;
}

.works-hero-main {
  min-height: 360px !important;
  height: 100%;
}

.works-hero-feature {
  min-height: 360px;
  height: 100%;
  position: relative;
  overflow: hidden;
  padding: 34px;
  display: flex;
  flex-direction: column;
}

.works-hero-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--feature-bg) center / cover no-repeat;
  transform: scale(1.03);
  filter: grayscale(35%);
}

.works-hero-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 84% 12%, rgba(23, 129, 145, 0.5), transparent 40%),
    linear-gradient(180deg, rgba(4, 7, 12, 0.36), rgba(4, 7, 12, 0.8));
}

.works-hero-feature > * {
  position: relative;
  z-index: 2;
}

.works-hero-feature h2 {
  margin: 14px 0 14px;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.works-hero-feature p {
  margin: 0 0 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.works-hero-feature .btn-primary {
  margin-top: 34px;
  align-self: flex-start;
  padding: 11px 17px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.works-page .cases-grid {
  gap: 18px;
}

.works-page .case-card {
  padding: 24px 22px;
  min-height: 248px;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(15, 23, 40, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.works-page .case-card:nth-child(odd) {
  background: #f5f7fb;
  border-color: #dde3ee;
}

.works-page .case-card:nth-child(even) {
  background: #edf2f8;
  border-color: #d6deea;
}

.works-page .case-card h3 {
  font-size: 1.22rem;
  line-height: 1.2;
}

.works-page .case-card p {
  line-height: 1.62;
}

.works-page .case-meta {
  margin-bottom: 4px;
}

.works-page .trust-strip {
  gap: 14px;
}

.works-page .trust-item {
  padding: 20px 16px;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(15, 23, 40, 0.05);
}

@media (hover: hover) and (pointer: fine) {
  .works-page .case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 34px rgba(15, 23, 40, 0.14);
    border-color: #cfd7e5;
  }
}

/* About page density/contrast improvements */
.about-page .about-block {
  margin-top: 20px;
}

.about-page .about-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}

.about-page .about-top-grid .page-hero {
  grid-column: 1;
  margin-bottom: 0;
  min-height: 380px;
}

.about-page .about-side-card {
  grid-column: auto;
}

.about-page .panel {
  padding: 34px 30px;
  border-radius: 20px;
  box-shadow: 0 14px 28px rgba(13, 21, 36, 0.08);
}

.about-page .about-side-card:nth-child(2) {
  background: #f5f7fb;
  border-color: #dbe1ec;
}

.about-page .about-side-card:nth-child(3) {
  background: #ecf2f7;
  border-color: #d3dde8;
}

.about-page .panel h2 {
  margin: 10px 0 14px;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
}

.about-page .about-side-card h2 {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.2;
}

.about-page .checklist li {
  padding: 14px 0;
  line-height: 1.55;
}

.about-page .about-side-card .checklist li {
  padding: 10px 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

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

.about-page .team-col {
  display: grid;
  gap: 12px;
  align-content: start;
}

.about-page .team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  border: 1px solid #dbe2ee;
  box-shadow: 0 10px 22px rgba(15, 23, 40, 0.08);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.about-page .p-marcos {
  background-image: url("./images/Marcos-Fonruge.webp");
}

.about-page .p-geraldine {
  background-image: url("./images/2018-08-dina.jpg");
}

.about-page .p-majka {
  background-image: url("./images/2020-03-majka-1.jpg");
}

.about-page .p-jose {
  background-image: url("./images/2022-08-jlcastillejos2.jpg");
}

.about-page .team-cardx {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 28px 24px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 40, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.about-page .team-cardx:nth-child(1) {
  background: #f6f8fb;
}

.about-page .team-cardx:nth-child(2) {
  background: #eef3f8;
}

.about-page .team-cardx:nth-child(3) {
  background: #f4f5fa;
}

.about-page .team-cardx:nth-child(4) {
  background: #edf1f8;
}

@media (hover: hover) and (pointer: fine) {
  .about-page .team-cardx:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(15, 23, 40, 0.12);
  }
}

@media (max-width: 1280px) {
  :root {
    --hero-height: 520px;
  }
}

@media (max-width: 1000px) {
  :root {
    --hero-height: 420px;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .menu {
    justify-self: start;
    overflow-x: auto;
    max-width: 100%;
  }

  .call-btn {
    justify-self: start;
  }

  .hero-main,
  .hero-side,
  .service-card,
  .service-wide,
  .hp,
  .claro,
  .terra,
  .metro,
  .lcperu,
  .acity,
  .contact-form,
  .contact-cards {
    grid-column: span 12;
  }

  .hero-main {
    min-height: var(--hero-height);
  }

  .hero-side {
    min-height: 0;
    grid-template-rows: auto auto;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

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

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

  .split,
  .cases-grid,
  .trust-strip,
  .related-mini-grid,
  .related-type-grid {
    grid-template-columns: 1fr;
  }

  .case-meta-row {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .about-page .about-top-grid .page-hero,
  .about-page .about-side-card {
    grid-column: span 12;
    min-height: 0;
  }

  .about-page .team-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about-page .team-col {
    gap: 10px;
  }

  .about-page .team-col > .team-photo {
    order: 1;
  }

  .about-page .team-col > .team-cardx {
    order: 2;
  }

  .about-page .panel {
    padding: 24px 20px;
  }

  .about-page .team-cardx {
    padding: 22px 18px;
  }

  .works-page .cases-grid,
  .works-page .trust-strip {
    gap: 12px;
  }

  .bento-grid .bento-xl {
    grid-column: span 1;
    min-height: 0;
  }

  .bento-grid .bento-md,
  .bento-grid .bento-sm,
  .bento-grid .bento-tall {
    min-height: 0;
  }

  .bento-grid .bento-tall {
    grid-row: span 1;
  }

  .case-card.bento-tall .tall-case-image {
    min-height: 140px;
  }

  .case-card.has-media-right {
    grid-template-columns: 1fr;
  }

  .wide-case-image {
    min-height: 140px;
  }

  .works-page .page-hero {
    min-height: 0;
  }

  .works-hero-split {
    grid-template-columns: 1fr;
  }

  .works-hero-feature {
    min-height: 0;
    padding: 28px 22px;
  }

  .case-gallery {
    grid-template-columns: 1fr;
  }

  .case-videos {
    grid-template-columns: 1fr;
  }

  .case-description {
    column-count: 1;
  }

  .case-hero {
    min-height: 300px;
    padding: 34px 22px;
  }

  .works-page .case-card {
    min-height: 0;
    padding: 20px 18px;
  }

  .contact-page .page-hero {
    min-height: 0;
    padding: 34px 22px;
  }

  .contact-page .panel {
    padding: 24px 20px;
  }

  .works-page .trust-item {
    padding: 16px 14px;
  }

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

  .service-wide {
    min-height: 0;
  }
}


@media (hover: hover) and (pointer: fine) {
  .services-grid article:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 38px rgba(15, 23, 40, 0.14);
    border-color: #cfd5e3;
  }
}

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

  [data-reveal],
  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
