/*
 * Victor Kong Music — site stylesheet
 * --------------------------------------------------------------
 * Static rebuild (2026-10) of the WordPress theme "Victor Kong" by Simplicitic
 * (itself based on Underscores, GPLv2+). The original rules from style.css,
 * main.css, home.css, projects.css, credits.css, contact.css and the popup
 * part of jquery.fancybox.css are merged here, keeping the original class names
 * so the layout matches the old site. WordPress/plugin-only rules were dropped.
 *
 * Contents
 *   1. Fonts (self-hosted Montserrat)
 *   2. Base / normalize
 *   3. Background, loader
 *   4. Navigation (side bar + slide-in menu)
 *   5. Shared layout (sections, numbered lists)
 *   6. Home
 *   7. Projects
 *   8. Credits
 *   9. Contact
 *  10. Project detail pages (shown inside the lightbox)
 *  11. Lightbox (replaces fancyBox)
 *  12. 404
 *  13. Desktop entrance animations + horizontal scroll (>= 769px)
 *  14. Utilities / accessibility
 */

/* ============================================================
   1. Fonts — Montserrat variable font (SIL OFL 1.1, see /assets/fonts/OFL.txt)
   One file per subset covers every weight used (300–700).
   ============================================================ */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Shared design tokens (values copied from the old theme) */
:root {
  --c-bg: #222222;          /* page / panel background */
  --c-bg-deep: #0a0a0a;     /* behind the noise texture */
  --c-text: #eeeeee;        /* body text */
  --c-muted: #b5b5b5;       /* grey accents, numbers, buttons */
  --c-line: #b5b5b580;      /* 50% grey divider lines */
  --c-menu: #7c7c7c;        /* inactive menu items */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); /* ≈ GSAP Power4.easeOut */
}

/* ============================================================
   2. Base / normalize (subset of normalize.css v8.0.1, MIT)
   ============================================================ */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Thin custom scrollbar (WebKit/Blink), as on the old site */
::-webkit-scrollbar {
  width: 0.3vw;
  height: 0;
  background: var(--c-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--c-line);
  border-radius: 25px;
}

body {
  margin: 0;
  overscroll-behavior: none;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}
main {
  display: block;
  overscroll-behavior: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  clear: both;
}
h1 {
  margin: 0 0 5px;
  font-size: 32px;
  letter-spacing: 2.5px;
  font-weight: 400;
  text-transform: uppercase;
}
h2 {
  letter-spacing: 2px;
}
h3 {
  margin: 0 0 5px;
  letter-spacing: 1.3px;
}
h4 {
  letter-spacing: 1.4px;
  font-size: 20px;
  font-weight: 400;
  line-height: 25px;
}
h5 {
  letter-spacing: 1px;
  font-size: 1.05em;
  line-height: 24px;
  font-weight: 600;
  margin: 5px 0;
}
p {
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 1px;
}
b,
strong {
  font-weight: bolder;
}

ul,
ol {
  margin: 0;
  list-style: none;
}

img {
  border-style: none;
  display: block;
  height: auto;
  max-width: 100%;
}
/* <picture> wraps images for WebP + fallback; keep it out of the inline flow */
picture {
  display: block;
}
iframe {
  max-width: 100%;
}

a {
  color: var(--c-text);
  text-decoration: none;
  background-color: transparent;
}
a:visited,
a:hover,
a:focus,
a:active {
  color: var(--c-text);
}

