/* Home, horizontal strip (home.js): the strip rules apply only when html.hs-on (wide screen, mouse) */
.hs-spacer { position: relative; }
html.hs-on #top { min-height: 0 !important; overflow: visible !important; }
html.hs-on .hs-stage { position: sticky; overflow: hidden; }
html.hs-on .hs-stage > section { height: auto !important; }
html.hs-on .hero-title { transform-origin: 0 0; will-change: transform; }
html.hs-on .hero-photo { will-change: opacity; }
html.hs-on .hs-row { will-change: transform; }
html.hs-on #work { height: auto !important; padding: 0 0 12px !important; }
/* the title's word-by-word light-up follows page scroll, which here drives the strip instead: keep the summary grey */
html.hs-on .hero-title .tb-w { color: #8b8984 !important; }

/* facts: only the email is kept, on the right of the "Selected work" row */
html.hs-on .hs-stage .hs-facts { display: none !important; }
.hs-mail { display: none; }
html.hs-on #work { justify-content: space-between; }
html.hs-on #work .hs-mail { display: inline; font-size: var(--fs-body); color: #f1efe9; text-decoration: underline;
  text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

/* the grid becomes one row */
html.hs-on #work + div { display: flex !important; flex-wrap: nowrap; align-items: flex-start; gap: 14px !important;
  width: max-content; margin: 0 20px !important; will-change: transform; }
html.hs-on #work + div > * { flex: none; width: var(--hs-card); }
html.hs-on #work + div > :not(.hs-contact) { will-change: transform; }
html.hs-on [data-rv] { opacity: 1 !important; transform: none; }
/* contact as the last card, two columns wide: the email, socials and location under it */
.hs-contact { display: none; }
html.hs-on .hs-contact { display: flex; flex-direction: column; align-items: flex-start;
  width: calc(var(--hs-card) * 2 + 14px) !important; box-sizing: border-box; }
.hs-contact .hs-label { font-size: var(--fs-label); line-height: var(--lh-label); letter-spacing: var(--ls-label);
  text-transform: uppercase; color: #8b8984; margin-bottom: 24px; }
/* socials, then Based in under them, one card column wide */
html.hs-on .hs-contact .hs-contact-info { width: var(--hs-card); display: grid; gap: 36px; margin-top: 56px; }
/* low window: Based in beside the socials, two card columns */
html.hs-on .hs-tight .hs-contact .hs-contact-info { width: 100%; grid-template-columns: 1fr 1fr; column-gap: 14px; align-items: start; }

/* bottom bar: the footer, the header's height, its line full width like the header's */
html.hs-on .hs-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0 !important;
  height: max(48px, 2.7778vw) !important; padding: 0 20px; border-top: 1px solid #272624 !important;
  background: #080808; }
html.hs-on #contact, html.hs-on .hs-gap { display: none !important; }

/* bottom bar: Skills on the left (columns 1–3), © moves to column 4 */
.hs-skills { display: none; }
html.hs-on .hs-bar > .hs-skills { display: block; position: static; grid-column: 1 / span 3; grid-row: 1; justify-self: start; }
html.hs-on .hs-bar > span:first-of-type { grid-column: 4 / span 3 !important; }
.hs-skills button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: #f1efe9;
  font-size: var(--fs-small); line-height: var(--lh-ui); }
.hs-skills button svg { transition: transform .3s cubic-bezier(.2,.7,.1,1); }
.hs-skills.open button svg { transform: rotate(-90deg); }
.hs-skills button:focus-visible { outline: 1px solid #f1efe9; outline-offset: 4px; }
/* the menu opens upward from the bar: footer type, rows split by the site's line */
.hs-skills ul { position: absolute; left: 20px; bottom: calc(100% + 14px);   /* from the bar's line, not the button */
  margin: 0; padding: 4px 16px;
  width: calc(var(--hs-col12) * 3 + 28px); box-sizing: border-box; list-style: none; background: #080808;
  border: 1px solid #272624; border-radius: 8px; font-size: var(--fs-small); line-height: var(--lh-ui); color: #f1efe9;
  animation: hs-pop .3s cubic-bezier(.2,.7,.1,1); }
.hs-skills li { padding: 10px 0; }
.hs-skills li + li { border-top: 1px solid #272624; }
@keyframes hs-pop { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .hs-skills ul { animation: none; } }
html.hs-on .hs-bar > * { white-space: nowrap; }
/* title one weight up (400 → 500) */
#top .hero-title h1, #top .hero-title p { font-weight: 500 !important; }
/* portrait: higher and a little to the left, its top just under the header, over "Dudnyk" */
html.hs-on #top .hero-photo { left: calc(24.4vw + 20px) !important; top: calc(clamp(96px, 7.42vw, 190px) - 12.78vw) !important; }
.hs-skills button:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
/* hover as every other link: grey (the underline comes from responsive.css) */
html.hs-on #work .hs-mail:hover, .hs-skills button:hover { color: #8b8984; }
