/* ============================================================
   THE HUMAN ELEMENT — HOME PAGE
   ============================================================ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 80px);
  min-height: 88vh;
  overflow: hidden;
  border-bottom: 1.5px solid var(--he-ink);
  background: var(--he-grey-light);
}
.hero__points {
  position: absolute;
  left: 40px;
  top: 40px;
  bottom: 40px;
  width: 40px;
  height: calc(100% - 80px);
}
/* Text and image are flex siblings (order sets the visual sequence, since
   the image markup comes first in source for the points/orbit grouping) —
   flexbox guarantees they can never overlap; only their *sizes* trade off
   as the row runs out of room. .hero__visual shrinks 3x faster than
   .hero__content so the copy stays legible before the image gives ground. */
.hero__visual {
  order: 2;
  flex: 1 1 460px;
  flex-shrink: 3;
  min-width: 0;
  max-width: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: clamp(24px, 6vw, 80px);
}
.hero__orbit {
  position: relative;
  width: 100%;
}
.hero__orbit svg {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
}
.hero__sculpture {
  position: absolute;
  z-index: 1;
  top: 25.87%;
  left: -4.35%;
  width: 73.91%;
  will-change: transform, opacity;
  animation: heFadeUp 1s 0.4s cubic-bezier(.22,.61,.36,1) both;
}
.hero__content {
  order: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 480px;
  width: 100%;
  min-width: 0;
  max-width: 860px;
  padding: 0 24px 0 clamp(24px, 10vw, 130px);
  gap: 28px;
  container-type: inline-size;
}
.hero__eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--he-ink-soft);
  font-weight: 600;
  will-change: transform, opacity;
  animation: heFadeUp 0.6s 0.15s cubic-bezier(.22,.61,.36,1) both;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 10cqw, 104px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--he-ink);
  will-change: transform, opacity;
  animation: heFadeUp 0.9s 0.3s cubic-bezier(.22,.61,.36,1) both;
}
.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: lowercase;
  font-weight: 400;
  color: var(--he-orange);
}
.hero__lead {
  margin: 0;
  max-width: 620px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--he-ink-soft);
  will-change: transform, opacity;
  animation: heFadeUp 0.9s 0.45s cubic-bezier(.22,.61,.36,1) both;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  will-change: transform, opacity;
  animation: heFadeUp 0.9s 0.6s cubic-bezier(.22,.61,.36,1) both;
}

.band {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  border-bottom: 1.5px solid var(--he-ink);
  background: var(--he-teal-tint);
}
.band__label {
  padding: 64px 40px;
  border-right: 1.5px solid var(--he-ink);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--he-ink-soft);
  display: flex;
  flex-direction: column;
  gap: 28px;
  background-color: var(--surface-page, var(--he-white));
}
.band__content {
  padding: 64px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background-color: var(--surface-page, var(--he-white));
}
.band__quote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.3;
  max-width: 820px;
}
.band__link {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--he-orange);
  text-decoration: none;
  align-self: flex-start;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 32px 0 0;
  border-top: 1px solid var(--he-grey);
  margin-top: 32px;
}
.service-card {
  position: relative;
  padding: 40px;
  border-right: 1px solid var(--he-grey);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform var(--dur-base) var(--ease-standard);
}
.service-card:last-child { border-right: none; }
.service-card:hover { transform: translateY(-4px); }
.service-card--orange { background-color: var(--he-grey-1); }
.service-card--lilac { background-color: var(--he-grey-2); }
.service-card--teal { background-color: var(--he-grey-3); }
.service-card__media { position: relative; }
.service-card__media-inner { overflow: hidden; }
.service-card__media-inner img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform var(--dur-slow) var(--ease-standard);
}
.service-card:hover .service-card__media-inner img { transform: scale(1.04); }
.service-card__index {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--he-white);
}
.service-card--orange .service-card__index { background: var(--he-orange); }
.service-card--lilac .service-card__index { background: var(--he-lilac); }
.service-card--teal .service-card__index { background: var(--he-teal); }
.service-card__bar {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  transition: width var(--dur-base) var(--ease-standard);
}
.service-card--orange .service-card__bar { background: var(--he-orange); }
.service-card--lilac .service-card__bar { background: var(--he-lilac); }
.service-card--teal .service-card__bar { background: var(--he-teal); }
.service-card:hover .service-card__bar { width: 40px; }
.service-card__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-family: var(--font-display);
}
.service-card--orange .service-card__title { color: var(--he-orange); }
.service-card--lilac .service-card__title { color: var(--he-lilac); }
.service-card--teal .service-card__title { color: var(--he-teal); }
.service-card__body { margin: 0; font-size: 15px; line-height: 1.55; color: var(--he-ink-soft); }
.service-card__more {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--he-ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.service-card:hover .service-card__more,
.service-card:focus-within .service-card__more { opacity: 1; transform: translateY(0); }
.service-card__more:hover { color: var(--he-orange); }

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 36px;
}
.project-feature {
  position: relative;
  display: block;
  padding: 0 40px 56px;
  border-right: 1px solid var(--he-grey);
  text-decoration: none;
}
.project-feature__media { overflow: hidden; }
.project-feature__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform var(--dur-slow) var(--ease-standard);
}
.project-feature__media:hover img { transform: scale(1.03); }
.project-feature__ring {
  position: absolute;
  top: -18px;
  right: 22px;
  width: 110px;
  height: 110px;
  border-radius: var(--radius-pill);
  background-color: var(--he-blue);
  pointer-events: none;
}
.project-feature__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
}
.project-feature__tag {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--he-orange);
  font-weight: 700;
}
.project-feature__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.project-feature__dek {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--he-ink-soft);
}