button {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

/* ============================================================
   3. Background texture + page loader
   ============================================================ */
/* Noise texture used on every page (WordPress "custom background") */
body.custom-background {
  background-color: var(--c-bg-deep);
  background-image: url("/assets/img/bg/background-noise.jpg");
  background-image: image-set(url("/assets/img/bg/background-noise.webp") type("image/webp"), url("/assets/img/bg/background-noise.jpg") type("image/jpeg"));
  background-position: left top;
  background-size: auto;
  background-repeat: repeat;
  background-attachment: scroll;
}
/* Regular pages stretch the texture to the viewport and keep it fixed */
body.page.custom-background {
  background-size: 100vw 100vh;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.home,
.page-template-credits,
.error404 {
  position: relative;
}

/* Full-screen spinner shown until the page has loaded (hidden by site.js) */
.loader-wrapper {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 9999;
  background-color: var(--c-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  transition: opacity 0.5s linear;
}
.loader-wrapper.is-hidden {
  opacity: 0;
  pointer-events: none;
}
/* Without JavaScript nothing would ever hide the loader */
.no-js .loader-wrapper {
  display: none;
}
.loader {
  border: 3px solid #ffffff;
  border-radius: 50%;
  border-top: 3px solid var(--c-muted);
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================================
   4. Navigation — fixed bar (left on desktop, top on mobile)
      + slide-in menu panel
   ============================================================ */
#site-navigation {
  position: fixed;
  background: #00000091;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 99;
  width: 100%;
  height: 60px;
  top: 0;
  left: 0;
}
#masthead .site-branding {
  display: flex;
}
/* Make sure the logo link wraps around the logo image */
.custom-logo-link {
  display: inline-block;
}
/* Site title text is kept for screen readers only (as in the old theme) */
.site-title,
.site-description {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  margin: 0;
}

/* Slide-in menu panel */
.main-navigation {
  display: block;
  position: fixed;
  background: var(--c-bg);
  height: 100vh;
  top: 0;
  left: 0;
  transform: translateX(-100%);
  transition: 0.4s;
}
#site-navigation.toggled .main-navigation {
  transform: translateX(0);
}
.menu-main-menu-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
}
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
}
.main-navigation li {
  transition: 0.5s;
}
.main-navigation li:not(:last-child) {
  margin-bottom: 30px;
}
#primary-menu > li > a {
  padding: 10px 0;
}
.main-navigation li > a {
  font-size: 32px;
  font-weight: normal;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  display: block;
  min-height: 27px;
}
.main-navigation li > a,
.main-navigation .sub-menu li:before {
  line-height: 28px;
  color: var(--c-menu);
  transition: 0.3s;
}
.main-navigation .sub-menu {
  margin-top: 2em;
  margin-left: 2em;
}
.main-navigation .sub-menu li:not(:last-child) {
  margin-bottom: 20px;
}
.main-navigation .sub-menu a {
  font-size: 1.2em;
}
.main-navigation li:hover > a,
.main-navigation li.current_page_item > a,
.main-navigation .sub-menu li:hover:before,
.main-navigation li.current_page_item:before {
  color: #ffffff;
}

/* Hamburger button (three thin lines) */
.menu-toggle {
  background-color: transparent;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  width: 30px;
  height: 1px;
  border-radius: 10px;
  background-color: #cccccc;
  display: block;
  transition: 0.3s;
}
.menu-toggle span:not(:last-child) {
  margin-bottom: 7px;
}
.menu-toggle:hover span {
  background-color: #818a91;
}

/* "X" close button inside the menu panel */
.main-navigation .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  padding: 10px;
  cursor: pointer;
  background: none; /* it is a <button> now; reset UA styles */
  border: 0;
}
.main-navigation .close-btn:before,
.main-navigation .close-btn:after {
  content: "";
  position: absolute;
  left: 0;
  width: 35px;
  height: 1px;
  border-radius: 3px;
  background-color: #ffffff;
  top: 18px;
}
.main-navigation .close-btn:before {
  transform: rotate(45deg);
}
.main-navigation .close-btn:after {
  transform: rotate(-45deg);
}

/* Dark overlay behind the open menu */
.menu-overlay {
  display: none;
  width: 100vw;
  height: 100vh;
  position: fixed;
  background: #11111199;
  left: 0;
  top: 0;
  z-index: -1;
}
.toggled .menu-overlay {
  display: block;
}

