/* ==========================================================================
   El Mencey Guanche — Investment & Development
   Styles
   ========================================================================== */

:root {
  --ink: #0b0b0b;
  --paper: #f2efe8;
  --ivory: #e7e0d4;
  --white: #ffffff;
  --copper: #a87649;
  --copper-light: #c6a27f;
  --copper-dark: #8e5f38;
  --muted: #8e8a83;
  --line-light: rgba(255, 255, 255, 0.15);
  --line-dark: rgba(11, 11, 11, 0.15);
  --serif: 'Libre Caslon Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

.wrap {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
}

/* Header & Navigation */
header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  display: flex;
  align-items: center;
  color: var(--white);
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, height 0.35s ease, border-bottom 0.35s ease;
}

header.scrolled {
  height: 76px;
  background: rgba(11, 11, 11, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--copper-light);
  pointer-events: none;
  transition: width 0.06s linear;
  z-index: 101;
}

.nav {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.logo:hover {
  opacity: 0.85;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
  transition: height 0.35s ease;
}

header.scrolled .logo-img {
  height: 42px;
}

.menu {
  display: flex;
  gap: 34px;
  align-items: center;
}

.menu a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.85;
  position: relative;
  padding: 4px 0;
}

.menu a:hover {
  opacity: 1;
  color: var(--copper-light);
}

.menu .language {
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  opacity: 0.9;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--white);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  min-height: 760px;
  color: var(--white);
  position: relative;
  background: var(--ink);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: -30px 0 -30px 0;
  background-image: linear-gradient(90deg, rgba(7, 7, 7, 0.94) 0%, rgba(7, 7, 7, 0.78) 42%, rgba(7, 7, 7, 0.32) 72%, rgba(7, 7, 7, 0.52) 100%),
                    url('https://web.archive.org/web/20250711113535im_/http://elmenceyguanche.com/wp-content/uploads/2022/08/madrid-business.png');
  background-size: cover;
  background-position: center right;
  transform: scale(1.04);
  will-change: transform;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 35%, rgba(0, 0, 0, 0.6));
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 25% 100%, 100% 25%;
  opacity: 0.35;
  pointer-events: none;
}

.hero .wrap {
  min-height: 100vh;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 140px;
  padding-bottom: 80px;
}

.kicker {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(54px, 7.5vw, 120px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 980px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: #d5c6b8;
}

.hero-bottom {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 80px;
  align-items: end;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 660px;
  margin: 0;
}

.hero-link {
  justify-self: end;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  padding: 0 0 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--white);
}

.hero-link:hover {
  border-color: var(--copper-light);
  color: var(--copper-light);
}

.side-code {
  position: absolute;
  right: 26px;
  top: 52%;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right center;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

/* Section Headings */
.intro h2, .about h2, .opportunity h2, .contact h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-size: clamp(40px, 4.8vw, 76px);
  margin: 0;
}

.section-code {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  padding-top: 13px;
}

.thin-rule {
  border-top: 1px solid var(--line-dark);
  margin-top: 75px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.thin-rule.is-visible {
  transform: scaleX(1);
}

/* 01: Áreas / Qué Hacemos */
.intro {
  padding: 140px 0 110px;
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.75fr 2.25fr;
  gap: 80px;
}

.intro h2 {
  max-width: 920px;
}

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0;
}

.service {
  position: relative;
  padding: 42px 28px 50px 0;
  border-right: 1px solid rgba(11, 11, 11, 0.14);
  margin-right: 28px;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease;
}

.service:hover {
  transform: translateY(-5px);
}

.service:last-child {
  border-right: 0;
  margin-right: 0;
}

.service .num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--copper);
}

.service h3 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  margin: 80px 0 20px;
  letter-spacing: -0.01em;
}

.service p {
  font-size: 14px;
  line-height: 1.8;
  color: #65615c;
  margin: 0;
}

.service .arrow {
  position: absolute;
  bottom: 28px;
  right: 20px;
  font-size: 20px;
  color: var(--copper);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.25s ease;
}

.service:hover .arrow {
  transform: translate(6px, -6px);
  color: var(--copper-dark);
}

/* 02: Nosotros */
.about {
  background: #0d0d0d;
  color: var(--white);
  padding: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 820px;
}

