/* ============================================
   HOME PAGE — Meritus
   ============================================ */

/* --- HERO --- */
.hero {
  position: relative;
  padding: calc(var(--space-8) + 40px) 0 var(--space-7);
  min-height: 92vh;
  overflow: hidden;
  background: linear-gradient(180deg, #FDFCF7 0%, var(--paper) 60%, var(--paper) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent);
}
.hero__container { position: relative; z-index: 2; }

.hero__meta {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  align-items: center;
}
.hero__meta-sep {
  padding-left: var(--space-2);
  border-left: 1px solid var(--line-strong);
}

.hero__title {
  font-size: clamp(3rem, 2rem + 5.6vw, 7.4rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 310;
  margin: 0 0 var(--space-5);
  max-width: 14ch;
}
.hero__title-line {
  display: block;
  overflow: hidden;
}
.hero__title em {
  font-variation-settings: "SOFT" 40, "opsz" 144;
  color: var(--navy-800);
}

.hero__body {
  max-width: 58ch;
  margin-bottom: var(--space-5);
}
.hero__body p {
  font-size: var(--step-2);
  line-height: 1.45;
  color: var(--ink-700);
  font-weight: 400;
  letter-spacing: -0.005em;
}

.hero__ctas {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-7);
}

.hero__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: 880px;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
@media (max-width: 680px) {
  .hero__kpis { grid-template-columns: 1fr; gap: var(--space-3); }
}
.kpi__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4rem);
  line-height: 1;
  font-weight: 310;
  color: var(--navy-800);
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  margin-bottom: 0.55rem;
}
.kpi__label {
  font-size: 0.86rem;
  color: var(--ink-500);
  max-width: 22ch;
  line-height: 1.4;
}

.hero__scroll {
  position: absolute;
  right: var(--content-pad);
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
@media (max-width: 900px) { .hero__scroll { display: none; } }
.hero__scroll-line {
  display: inline-block;
  width: 1px; height: 48px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: -20px;
  width: 1px; height: 20px;
  background: var(--gold-500);
  animation: scroll-line 2.4s var(--ease-out-soft) infinite;
}
@keyframes scroll-line {
  0% { transform: translateY(0); }
  60% { transform: translateY(70px); }
  100% { transform: translateY(70px); opacity: 0; }
}

/* --- Featured --- */
.featured {
  background: var(--paper-2);
  position: relative;
}
.featured__grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 900px) {
  .featured__grid { grid-template-columns: 1fr; gap: var(--space-3); }
}
.featured__side {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
@media (max-width: 900px) { .featured__side { position: relative; top: auto; } }
.featured__num {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 3rem + 6vw, 8rem);
  line-height: 1;
  color: var(--navy-800);
  font-weight: 300;
  letter-spacing: -0.04em;
  font-variation-settings: "SOFT" 40, "opsz" 144;
  opacity: 0.15;
}
.featured__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  padding: 0.45rem 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  display: inline-block;
  text-transform: uppercase;
}
.featured__main h2 { margin-bottom: var(--space-3); }
.featured__main h2 em { color: var(--navy-700); }
.featured__lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-700);
  margin-bottom: var(--space-4);
  max-width: 58ch;
}
.featured__list {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: flex;
  flex-direction: column;
}
.featured__list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
}
.featured__list li:last-child { border-bottom: 1px solid var(--line); }
.featured__list h4 {
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 360;
  letter-spacing: -0.01em;
}
.featured__list p {
  font-size: 0.96rem;
  color: var(--ink-700);
  line-height: 1.55;
  max-width: 58ch;
  margin: 0;
}

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--navy-800);
  font-weight: 500;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--gold-500);
  transition: all 0.3s var(--ease-out-soft);
}
.link-cta:hover { color: var(--gold-600); gap: 1rem; }
.link-cta .arrow { transition: transform 0.3s var(--ease-out-soft); }
.link-cta:hover .arrow { transform: translateX(3px); }

/* --- Section head --- */
.section-head {
  max-width: 880px;
  margin-bottom: var(--space-6);
}
.section-head__title {
  margin-top: var(--space-2);
  margin-bottom: var(--space-3);
}
.section-head__title em { color: var(--navy-700); }
.section-head__lede {
  font-size: var(--step-1);
  color: var(--ink-700);
  max-width: 62ch;
}
.section-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  max-width: none;
}
.section-head--split h2 { max-width: 16ch; margin-top: var(--space-2); }
.link-cta--top { padding-bottom: 0.4rem; margin-bottom: 0.4rem; flex-shrink: 0; }
@media (max-width: 760px) { .section-head--split { flex-direction: column; align-items: flex-start; } }