@media only screen and (min-width: 769px) {
  #site-navigation {
    height: 100vh;
    width: 60px;
    flex-direction: column;
    justify-content: center;
    border-right: solid 1px var(--c-line);
  }
  #masthead {
    position: fixed;
    top: 10px;
    left: 0;
    width: 60px;
    padding: 0 7px;
  }
  .main-navigation {
    width: 40vw;
  }
  .menu-toggle {
    margin-top: 10vh;
    height: 100vh;
    padding-bottom: 10vh;
  }
}
@media only screen and (max-width: 768px) {
  h1 {
    font-size: 27px;
    letter-spacing: 1px;
  }
  #site-navigation {
    padding: 10px;
    border-bottom: solid 1px var(--c-line);
  }
  #masthead img {
    width: 40px;
  }
  .main-navigation {
    width: 60vw;
  }
}
@media only screen and (max-width: 540px) {
  .main-navigation {
    width: 100vw;
  }
}

/* ============================================================
   5. Shared layout + numbered lists (01, 02, 03 …)
   ============================================================ */
.site-main section {
  position: relative;
}

/* Lists that show a two-digit counter before each item */
.main-navigation .sub-menu,
.post-list,
.credit-list ol {
  counter-reset: item;
  list-style-type: none;
}
.main-navigation .sub-menu li:before,
.post-container > div:before,
.credit-list ol li:before {
  content: counter(item, decimal-leading-zero) " ";
  counter-increment: item;
  position: absolute;
  font-weight: 700;
}
.post-container .fancybox-project,
.main-navigation .sub-menu a {
  margin-left: 35px;
}

@media only screen and (min-width: 769px) {
  .site-main {
    display: flex;
  }
  .site-main section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    padding: 0 8em;
    position: relative;
  }
  /* Page title pinned to the top-left of the first panel */
  .page-template .entry-header,
  .page-template .title {
    position: absolute;
    top: 1vh;
    left: 8em;
  }
}
@media only screen and (max-width: 768px) and (min-width: 541px) {
  .site-main section,
  .page-template-credits .site-main header {
    width: 70%;
  }
}
@media only screen and (max-width: 768px) {
  .site-main section:not(:first-child) {
    margin-top: 2em;
  }
  /* Keep anchored sections (#music, #other) clear of the fixed top bar */
  .site-main section[id] {
    scroll-margin-top: 70px;
  }
}
@media only screen and (max-width: 540px) {
  .site-main section,
  .page-template-credits .site-main header {
    width: 90%;
  }
}

/* ============================================================
   6. Home
   ============================================================ */
.home {
  overflow-y: hidden !important;
}
.home .entry-content {
  display: flex;
  justify-content: center;
  align-items: center;
}
.home .entry-content > * {
  padding: 15px;
}
/* Logo: the <picture> carries the old img sizing (padding included in max-width) */
.home .entry-content .home-logo {
  max-width: 150px;
  width: 100%;
}
.home .entry-content .home-logo img {
  width: 100%;
}
.home h1 {
  font-weight: 300;
}
.home h1 strong {
  color: var(--c-muted);
  font-weight: 700;
}
@media only screen and (min-width: 769px) {
  .home .site-main section {
    align-items: center;
    min-width: 100vw;
  }
  .home .entry-content {
    max-width: 1080px;
  }
  .home .home-info {
    width: 70%;
  }
  .home .entry-content .home-logo {
    max-width: 230px;
  }
}
@media only screen and (max-width: 768px) {
  .home .entry-content {
    flex-direction: column;
    text-align: center;
    margin: 0 5%;
    height: 97vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    width: 90%;
  }
}

/* ============================================================
   7. Projects (three panels: Visual Media / Music / Other)
   ============================================================ */
