/* Hawk Shelter — motion layer. Everything under .motion is switched off for
   visitors who prefer reduced motion, and if motion.js fails to load. */

/* ---- hero: type first, then the cutaway opens to full width ---- */
.hero { padding: 56px 0 0; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px 64px; align-items: end; max-width: 1320px; }
.hero h1 { font-size: clamp(2.2rem, 5.3vw, 4.7rem); line-height: 1.08; letter-spacing: -.028em; margin: 0; }
.hero .lead { margin: 0; }
.hero .cta { margin-top: 26px; }
.hero-fig { grid-column: 1 / -1; margin: 8px 0 0; }
/* never wider than the source picture (1190 px), so it stays crisp */
.hero-fig { width: 100%; max-width: 1190px; justify-self: center; }
.hero-frame { aspect-ratio: 1190 / 788; overflow: hidden; position: relative; background: #000; }
.hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-fig figcaption { border: 0; text-align: right; }
.motion .hero-frame { clip-path: inset(0 calc((1 - var(--p, 0)) * 11%)); }
/* no zoom on this picture: enlarging it would soften it */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-frame { aspect-ratio: 4 / 3; }
}

/* ---- intro curtain (first visit) and page transitions ---- */
.curtain { position: fixed; inset: 0; z-index: 90; background: #000; display: none; place-items: center; pointer-events: none; }
.curtain img { height: min(34vh, 280px); width: auto; }
.curtain::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.motion .curtain.intro { display: grid; animation: lift .8s 1.25s cubic-bezier(.76, 0, .24, 1) forwards; }
.motion .curtain.intro img { animation: logo-in .9s .1s cubic-bezier(.2, .7, .2, 1) both; }
.motion .curtain.intro::after { animation: line 1.15s .1s cubic-bezier(.65, 0, .35, 1) forwards; }
.motion .curtain.go { display: grid; pointer-events: auto; animation: cover .42s cubic-bezier(.76, 0, .24, 1) both; }
.motion .curtain.out { display: grid; animation: lift .6s cubic-bezier(.76, 0, .24, 1) both; }
.motion .curtain.go img, .motion .curtain.out img { height: min(20vh, 150px); }
@keyframes lift { from { transform: translateY(0); } to { transform: translateY(-101%); visibility: hidden; } }
@keyframes cover { from { transform: translateY(101%); } to { transform: translateY(0); } }
@keyframes logo-in { from { opacity: 0; transform: translateY(22px); clip-path: inset(100% 0 0 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes line { to { transform: scaleX(1); } }

/* ---- header ---- */
:root { --stuck: 77px; }  /* height of the shrunken sticky header */
.hd .wrap, .brand img { transition: min-height .35s, height .35s; }
.hd.small .wrap { min-height: 76px; }
.hd.small .brand img { height: 66px; }
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 60; background: var(--gold-hi); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* ---- reveals ---- */
.motion .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .04em .14em; margin: -.1em -.04em -.14em; }
.motion .wi { display: inline-block; transform: translateY(125%); transition: transform .95s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i) * 45ms); }
.motion .words.in .wi { transform: none; }
.motion .fade { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0ms); }
.motion .fade.in { opacity: 1; transform: none; }
.motion .unveil img { clip-path: inset(100% 0 0 0); transform: scale(1.22); transition: clip-path 1.15s cubic-bezier(.76, 0, .24, 1), transform 1.6s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0ms); }
.motion .unveil.in img { clip-path: inset(0 0 0 0); transform: none; }
.motion .unveil figcaption { opacity: 0; transition: opacity .5s ease calc(var(--d, 0ms) + .7s); }
.motion .unveil.in figcaption { opacity: 1; }
.motion .unveil.done img { transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.gal figure img, .card .pic img { transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
@media (hover: hover) {
  .gal figure:not(.fit):hover img, .motion .gal .unveil.done:not(.fit):hover img { transform: scale(1.06); }
  .card.hov:hover .pic img { transform: scale(1.05); }
}
.card .pic, .shot { overflow: hidden; }
.head { border-top: 0; position: relative; }
.head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line2); transform-origin: left; }
.motion .head::before { transform: scaleX(0); transition: transform 1.3s cubic-bezier(.76, 0, .24, 1); }
.motion .head.in::before { transform: none; }