/* --- Approach --- */
.approach__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}
@media (max-width: 900px) { .approach__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .approach__grid { grid-template-columns: 1fr; } }
.approach-card {
  padding: var(--space-4) var(--space-3);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 320px;
  position: relative;
  transition: background 0.4s var(--ease-out-soft);
}
.approach-card:hover { background: var(--paper-2); }
.approach-card:hover .approach-card__num { color: var(--gold-500); }
.approach-card__num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--ink-300);
  font-weight: 340;
  letter-spacing: -0.01em;
  transition: color 0.4s var(--ease-out-soft);
}
.approach-card h3 {
  font-size: 1.8rem;
  font-weight: 340;
  letter-spacing: -0.02em;
  margin: 0;
}
.approach-card p {
  margin-top: auto;
  font-size: 0.92rem;
  color: var(--ink-700);
  line-height: 1.5;
}

/* --- Products --- */
.products { background: var(--navy-900); color: var(--paper); position: relative; overflow: hidden; }
.products::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(201, 169, 97, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 30% at 85% 85%, rgba(201, 169, 97, 0.05), transparent 70%);
  pointer-events: none;
}
.products::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(250,250,247,0.025) 1px, transparent 1px);
  background-size: 100px 100%;
  pointer-events: none;
}
.products .container { position: relative; z-index: 2; }
.products .eyebrow { color: rgba(250, 250, 247, 0.6); }
.products .eyebrow::before { background: var(--gold-500); }
.products h2, .products .section-head__lede { color: var(--paper); }
.products h2 em { color: var(--gold-500); font-style: italic; }
.products .link-cta { color: var(--gold-400); border-color: var(--gold-500); }
.products .link-cta:hover { color: var(--paper); }

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
@media (max-width: 980px) { .products__grid { grid-template-columns: 1fr; } }

.product {
  padding: var(--space-4);
  background: rgba(250, 250, 247, 0.03);
  border: 1px solid rgba(250, 250, 247, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: all 0.4s var(--ease-out-soft);
  position: relative;
}
.product:hover {
  background: rgba(250, 250, 247, 0.06);
  border-color: rgba(201, 169, 97, 0.35);
  transform: translateY(-4px);
}
.product--featured {
  background: rgba(201, 169, 97, 0.05);
  border-color: rgba(201, 169, 97, 0.25);
}
.product--featured::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold-500);
}

.product__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(250, 250, 247, 0.08);
}
.product__head .label-num { color: rgba(250, 250, 247, 0.5); font-size: 0.8rem; }
.product__tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.3rem 0.6rem;
  background: rgba(250, 250, 247, 0.08);
  color: rgba(250, 250, 247, 0.7);
  border-radius: 2px;
  font-weight: 500;
  font-family: var(--font-body);
}
.product__tag--gold { background: var(--gold-500); color: var(--navy-900); }
.product h3 {
  color: var(--paper);
  font-size: 1.5rem;
  font-weight: 340;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.product p {
  color: rgba(250, 250, 247, 0.72);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0;
}
.product__deliverables {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.product__deliverables li {
  font-size: 0.86rem;
  color: rgba(250, 250, 247, 0.65);
  padding-left: 1.15rem;
  position: relative;
}
.product__deliverables li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold-500);
}
.product__link {
  margin-top: auto;
  padding-top: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--gold-400);
  border-top: 1px solid rgba(201, 169, 97, 0.2);
  transition: color 0.3s var(--ease-out-soft);
}
.product__link:hover { color: var(--paper); }
.product__link .arrow { transition: transform 0.3s var(--ease-out-soft); }
.product__link:hover .arrow { transform: translateX(4px); }

