/* Cinematic layer: icons, loader, slideshow hero, processing story.
   Everything here degrades gracefully: without JS the first slide and its text are shown. */

/* ───────── Icons (inline Lucide-style sprite) ───────── */
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn .arr, .link-arrow .arr { width: 1.1em; height: 1.1em; }
.icon-btn .icon { width: 20px; height: 20px; }
.nav-list .icon { width: 1em; height: 1em; transition: transform var(--dur-2) var(--ease-out); }
.has-dropdown.is-open .nav-link .icon { transform: rotate(180deg); }
.nav-toggle .icon:last-child { display: none; }
.nav-toggle[aria-expanded="true"] .icon:first-child { display: none; }
.nav-toggle[aria-expanded="true"] .icon:last-child { display: block; }
.icon-badge { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--border); background: var(--ivory); color: var(--green); transition: background var(--dur-2), color var(--dur-2), border-color var(--dur-2); }
.icon-badge .icon { width: 22px; height: 22px; }
.card-body > .icon-badge { margin-bottom: .5rem; }
.card { position: relative; }
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-3) var(--ease-out); }
.card:focus-within::after { transform: scaleX(1); }
@media (hover: hover) {
  .card:hover::after { transform: scaleX(1); }
  .card:hover .icon-badge { background: var(--green); color: var(--gold); border-color: var(--green); }
}
.contact-list strong { display: inline-flex; align-items: center; gap: .6rem; }
.contact-list strong .icon { color: var(--green-2); }
.site-footer .icon { width: 1em; height: 1em; vertical-align: -.12em; }

/* ───────── Loader ───────── */
.loader { display: none; }
.js.loader-full .loader, .js.loader-quick .loader { display: grid; place-items: center; position: fixed; inset: 0; z-index: 9999; background: var(--green-deep); color: var(--ivory); }
.vt.loader-quick .loader { display: none; }
.loader-inner { display: grid; justify-items: center; gap: 1rem; text-align: center; padding: 1rem; }
.loader-quick .loader-inner { display: none; }
.loader-logo { width: 62px; height: 68px; padding: 5px; background: #fff; opacity: 0; transform: translateY(14px); animation: ld-in 800ms var(--ease-out) 150ms forwards; }
.loader-logo img { width: 100%; height: 100%; object-fit: contain; }
.loader-word { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); letter-spacing: .05em; line-height: 1; opacity: 0; transform: translateY(14px); animation: ld-in 800ms var(--ease-out) 350ms forwards; }
.loader-tag { font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); opacity: 0; transform: translateY(10px); animation: ld-in 800ms var(--ease-out) 650ms forwards; }
.loader-bar { width: min(220px, 60vw); height: 2px; margin-top: .5rem; background: rgba(245,242,233,.18); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; animation: ld-bar 1300ms var(--ease) 300ms forwards; }
.loader-done .loader { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 600ms var(--ease), visibility 0s linear 600ms; }
.loader-quick.loader-done .loader { transition-duration: 350ms, 0s; transition-delay: 0s, 350ms; }
.js .loader { animation: ld-failsafe 1ms linear 4.2s forwards; } /* the loader can never stay stuck */
@keyframes ld-in { to { opacity: 1; transform: none; } }
@keyframes ld-bar { to { transform: scaleX(1); } }
@keyframes ld-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ───────── Slideshow hero ───────── */
.hero { position: relative; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; color: var(--ivory); background: var(--green-deep); }
.hero--home { min-height: min(100vh, 940px); min-height: min(100svh, 940px); }
.hero--page { min-height: clamp(460px, 66vh, 680px); min-height: clamp(460px, 66svh, 680px); }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1000ms var(--ease); }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1800ms var(--ease-out); }
.slide.is-leaving { opacity: 1; z-index: 1; transition: none; }
.slide.is-active { opacity: 1; z-index: 2; }
.slide.is-active img { transform: none; }
.hero-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(10,36,28,.82) 0%, rgba(10,36,28,.5) 55%, rgba(10,36,28,.3) 100%), linear-gradient(180deg, rgba(10,36,28,.6) 0%, rgba(10,36,28,.2) 40%, rgba(10,36,28,.88) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-block: calc(var(--header-h) + 34px + 3rem) 7rem; }
.hero-copy { display: grid; }
.slide-copy { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 350ms var(--ease), visibility 0s linear 350ms; }
.slide-copy.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.hero-title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h1); line-height: 1.03; letter-spacing: -.01em; max-width: 15ch; margin: 0 0 var(--space-3); }
.hero--page .hero-title { font-size: clamp(2.2rem, 1.3rem + 4.4vw, 4.5rem); max-width: 22ch; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .1em; }
.hero-title .line > span { display: inline-block; }
.slide-copy .lead { color: rgba(245,242,233,.9); max-width: 54ch; }
.slide-copy .eyebrow { color: var(--gold); }