.project-index {
  display: flex;
  flex-direction: column;
  padding: 0 40px 56px;
}
.project-index__row {
  display: grid;
  grid-template-columns: 64px 44px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--he-grey);
  text-decoration: none;
  transition: padding-left var(--dur-base) var(--ease-standard);
}
.project-index__row:last-child { border-bottom: 1px solid var(--he-grey); }
.project-index__row:hover { padding-left: 8px; }
.project-index__media {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.project-index__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}
.project-index__code { font-size: 13px; color: var(--he-grey-dark); align-self: center; }
.project-index__client {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--he-grey-dark);
  display: block;
}
.project-index__title { font-size: 20px; font-weight: 700; display: block; }

.perspectives {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.perspective-card {
  padding: 32px 40px 48px;
  border-right: 1px solid var(--he-grey);
  border-top: 3px solid var(--he-orange);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.perspective-card:last-child { border-right: none; }
.perspective-card--blue { border-top-color: var(--he-blue); }
.perspective-card--lilac { border-top-color: var(--he-lilac); }
.perspective-card__label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--he-orange); font-weight: 700; }
.perspective-card--blue .perspective-card__label { color: var(--he-blue); }
.perspective-card--lilac .perspective-card__label { color: var(--he-lilac-deep); }
.perspective-card__title { font-size: 22px; font-weight: 800; line-height: 1.2; font-family: var(--font-display); text-transform: uppercase; }
.perspective-card__dek { font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--he-ink-soft); line-height: 1.45; }
.perspective-card__date { font-size: 12px; color: var(--he-grey-dark); }

.marquee {
  background: var(--he-ink);
  color: var(--he-white);
  padding: 18px 0;
  overflow: hidden;
  animation: heFadeUp 0.7s cubic-bezier(.22,.61,.36,1) both;
}
.marquee__track { display: flex; }
.marquee__group {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100vw;
  flex-shrink: 0;
}
/* Duplicate copy for the seamless loop below — hidden by default (and from
   assistive tech) so browsers without prefers-reduced-motion support, or
   users who asked for reduced motion, get one static, centered copy. */
.marquee__group[aria-hidden="true"] { display: none; }
.marquee__item { font-family: var(--font-serif); font-style: italic; font-size: 24px; padding: 0 28px; white-space: nowrap; flex-shrink: 0; }
.marquee__dot { font-size: 22px; flex-shrink: 0; }
.marquee__dot--orange { color: var(--he-orange); }
.marquee__dot--teal { color: var(--he-teal); }
.marquee__dot--lilac { color: var(--he-lilac); }

@media (prefers-reduced-motion: no-preference) {
  .marquee__group[aria-hidden="true"] { display: flex; }
  .marquee__track { animation: heMarqueeScroll 24s linear infinite; }
}

@keyframes heMarqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100vw); }
}

/* Home's contact CTA reads larger than the quieter CTAs on other pages */
#contacto .cta__title { font-size: clamp(34px, 6vw, 64px); line-height: 1.0; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero { min-height: 0; flex-direction: column; }
  .hero__points,
  .hero__visual { display: none; }
  .hero__content {
    max-width: 100%;
    padding: 56px 24px;
  }
  .band { grid-template-columns: 1fr; }
  .band__label { border-right: none; border-bottom: 1.5px solid var(--he-ink); }
}

@media (max-width: 640px) {
  .hero__title { font-size: clamp(30px, 13cqw, 56px); }
}