.title h1 {
  margin: 0 0 5px;
}
.title h4 {
  padding: 0;
  margin: 0;
  text-transform: uppercase;
}
.title h4 strong {
  color: var(--c-line);
  font-weight: 700;
  margin-right: 15px;
}
.post-container > div {
  display: flex;
}
.post-container > div:before {
  color: var(--c-muted);
}
.meta-title {
  text-transform: uppercase;
}
/* Project card: square cover with a dark gradient that rises on hover */
.post-container .fancybox-project {
  position: relative;
  display: block;
  max-width: 100%;
  overflow: hidden;
}
.post-container .fancybox-project:before {
  content: "";
  display: block;
  top: 20%;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 20%, rgba(0, 0, 0, 0) 100%);
  transition: 0.5s;
}
.post-container .fancybox-project:hover:before,
.post-container .fancybox-project:focus-visible:before {
  top: 0;
}
.project-title {
  position: absolute;
  z-index: 2;
  bottom: 5px;
  left: 10px;
}
.visual-media .meta-image img,
.music .meta-image img,
.other .meta-image img {
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
}
@media only screen and (min-width: 769px) {
  .page-template-projects .site-main section:not(:first-child) {
    border-left: solid 1px var(--c-line);
  }
  .title {
    position: absolute;
    top: 2em;
    min-width: 300px;
  }
  .title h4 {
    position: absolute;
    top: 2.5em;
  }
  .post-list {
    display: flex;
  }
  .post-container:not(:last-child) {
    margin-right: 4em;
  }
  .post-container .fancybox-project {
    width: 330px;
  }
}
@media only screen and (max-width: 768px) {
  .page-template-projects .site-main section {
    margin: 5em auto;
  }
  .title {
    margin-bottom: 2em;
  }
  .post-container:not(:last-child) {
    margin-bottom: 4em;
  }
  .post-container .fancybox-project {
    width: 500px;
  }
}

/* ============================================================
   8. Credits (one column per year)
   ============================================================ */
.credit-list ol {
  padding-inline-start: 35px;
}
.credit-list ol li {
  position: relative;
  margin-bottom: 20px;
  color: var(--c-muted);
}
.credit-list ol li:before {
  left: -35px;
  position: absolute;
  color: var(--c-muted);
  display: inline-block;
}
.credit-list li > a {
  display: inline-flex;
  position: relative;
  align-items: center;
}
/* Small "external link" icon after linked titles */
.credit-list li > a:after {
  content: "";
  flex: none;
  background: url("/assets/img/icons/link.svg") center center / contain no-repeat;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  transition: 0.3s;
}
.credit-list h5 {
  color: #ffffff;
  margin: 0;
  transition: 0.3s;
}
.credit-list li > a:hover h5 {
  color: #cccaca;
}
.credit-list li > a:hover:after {
  filter: invert(10%) sepia(8%) saturate(0%) hue-rotate(15deg) brightness(100%) contrast(81%);
}
.credit-list p {
  font-size: 0.8em;
}
@media only screen and (min-width: 769px) {
  .page-template-credits .entry-content {
    display: flex;
  }
  .credit-list {
    min-width: 50vw;
    margin-right: 7em;
  }
  /* Long years scroll inside their own column on hover */
  .credit-list ol {
    max-height: 50vh;
    overflow: hidden;
  }
  .credit-list ol:hover {
    max-height: 50vh;
    overflow: auto;
    overflow: overlay;
  }
}
@media only screen and (max-width: 768px) {
  .page-template-credits #page {
    padding: 5em 0;
  }
  .page-template-credits .site-main header,
  .page-template-credits .site-main section {
    margin: 0 auto;
  }
  .credit-list {
    margin-bottom: 2em;
  }
}

/* ============================================================
   9. Contact (email button on the left, social icons on the right)
   ============================================================ */