/* Entrance — only when JS runs; a CSS failsafe reveals the text even if scripts fail */
.js .slide-copy .line > span { transform: translateY(105%); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + 200ms); }
.js .slide-copy [data-in] { opacity: 0; transform: translateY(18px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + 450ms); }
.js .hero.is-ready .slide-copy.is-active .line > span { transform: none; }
.js .hero.is-ready .slide-copy.is-active [data-in] { opacity: 1; transform: none; }
.js .slide-copy.is-active .line > span, .js .slide-copy.is-active [data-in] { animation: hero-failsafe 1ms linear 5s forwards; }
@keyframes hero-failsafe { to { opacity: 1; transform: none; } }

/* Controls */
.hero-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding-bottom: max(.75rem, env(safe-area-inset-bottom)); }
.hero-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(245,242,233,.22); padding-top: .5rem; }
.hero-left { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.hero-dots { display: flex; list-style: none; margin: 0; padding: 0; }
.hero-dot { position: relative; width: 52px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.hero-dot .track { position: absolute; left: 0; right: 8px; top: 50%; height: 2px; background: rgba(245,242,233,.3); }
.hero-dot i { position: absolute; left: 0; right: 8px; top: 50%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero-dot.is-active i { transform: scaleX(1); }
.is-running .hero-dot.is-active i { animation: dotfill var(--slide-ms, 7000ms) linear; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-count { font-size: var(--fs-xs); letter-spacing: .14em; font-variant-numeric: tabular-nums; color: rgba(245,242,233,.85); white-space: nowrap; }
.hero-count b { color: var(--gold); font-weight: 700; }
.hero-ctrls { display: flex; gap: .5rem; }
.hero-ctrls .icon-btn { width: 44px; height: 44px; color: var(--ivory); border-color: rgba(245,242,233,.5); }
.hero-toggle .i-play { display: none; }
.hero-toggle[aria-pressed="true"] .i-play { display: inline-grid; }
.hero-toggle[aria-pressed="true"] .i-pause { display: none; }
.hero-toggle span { display: inline-grid; }
.no-js .hero-bar { display: none; }
.no-js .hero-inner { padding-top: 3rem; }

/* ───────── Processing story ───────── */
.intro-band { position: relative; min-height: clamp(420px, 70vh, 720px); min-height: clamp(420px, 70svh, 720px); display: flex; align-items: center; color: var(--ivory); overflow: hidden; background: var(--green-deep); }
.intro-band .bg { position: absolute; inset: 0; }
.intro-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.intro-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,36,28,.9), rgba(10,36,28,.45)); }
.intro-band .container { position: relative; z-index: 1; padding-block: var(--space-5); }
.intro-band h2 { max-width: 16ch; }
.intro-band .lead { color: rgba(245,242,233,.88); }
.journey { --p: 0; list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: var(--space-4); }
.no-js .journey, .journey.is-static { --p: 1; }
.journey::before, .journey::after { content: ""; position: absolute; top: 0; bottom: 0; left: .75rem; width: 1px; }
.journey::before { background: var(--border); }
.journey::after { background: var(--gold); transform: scaleY(var(--p)); transform-origin: top; }
.stage { position: relative; display: grid; gap: 1.25rem; padding-left: 2.75rem; }
.stage::before { content: ""; position: absolute; left: .75rem; top: .75rem; width: 11px; height: 11px; margin-left: -5px; background: var(--gold); transform: rotate(45deg); z-index: 1; }
.stage-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.stage-num { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 4vw, 5rem); line-height: 1; color: var(--gold); }
.stage-media { aspect-ratio: 4 / 3; }
.stage-text h3 { margin-bottom: .5rem; }
.stage-text p { color: var(--text-2); }
@media (min-width: 960px) {
  .journey::before, .journey::after { left: 50%; }
  .stage { grid-template-columns: 1fr 1fr; gap: var(--space-5); padding-left: 0; align-items: center; }
  .stage::before { left: 50%; margin-left: -6px; top: 50%; }
  .stage:nth-child(even) .stage-media { order: 2; }
}
@media (max-width: 559px) {
  .hero-inner { padding-bottom: 6.5rem; }
  .hero-count { display: none; }
  .hero-dot { width: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .loader { display: none !important; }
  .journey { --p: 1; }
}