/* --- Sectors marquee --- */
.sectors {
  padding: var(--space-5) 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.sectors__head { margin-bottom: var(--space-3); }
.sectors__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.sectors__track {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem);
  font-weight: 320;
  color: var(--navy-800);
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 40, "opsz" 144;
}
.sectors__track:hover { animation-play-state: paused; }
.sectors__dot {
  color: var(--gold-500);
  font-size: 0.7em;
  transform: translateY(-0.15em);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- Position quote --- */
.position {
  background: var(--paper-2);
  position: relative;
}
.position__inner {
  position: relative;
  padding: var(--space-5) 0;
}
.position__mark {
  font-family: var(--font-display);
  font-size: 10rem;
  line-height: 0.7;
  color: var(--gold-500);
  opacity: 0.4;
  position: absolute;
  top: -30px; left: -40px;
  font-variation-settings: "SOFT" 100;
  font-weight: 340;
}
@media (max-width: 700px) { .position__mark { font-size: 6rem; left: 0; top: -10px; } }
.position__quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.3rem);
  line-height: 1.35;
  font-weight: 320;
  color: var(--navy-900);
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-3);
  font-variation-settings: "SOFT" 30, "opsz" 144;
  position: relative;
  z-index: 2;
}
.position__quote em {
  color: var(--gold-600);
  font-style: italic;
  font-variation-settings: "SOFT" 30, "opsz" 144;
  font-weight: 340;
}
.position__foot {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-500);
  font-family: var(--font-body);
  font-weight: 500;
}

/* --- CTA --- */
.cta {
  background: var(--paper);
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
  position: relative;
  border-top: 1px solid var(--line);
}
.cta__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
@media (max-width: 900px) { .cta__grid { grid-template-columns: 1fr; gap: var(--space-4); } }
.cta__text h2 {
  margin-top: var(--space-2);
  margin-bottom: var(--space-3);
  max-width: 14ch;
}
.cta__text h2 em { color: var(--gold-600); }

.cta__card {
  background: var(--navy-900);
  color: var(--paper);
  padding: var(--space-4);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.cta__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 1px;
  background: var(--gold-500);
}
.cta__card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(250, 250, 247, 0.1);
}
.cta__card-head .label-num { color: var(--gold-400); font-size: 0.72rem; }
.cta__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: rgba(250, 250, 247, 0.75);
}
.cta__status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--gold-500);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.5);
  animation: pulse 2s var(--ease-inout) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(201, 169, 97, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 169, 97, 0); }
}

/* --- CTA Form --- */
.cta__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.cta__form.is-hidden { display: none; }

.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
@media (max-width: 560px) {
  .form-row--split { grid-template-columns: 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
}
.form-field--hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-field label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(250, 250, 247, 0.18);
  padding: 0.65rem 0 0.6rem;
  transition: border-color 0.25s var(--ease-out-soft);
  width: 100%;
  resize: none;
  font-weight: 400;
}
.form-field textarea {
  border: 1px solid rgba(250, 250, 247, 0.18);
  padding: 0.75rem 0.85rem;
  border-radius: 2px;
  line-height: 1.5;
  min-height: 100px;
}
.form-field input:hover,
.form-field textarea:hover {
  border-color: rgba(250, 250, 247, 0.35);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
}
.form-field input:focus ~ label,
.form-field textarea:focus ~ label {
  color: var(--gold-500);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(250, 250, 247, 0.3);
}
.form-field--error input,
.form-field--error textarea {
  border-color: #E07A5F;
}

.form-error {
  font-size: 0.82rem;
  color: #E07A5F;
  margin: 0;
  padding-top: var(--space-1);
  display: none;
}
.form-error.is-visible { display: block; }

/* Success state */
.cta__success {
  display: none;
  padding: var(--space-3) 0;
  text-align: left;
}
.cta__success.is-visible { display: block; }
.cta__success-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.cta__success h4 {
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 1.5rem;
  font-weight: 340;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
}
.cta__success p {
  font-size: 0.94rem;
  color: rgba(250, 250, 247, 0.75);
  line-height: 1.55;
  margin: 0;
  max-width: none;
}

.cta__btn {
  width: 100%;
  justify-content: space-between;
  background: var(--gold-500);
  color: var(--navy-900);
  margin-top: var(--space-1);
  position: relative;
}
.cta__btn:hover { background: var(--gold-400); }
.cta__btn:disabled { opacity: 0.6; cursor: not-allowed; }
.cta__btn .cf-btn-loading { display: none; }
.cta__btn.is-loading .cf-btn-label { display: none; }
.cta__btn.is-loading .cf-btn-loading { display: inline; }
.cta__btn.is-loading .arrow { display: none; }