.page-template-contact .entry-content > div {
  flex-basis: 50%;
}
/* Email block that replaces the old Contact Form 7 form */
.contact-email {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.contact-email .contact-address {
  color: var(--c-muted);
  font-size: 14px;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--c-line);
  padding: 10px 5px;
  margin-bottom: 25px;
  transition: 0.3s;
}
.contact-email .contact-address:hover {
  color: #ffffff;
}
/* Same look as the old "SEND" submit button */
.button-email {
  display: inline-block;
  border-bottom: solid 2px var(--c-muted);
  color: var(--c-muted);
  line-height: 1;
  padding: 0.6em 0.5em;
  font-weight: 600;
  text-transform: uppercase;
  transition: 0.3s;
}
.button-email:visited {
  color: var(--c-muted);
}
.button-email:hover,
.button-email:focus {
  color: #ffffff;
  border-color: #ffffff;
}
.contact-info .list {
  display: flex;
}
.contact-info .list a {
  color: var(--c-muted);
  transition: 0.5s;
}
.contact-info .list a:hover {
  color: #ffffff;
}
/* Inline SVG icons (Font Awesome Free, CC BY 4.0) sized like the old <i> icons */
.icon {
  display: block;
  height: 1.4em;
  width: auto;
  fill: currentColor;
}
@media only screen and (min-width: 769px) {
  .page-template-contact {
    overflow-y: hidden !important;
  }
  .page-template-contact .site-main section {
    align-items: center;
    min-width: 100vw;
    padding: 0 5em;
  }
  .page-template-contact .entry-content {
    display: flex;
    width: 100%;
  }
  .page-template-contact .entry-content > div {
    padding: 5%;
    width: 50%;
    min-height: 60vh; /* keeps the divider as tall as it was beside the old form */
  }
  .contact-email {
    justify-content: center;
  }
  .contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    border-left: solid 1px var(--c-line);
  }
  .contact-info .list {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .contact-info .list a {
    padding: 2%;
    margin: 0px 2%;
  }
}
@media only screen and (max-width: 768px) {
  .page-template-contact .site-main section {
    margin: 5em auto;
  }
  .contact-info {
    margin-top: 2em;
  }
  .contact-info .list a {
    padding: 10px;
    margin: 0px 10px;
  }
}

/* ============================================================
   10. Project detail pages (/visual/…, /music/…, /other/…)
       Loaded inside the lightbox iframe; also work as normal pages.
   ============================================================ */
.visual-template-default,
.music-template-default,
.other-template-default {
  background-color: #1a1818;
}
/* main#primary is a flex container, so without an explicit width the article
   shrinks to its content and, on desktop, the Role/Description column ends up
   hidden under the fixed .post-info panel. Full width restores the 50/50 split. */
.popup {
  width: 100%;
}
.popup .entry-content {
  width: 100%; /* was 100vw, which overflowed by the scrollbar width */
}
.popup .entry-content .entry-title {
  text-align: center;
}
.popup .entry-content .post-info,
.popup .entry-content .post-desc {
  padding: 5%;
}
.popup .entry-content .post-info {
  background-color: var(--c-bg);
}
.popup .entry-content .post-desc p {
  margin-bottom: 20px;
}
/* Links inside descriptions were underlined inline in WordPress */
.post-desc a {
  text-decoration: underline;
}
.visual .post-info {
  background: #000000;
}
.visual iframe {
  max-height: 280px;
}
.post-info iframe {
  display: block;
  border: 0;
}
/* Spotify player (Ridley Jones, Refraction): rounded like the old WordPress
   embed (was style="border-radius: 12px" + frameborder="0"). Width 100% and
   height stay as iframe attributes: Ridley Jones (.visual) is 152px, under the
   280px cap above; Refraction (.other) is 352px and not affected by that cap. */
.spotify-embed {
  border: 0;
  border-radius: 12px;
}
@media only screen and (min-width: 769px) {
  .post-info {
    position: fixed;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .post-desc {
    margin-left: 50%;
    min-height: 100vh;
    width: 50%;
    border-left: solid 1px var(--c-line);
  }
}
@media only screen and (max-width: 768px) {
  .post-info,
  .post-desc {
    width: 100%;
  }
}
@media only screen and (max-width: 540px) {
  .popup .entry-content {
    min-height: 100vh !important;
  }
}

/* ============================================================
   11. Lightbox — <dialog> that shows a project page in an iframe
       (replaces jQuery fancyBox 2; same size and colours)
   ============================================================ */
body.lightbox-open {
  overflow: hidden;
}
.lightbox {
  padding: 0;
  border: 0;
  width: min(1000px, calc(100vw - 40px));
  height: min(800px, calc(100vh - 100px));
  max-width: none;
  max-height: none;
  background: #1a1818;
  color: #444444;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.lightbox[open] {
  animation: lightbox-in 0.3s var(--ease-out);
}
.lightbox.is-closing {
  animation: lightbox-out 0.2s ease-in forwards;
}
.lightbox::backdrop {
  background: rgba(16, 12, 12, 0.69);
}
.lightbox iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 20px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 1;
}
.lightbox-close:before,
.lightbox-close:after {
  content: "";
  position: absolute;
  left: 0;
  width: 30px;
  height: 1px;
  background-color: var(--c-muted);
  top: 14px;
}
.lightbox-close:before {
  transform: rotate(45deg);
}
.lightbox-close:after {
  transform: rotate(-45deg);
}
@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes lightbox-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@media only screen and (max-width: 540px) {
  /* Phones: full-screen, like the old fancyBox mobile settings */
  .lightbox {
    width: 100vw;
    height: 100%;
    border-radius: 0;
    margin: 0;
  }
}

