@import url("hero-image-scale.css");

/* Final homepage polish: editorial sketches, mobile-first spacing, and footer alignment */

.homepage-hero-reworked { position: relative; isolation: isolate; min-height: clamp(650px, 82vh, 880px); }
.homepage-hero-reworked .hero-copy { position: relative; z-index: 2; }
.homepage-hero-reworked .hero-sketch-picture { min-height: 430px; background-size: contain; filter: drop-shadow(0 18px 34px rgba(0,0,0,.12)); }
.homepage-vision-image { display: block; width: 100%; max-width: 720px; height: auto; margin-inline: auto; opacity: .98; transform: translateY(18px); transition: opacity 1s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.homepage-hero-reworked .hero-sketch-picture.is-visible .homepage-vision-image { opacity: 1; transform: translateY(0); }

.approach-section .button { margin-top: 6px; }
.approach-step::before { background: transparent; }
.approach-step.is-highlighted::before { animation: approachIconGlow 1.1s ease both; }
@keyframes approachIconGlow { 0% { box-shadow: 0 0 0 0 rgba(212,173,104,0); } 45% { box-shadow: 0 0 0 9px rgba(212,173,104,.08),0 0 34px rgba(212,173,104,.2); } 100% { box-shadow: 0 0 0 5px rgba(212,173,104,.035),0 0 20px rgba(212,173,104,.08); } }

.tool-card { position: relative; overflow: hidden; transition: border-color .35s ease, background .35s ease, transform .35s ease; }
.tool-card::after { content: ""; position: absolute; inset: auto 18px 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.tool-card:hover,.tool-card:focus-visible { transform: translateY(-5px); border-color: rgba(212,173,104,.72); background: linear-gradient(180deg,rgba(212,173,104,.07),rgba(255,255,255,.015)); }
.tool-card:hover::after,.tool-card:focus-visible::after { transform: scaleX(1); }
.tool-card:hover .tool-icon,.tool-card:focus-visible .tool-icon { color: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 8px rgba(212,173,104,.04),0 0 30px rgba(212,173,104,.12); transform: translateY(-3px); }
.tool-icon { transition: color .35s ease,border-color .35s ease,box-shadow .35s ease,transform .35s ease; }

.future-callout { min-height: clamp(600px,76vh,820px); padding-top: clamp(72px,8vw,120px); padding-bottom: clamp(72px,8vw,120px); }
.future-callout-art { background-size: min(100%,520px); filter: drop-shadow(0 18px 34px rgba(0,0,0,.14)); }
.future-callout-art.is-visible { animation: phoneLift 1.2s cubic-bezier(.2,.7,.2,1) both; }
.future-actions { align-items: stretch; }
.future-actions .button { min-width: 210px; }

footer { width: min(100% - 40px,1240px); margin-inline: auto; padding: 58px 0 30px; display: grid; grid-template-columns: minmax(220px,1.15fr) minmax(220px,1.35fr) minmax(120px,.65fr); gap: 42px 58px; align-items: start; }
.footer-brand { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-brand .brand { line-height: .92; }
.footer-brand p { max-width: 250px; margin: 0; line-height: 1.65; }
.footer-links { min-width: 0; display: flex; flex-wrap: wrap; align-content: flex-start; align-items: flex-start; gap: 12px 24px; line-height: 1.5; }
.footer-links a { white-space: nowrap; }
.footer-bottom { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px; align-items: start; padding-top: 24px; border-top: 1px solid var(--rule); }
.footer-bottom small { max-width: 520px; line-height: 1.65; }
.footer-bottom em { max-width: 110px; line-height: 1.5; }

@media (max-width:980px) {
  .homepage-hero-reworked { min-height: auto; }
  .homepage-hero-reworked .hero-sketch-picture { min-height: 360px; }
  .homepage-vision-image { max-width: 620px; }
  .future-callout { grid-template-columns: 1fr; }
  .future-callout-art { width: min(100%,460px); margin: -10px auto 0; }
  footer { grid-template-columns: 1fr 1fr; gap: 34px 42px; }
  .footer-links:last-of-type { justify-content: flex-start; }
}

@media (max-width:640px) {
  .homepage-hero-reworked { padding-top: 54px; }
  .homepage-hero-reworked .hero-sketch-picture { min-height: 300px; margin-top: -10px; }
  .homepage-vision-image { width: 112%; max-width: none; margin-left: -6%; }
  .approach-section .button { width: 100%; }
  .tool-card { min-height: 0; padding: 28px 24px 32px; }
  .tool-icon { width: 86px; height: 86px; margin-bottom: 24px; }
  .future-callout { min-height: auto; padding-top: 68px; padding-bottom: 64px; }
  .future-callout-copy h2 { font-size: clamp(46px,12vw,70px); }
  .future-callout-art { min-height: 300px; margin-top: 0; }
  .future-actions .button { width: 100%; min-width: 0; }
  footer { width: min(100% - 36px,1240px); grid-template-columns: 1fr; gap: 28px; padding: 44px 0 24px; }
  .footer-links { gap: 10px 18px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 14px; }
  .footer-bottom em { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tool-card,.tool-icon,.approach-step::before,.homepage-vision-image { transition: none; }
  .approach-step.is-highlighted::before { animation: none; }
}
