/* ============================================================
   Homepage hook v8: masthead name, Fig. 01, the network, the answer, and a plain "Projects" button. No pinning.
   Name top left, Fig. 01 top right, the network in the middle, the
   statement bottom left and the network's answer (a project, linked)
   as the headline bottom right. Native scrolling.
   (Earlier heroes: backup/hero-life, hook-nn4, hook-tower5, hook-nn6pre.)
   ============================================================ */
.hook { --fs: clamp(56px, min(9.4vw, 17svh), 170px); --top: calc(var(--nav) + clamp(14px, 3.4vh, 44px)); --bot: clamp(26px, 5.5vh, 64px);
  position: relative; height: 100svh; min-height: 600px; background: #000; }
:root[data-theme="light"] .hook { background: #fff; }
.hook__pin { position: relative; height: 100%; overflow: hidden; }
.hook__cv { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.8s cubic-bezier(.33, 0, .2, 1); }
.hook.has-model .hook__cv { opacity: 1; }

/* masked lines: an outer span leaves on scroll, an inner one arrives on load */
.hook .ln { display: block; overflow: hidden; }
.hook .ln > span { display: block; transition: transform 1.3s cubic-bezier(.19, 1, .22, 1); transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 120ms); }
.hk .hook:not(.is-in) .ln > span { transform: translate3d(0, 115%, 0); }
.hk3 .ln > span > span { display: block; white-space: nowrap; transition: transform 1.3s cubic-bezier(.19, 1, .22, 1); transition-delay: calc(var(--d) + var(--i, 0) * 110ms); }
.hook .hk3 .ln > span { transition: none; }
.hk .hook:not(.is-in) .hk3 .ln > span { transform: none; }
.hk .hook:not(.is-in) .hk3 .ln > span > span { transform: translate3d(0, 115%, 0); }

/* the name: a masthead, fitted edge to edge by hook.js, revealed by a scan line like the network's input */
.hook__t { position: absolute; z-index: 2; left: calc(var(--pad) - .04em); top: var(--top); margin: 0; font: 500 var(--fs) / .84 var(--sans); letter-spacing: -.058em; white-space: nowrap; pointer-events: none;
  clip-path: inset(-30% -2% -30% 0); transition: clip-path 1.5s cubic-bezier(.65, 0, .25, 1) .15s; }
.hook__t .ln { display: inline-block; vertical-align: top; padding: .06em .04em .14em; margin: -.06em -.04em -.14em; will-change: transform; }
.hook .hook__t .ln > span { transition: none; }
.hk .hook:not(.is-in) .hook__t .ln > span { transform: none; }
.hk .hook:not(.is-in) .hook__t { clip-path: inset(-30% 102% -30% 0); }
.hook__t::after { content: ""; position: absolute; top: -.04em; bottom: .02em; left: 0; width: 2px; background: var(--acc); opacity: 0; transform: translateX(0); }
.hk .hook.is-in .hook__t::after { animation: hk-scan 1.5s cubic-bezier(.65, 0, .25, 1) .15s both; }
@keyframes hk-scan { 0% { left: 0; opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.hook__kick { --d: 900ms; position: absolute; z-index: 2; left: var(--pad); top: calc(var(--top) + var(--fs) * .84 + 26px); margin: 0; color: var(--ink-3); font-size: 10px; line-height: 2.05; pointer-events: none; }

/* Fig. 01, top right */
.hook__fig { --d: 1000ms; position: absolute; z-index: 2; right: var(--pad); top: calc(var(--top) + var(--fs) * .84 + 26px); margin: 0; text-align: right; color: var(--ink-3); font-size: 10px; line-height: 2.05; pointer-events: none; }
.hook__fig b { font-weight: 400; color: var(--acc); }

/* the statement, bottom left */
.hook__sub { --d: 420ms; position: absolute; z-index: 2; left: var(--pad); bottom: var(--bot); width: min(340px, 30vw); margin: 0; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.5; color: var(--ink-2); pointer-events: none; }
.hook__sub .w { white-space: nowrap; }

/* the network's answer, bottom right: a project, linked */
.hook__out { position: absolute; z-index: 3; right: var(--pad); bottom: calc(var(--bot) - 4px); display: flex; flex-direction: column; align-items: flex-end; text-align: right; max-width: 52vw;
  color: var(--ink); text-decoration: none; will-change: transform; transition: opacity 1.2s ease .8s; }
.hk .hook:not(.is-in) .hook__out { opacity: 0; }
.hook__ok { color: var(--ink-3); font-size: 10px; margin-bottom: 12px; }
.hook__ok::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 1px 0; border-radius: 50%; background: var(--acc); animation: hk-blink 1.1s steps(2, end) infinite; }
.hook__out:not(.is-thinking) .hook__ok::before { animation: none; }
@keyframes hk-blink { 50% { opacity: .15; } }
.hook__ans-w { display: block; font-size: clamp(34px, 4.7vw, 86px); overflow: hidden; padding: .08em .06em .3em; margin: -.08em -.06em -.3em; }
.hook__ans { display: block; font: 500 1em / .95 var(--sans); letter-spacing: -.045em; white-space: nowrap; transition: opacity .5s, color .35s; }
.hook__out:hover .hook__ans, .hook__out:focus-visible .hook__ans { color: var(--acc); }
.hook__meta { color: var(--ink-3); font-size: 10px; margin-top: 14px; }
.hook__meta u { text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--acc); padding-bottom: 3px; }

/* network labels, pinned to their units by hook.js */
.hook__lb { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hook__lb > span, .hook__lb > a { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; }
.hook__ll b { font-weight: 400; color: var(--acc); margin-right: 4px; }
.hook__lo { color: var(--ink-3); text-decoration: none; pointer-events: auto; transition: color .4s; font-size: 11px; letter-spacing: .08em; } .hook__lo:hover { color: var(--ink); }
.hook__lb.off .hook__lo { pointer-events: none; }
.hook__lo i { font-style: normal; color: var(--ink-4); margin-left: 4px; font-variant-numeric: tabular-nums; }
.hook__lo.on { color: var(--ink); } .hook__lo.on i { color: var(--acc); }
.hook__lo s { display: inline-block; vertical-align: middle; margin-left: 10px; width: 48px; height: 1px; background: var(--ink-3); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease), background .4s; }
.hook__lo.on s { background: var(--acc); height: 2px; }

/* a plain button to the work, above the statement */
.hook__go { --d: 0ms; position: absolute; z-index: 3; left: var(--pad); bottom: calc(var(--bot) + 84px); display: inline-flex; align-items: center; gap: 12px; padding: 13px 20px 13px 22px;
  border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 400; text-decoration: none; transition: background .3s, color .3s, border-color .3s, opacity 1s ease 1s; }
.hook__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; animation: hk-nudge 2.2s ease-in-out infinite; }
@keyframes hk-nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.hook__go:hover, .hook__go:focus-visible { background: var(--acc); border-color: var(--acc); color: #fff; }
.hk .hook:not(.is-in) .hook__go { opacity: 0; }

@media (max-width: 1100px) { .hook__fig { display: none; } }
@media (max-width: 760px) {
  .hook { --fs: clamp(52px, 21vw, 120px); --bot: 22px; min-height: 640px; }
  .hook__t { white-space: normal; }
  .hook__t .ln { display: block; width: max-content; }
  .hook__kick { top: calc(var(--top) + var(--fs) * 1.68 + 18px); font-size: 9.5px; letter-spacing: .16em; }
  .hook__lb { display: none; }
  .hook__go { left: var(--pad); right: var(--pad); bottom: var(--bot); justify-content: center; }
  .hook__out { right: auto; left: var(--pad); bottom: calc(var(--bot) + 166px); align-items: flex-start; text-align: left; max-width: calc(100% - 2 * var(--pad)); }
  .hook__ans-w { font-size: clamp(28px, 8.6vw, 44px); }
  .hook__sub { width: auto; right: var(--pad); bottom: calc(var(--bot) + 70px); font-size: 15px; }
  .hook__sub .w, .hook__sub .ln > span > span { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .hook .ln > span, .hk3 .ln > span > span { transition: none; }
  
}