.about-image {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.65)),
                    url('../images/puerta-de-alcala-opt.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.about-image .caption {
  position: absolute;
  z-index: 2;
  left: 48px;
  bottom: 40px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.about-copy {
  padding: 100px 9vw 90px 7vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-copy .kicker {
  margin-bottom: 24px;
}

.about-copy h2 {
  font-size: clamp(42px, 4.2vw, 70px);
  max-width: 650px;
}

.about-copy .accent {
  width: 72px;
  height: 1px;
  background: var(--copper);
  margin: 34px 0;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.about-copy.is-visible .accent,
.accent.is-visible {
  transform: scaleX(1);
}

.about-copy p {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.68);
  max-width: 620px;
  margin-top: 0;
  margin-bottom: 1.5em;
}

.about-copy p strong {
  color: var(--white);
  font-weight: 500;
}

/* About Section Tabs */
.about-tabs {
  display: flex;
  gap: 32px;
  margin: 30px 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0;
}

.about-tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0 0 14px 0;
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-tab-btn .tab-num {
  color: var(--copper);
  font-size: 10px;
}

.about-tab-btn:hover {
  color: var(--white);
}

.about-tab-btn::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background-color 0.25s ease;
}

.about-tab-btn.active {
  color: var(--white);
  font-weight: 500;
}

.about-tab-btn.active::after {
  background: var(--copper-light);
}

.about-tab-panels {
  position: relative;
  min-height: 220px;
}

.about-tab-panel {
  display: none;
  animation: tabFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.about-tab-panel.active {
  display: block;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Statement Banner */
.statement {
  background: #191714;
  color: var(--white);
  padding: 110px 0;
}

.statement-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 100px;
  align-items: end;
}

.statement blockquote {
  font-family: var(--serif);
  font-size: clamp(38px, 4.8vw, 72px);
  line-height: 1.04;
  margin: 0;
  font-weight: 400;
}

.statement blockquote span {
  color: var(--copper-light);
}

.statement p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
}

/* 03: Inversión / Oportunidades */
.opportunity {
  padding: 140px 0;
  background: #f7f5f0;
}

.opp-head {
  display: grid;
  grid-template-columns: 0.65fr 2fr;
  gap: 80px;
}

.opp-tags {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 75px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.opp-tag {
  padding: 32px 20px 34px 0;
  border-right: 1px solid var(--line-dark);
  font-family: var(--serif);
  font-size: 26px;
}

.opp-tag:last-child {
  border-right: 0;
}

.opp-tag small {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--copper);
  margin-bottom: 15px;
}

/* Metrics Section */
.metrics {
  background: var(--ink);
  color: var(--white);
  padding: 0;
}

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

.metric {
  padding: 60px 36px 58px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.metric:last-child {
  border: 0;
}

.metric strong {
  font-family: var(--serif);
  font-size: 84px;
  font-weight: 400;
  line-height: 0.85;
  color: var(--copper-light);
  display: block;
  height: 80px;
  margin-bottom: 24px;
}

.metric > div {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.metric .bar {
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 0 22px 0;
  position: relative;
}

.metric .bar::before {
  content: "";
  height: 1px;
  background: var(--copper-light);
  position: absolute;
  left: 0;
  top: 0;
  width: var(--scroll-width, 0%);
  transition: width 0.12s ease-out;
}

.metric.is-visible .bar::before {
  width: var(--scroll-width, var(--p, 0%));
}

.metric h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  margin: 0 0 10px;
}

.metric p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* 04: Contacto */
.contact {
  background: #d9d0c2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 760px;
}

.contact-copy {
  padding: 110px 7vw 95px max(32px, calc((100vw - 1240px) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-copy p {
  font-size: 14px;
  line-height: 1.8;
  color: #57524d;
  max-width: 470px;
}

.contact-meta {
  display: grid;
  gap: 10px;
  margin-top: 34px;
  font-size: 14px;
}

.contact-meta a {
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s ease;
}

.contact-meta a:hover {
  color: var(--copper-dark);
}

.contact-image {
  position: relative;
  background-image: linear-gradient(90deg, rgba(20, 18, 16, 0.2), rgba(20, 18, 16, 0.35)),
                    url('../images/madrid-skyline-opt.jpg');
  background-size: cover;
  background-position: center;
}

.form-card {
  position: absolute;
  background: rgba(244, 240, 233, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  width: min(520px, 84%);
  left: -80px;
  bottom: 70px;
  padding: 38px 42px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.form-card label {
  display: block;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.18em;
  margin-top: 18px;
  color: #6e6962;
}

.form-card input,
.form-card textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(11, 11, 11, 0.25);
  padding: 10px 0 12px;
  background: transparent;
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-card input:focus,
.form-card textarea:focus {
  border-bottom-color: var(--copper);
}

.form-card textarea {
  min-height: 84px;
  resize: none;
}

.form-footer {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.send-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0 0 7px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: var(--transition-smooth);
  width: fit-content;
}

.send-btn:hover:not(:disabled) {
  color: var(--copper);
  border-bottom-color: var(--copper);
}

.send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-spinner {
  display: none;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(11, 11, 11, 0.2);
  border-top-color: var(--copper);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.send-btn.loading .btn-spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-error-msg {
  font-size: 12px;
  color: #a83232;
  line-height: 1.5;
  background: rgba(168, 50, 50, 0.08);
  padding: 8px 12px;
  border-left: 2px solid #a83232;
  border-radius: 2px;
  animation: fadeIn 0.3s ease;
}

/* Success State Presentation */
.form-success-state {
  padding: 10px 0;
  text-align: left;
  animation: fadeIn 0.45s ease forwards;
}

.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(198, 162, 127, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.form-success-state h3 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  margin: 0 0 14px 0;
  line-height: 1.15;
  color: var(--ink);
}

.form-success-state p {
  font-size: 14px;
  line-height: 1.8;
  color: #57524d;
  margin: 0 0 28px 0;
}

.reset-form-btn {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--copper);
  color: var(--copper);
  font-family: inherit;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0 0 6px 0;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.reset-form-btn:hover {
  color: var(--copper-dark);
  border-bottom-color: var(--copper-dark);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.send-btn:hover {
  color: var(--copper);
  border-bottom-color: var(--copper);
}

/* Footer */
footer {
  background: #080808;
  color: var(--white);
  padding: 60px 0;
}

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

.footer-note {
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.footer-right {
  text-align: right;
  font-size: 10px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .wrap, .nav {
    width: min(100% - 40px, 1240px);
  }

  .mobile-toggle {
    display: block;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #111111;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 36px;
    gap: 28px;
    transition: right 0.35s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
  }

  .menu.open {
    right: 0;
  }

  .menu a {
    font-size: 13px;
  }

  .menu .language {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 18px;
    width: 100%;
  }

  .hero-bottom,
  .intro-grid,
  .opp-head,
  .statement-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-link {
    justify-self: start;
  }

  .services,
  .metrics-grid,
  .opp-tags {
    grid-template-columns: 1fr 1fr;
  }

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

  .about-image {
    min-height: 480px;
  }

  .form-card {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 40px auto;
    width: calc(100% - 40px);
  }

  .contact-image {
    min-height: 600px;
    display: flex;
    align-items: center;
  }

  .contact-copy {
    padding: 90px 20px 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .footer-note {
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }
}

@media (max-width: 640px) {
  header {
    height: 84px;
  }

  .logo-img {
    height: 40px;
  }

  .hero {
    min-height: 680px;
  }

  .hero .wrap {
    padding-bottom: 50px;
  }

  .hero h1 {
    font-size: clamp(44px, 12vw, 68px);
  }

  .intro, .opportunity {
    padding: 90px 0;
  }

  .services,
  .metrics-grid,
  .opp-tags {
    grid-template-columns: 1fr;
  }

  .service {
    border-right: 0;
    border-bottom: 1px solid rgba(11, 11, 11, 0.14);
    margin-right: 0;
    min-height: 260px;
    padding-bottom: 40px;
  }

  .service h3 {
    margin: 40px 0 16px;
  }

  .about-copy {
    padding: 70px 20px;
  }

  .about-image {
    min-height: 380px;
  }

  .metric {
    min-height: 240px;
    padding: 40px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .metric strong {
    font-size: 64px;
  }

  .form-card {
    width: calc(100% - 24px);
    padding: 28px 20px;
  }

  .contact-image {
    min-height: auto;
    padding: 40px 0;
  }

  .side-code {
    display: none;
  }
}

/* ==========================================================================
   Editorial Motion & Scroll Reveal Animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Stagger Delays */
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

/* Subtle Hero Title Fade In */
.hero h1 {
  animation: heroTitleFade 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero .kicker {
  animation: heroKickerFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-bottom {
  animation: heroBottomFade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes heroKickerFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroTitleFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroBottomFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Respect user accessibility preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .metric .bar::before {
    width: var(--p, 100%) !important;
  }

  .thin-rule,
  .about-copy .accent {
    transform: none !important;
  }
}