/* ============================================================
   12. 404 page
   ============================================================ */
.error404 {
  overflow-y: hidden;
}
.error404 section {
  width: 100vw;
}
.error404 .site-main header {
  text-align: center;
}
.error404 .site-main header .custom-logo-link {
  display: inline-block;
}
.error404 .site-main img {
  width: 100px;
}
.error404 .page-content {
  text-align: center;
  margin-top: 10px;
}
.error404 .page-content a {
  text-align: center;
  margin-top: 1em;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--c-muted);
  transition: 0.3s;
}
.error404 .page-content a .icon {
  height: 0.8em;
  margin-right: 10px;
}
.error404 .page-content a:hover {
  color: #ffffff;
}
@media only screen and (max-width: 768px) {
  .error404 .site-main section {
    padding: 0 5%;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
  }
}

/* ============================================================
   13. Desktop motion (>= 769px). Only applied when JS is running
       (html.js), so content is never hidden if the script fails.
   ============================================================ */
@media only screen and (min-width: 769px) {
  /* --- Entrance: fade + slide in (was GSAP) --- */
  .js .page-template .entry-header,
  .js .page-template .title,
  .js .post-container,
  .js .page-template:not(.home) .entry-content > *,
  .js .home .home-logo,
  .js .home .home-info > * {
    opacity: 0;
    translate: 0 30px;
    transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out);
  }
  .js .home .home-logo,
  .js .home .home-info > * {
    transition-duration: 1.2s;
  }
  .js .home .home-info > * {
    translate: -30px 0;
  }
  /* Revealed state; !important beats the more specific hidden selectors above */
  .js .is-in {
    opacity: 1 !important;
    translate: 0 0 !important;
  }

  /* --- Horizontal scroll: vertical scrolling slides the panels sideways.
         site.js sets the track height and the --hx offset. --- */
  /* Clip only while the effect runs; without JS the panels stay reachable
     by normal sideways scrolling */
  .hscroll-on .h-scroll {
    position: relative;
    overflow-x: clip;
  }
  .hscroll-on .h-scroll > .site-main {
    position: sticky;
    top: 0;
    height: 100vh;
  }
  .hscroll-on .site-main > section,
  .hscroll-on .site-main > header {
    transform: translate3d(var(--hx, 0px), 0, 0);
    will-change: transform;
  }
  /* Project covers rise in as they enter from the right (site.js sets --p) */
  .hscroll-on .post-container > div {
    opacity: var(--p, 1);
    transform: translate3d(0, calc((1 - var(--p, 1)) * 20%), 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .page-template .entry-header,
  .js .page-template .title,
  .js .post-container,
  .js .page-template:not(.home) .entry-content > *,
  .js .home .home-logo,
  .js .home .home-info > * {
    transition: none !important;
  }
  .lightbox[open],
  .lightbox.is-closing {
    animation: none;
  }
}

/* ============================================================
   14. Utilities / accessibility
   ============================================================ */
/* Text meant only for screen readers */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}
/* Do not show the outline on the skip-link target */
#primary[tabindex="-1"]:focus {
  outline: 0;
}