/* buttons: gold fill wipes up on hover */
.btn.ghost { position: relative; overflow: hidden; isolation: isolate; }
.btn.ghost::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold); transform: scaleY(0); transform-origin: bottom; transition: transform .35s cubic-bezier(.76, 0, .24, 1); }
.btn.ghost:hover { color: #0d0a04; border-color: var(--gold); }
.btn.ghost:hover::before { transform: scaleY(1); }
.btn { transition: background-color .25s, border-color .25s, color .25s, transform .35s cubic-bezier(.16, 1, .3, 1); }

/* ---- large statement that lights up word by word ---- */
.manifesto .head { grid-template-columns: minmax(0, 1fr); gap: 34px; }
.manifesto .head h2 { font-size: clamp(2.1rem, 6.2vw, 5.4rem); line-height: 1.1; letter-spacing: -.028em; max-width: 15ch; }
.manifesto .head p { max-width: 56ch; font-size: 1.15rem; justify-self: end; }
.motion .lit { opacity: .14; transition: opacity .25s linear; }
.motion .lit.on { opacity: 1; }

/* ---- running band of threats ---- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; white-space: nowrap; user-select: none; }
.marquee div { display: inline-flex; will-change: transform; }
.marquee span { font: 600 clamp(2.4rem, 6.5vw, 5.6rem)/1.1 var(--f-head); text-transform: uppercase; letter-spacing: -.01em; padding-right: .5em; color: var(--gold); }
.marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--gold-lo); }

/* ---- factory: sideways gallery ---- */
.gal.rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal.rail::-webkit-scrollbar { display: none; }
.gal.rail figure { flex: 0 0 auto; width: auto; height: min(54svh, 520px); min-height: 0; aspect-ratio: 4 / 3; scroll-snap-align: start; }
.gal.rail figure.w3, .gal.rail figure:nth-child(2) { aspect-ratio: 3 / 4; }
.gal.rail figure.w8 { aspect-ratio: 3 / 2; }
@media (max-width: 960px) { .gal.rail figure { height: auto; width: 82vw; aspect-ratio: 4 / 3; } .gal.rail figure:nth-child(2) { aspect-ratio: 4 / 3; } }
.motion .pinned { padding: 0; }
.motion .pinned .pin { position: sticky; top: var(--stuck); height: calc(100svh - var(--stuck)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.motion .pinned .head { margin-bottom: 28px; }
@media (max-height: 760px) { .motion .pinned .gal.rail figure { height: 46svh; } .motion .pinned .head { margin-bottom: 18px; padding-top: 18px; } }
.motion .pinned .gal.rail { overflow: visible; scroll-snap-type: none; width: max-content; transform: translate3d(var(--x, 0), 0, 0); will-change: transform; }
.motion .pinned .cta { margin-top: 24px; }
.railbar { display: none; height: 1px; background: var(--line); margin-top: 24px; }
.railbar i { display: block; height: 1px; background: var(--gold-hi); transform: scaleX(var(--p, 0)); transform-origin: left; }
.motion .pinned .railbar { display: block; }

/* ---- entrance: the hatch opens as you scroll ---- */
.motion .scrub { height: 260svh; padding: 0; }
.motion .scrub .pin { position: sticky; top: var(--stuck); height: calc(100svh - var(--stuck)); display: flex; align-items: center; }
.motion .scrub .hatch { max-width: min(480px, calc((100svh - 280px) * .75)); }
.motion .scrub .hatch-stage img { transition: none; }
.motion .scrub .hatch-stage img.open { opacity: 1; clip-path: inset(calc((1 - var(--p, 0)) * 100%) 0 0 0); transform: scale(calc(1.12 - var(--p, 0) * .12)); }
.motion .scrub .hatch-stage::after { content: ""; position: absolute; left: 0; right: 0; top: calc((1 - var(--p, 0)) * 100%); height: 2px; background: var(--gold-hi); opacity: var(--edge, 0); }
.meter { display: none; align-items: center; gap: 14px; margin-top: 34px; font: 600 .85rem var(--f-head); color: var(--gold); }
.meter i { flex: 0 0 180px; height: 1px; background: var(--line2); }
.meter i::after { content: ""; display: block; height: 1px; background: var(--gold-hi); transform: scaleX(var(--p, 0)); transform-origin: left; }
.motion .scrub .meter { display: flex; }
@media (max-width: 960px) {
  .motion .scrub .pin { align-items: flex-start; padding-top: 18px; }
  .motion .scrub .split { gap: 18px; }
  .motion .scrub .split > div:first-child p, .motion .scrub .split > div:first-child .cta, .motion .scrub .kicker, .motion .scrub .meter, .motion .scrub .hatch .note { display: none; }
  .motion .scrub h2 { margin: 0; font-size: 1.4rem; }
  .motion .scrub .hatch { max-width: min(100%, calc((100svh - 330px) * .75)); }
}

/* ---- interior band + closing headline ---- */
.motion .band > img { transform: translate3d(0, var(--y, 0), 0) scale(1.18); will-change: transform; }
.band { min-height: 82svh; }

/* ---- cursor label over gallery images ---- */
.cursor { position: fixed; left: 0; top: 0; z-index: 70; width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%; background: var(--gold); color: #0d0a04; display: grid; place-items: center; font: 600 .72rem var(--f-head); pointer-events: none; scale: 0; transition: scale .35s cubic-bezier(.16, 1, .3, 1); }
.cursor.on { scale: 1; }
@media (hover: hover) and (pointer: fine) { .motion .zoom { cursor: none; } }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* image viewer opens with a soft zoom */
.motion dialog.lb[open] figure img { animation: pop .5s cubic-bezier(.16, 1, .3, 1); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

@media print { .curtain, .progress, .cursor, .marquee { display: none !important; } }
