/* Quinton Wong portfolio styles.
   Values carried over from the Webflow site (Nov 2025 export). */

@font-face {
  font-family: "Rethink Sans";
  src: url("/fonts/rethink-sans-variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rethink Sans";
  src: url("/fonts/rethink-sans-variable-italic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Nohemi";
  src: url("/fonts/nohemi-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #fff;
  --ink: #160000;
  --text: #333;
  --muted: #6e6e6e;
  --page: #fdfdfd;
  --font-body: "Rethink Sans", sans-serif;
  --font-display: "Nohemi", sans-serif;
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-menu-open: cubic-bezier(0.895, 0.007, 0.193, 0.989);
  --ease-menu-close: cubic-bezier(0.795, 0.007, 0.105, 0.995);
  --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 20px;
}

body.page-project {
  background: var(--page);
  line-height: 1.3rem;
}

img,
video {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: inline-block;
}

a {
  color: #000;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  text-transform: uppercase;
  font-family: var(--font-display);
}

h2 {
  color: #000;
  font-size: 1.5em;
  font-weight: 400;
  line-height: 2em;
}

h3 {
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 2.2rem;
}

p {
  margin: 0 0 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Navigation bar ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 3;
  width: 100vw;
  padding: 1rem 2rem 1rem 1.5rem;
  mix-blend-mode: difference;
  transition: transform 1s var(--ease-out-expo);
}

.nav.is-hidden {
  transform: translateY(-100%);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  overflow: hidden;
}

.logo {
  flex: 1;
  display: block;
  padding: 0.8em;
  color: var(--white);
  text-transform: uppercase;
  font-family: var(--font-body);
  font-size: 1.5em;
  line-height: 1.3em;
  font-variation-settings: "wght" 400;
}

.menu-toggle {
  display: flex;
  align-items: center;
  padding: 0.8em 1.1em;
  margin: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 14px;
}

.menu-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 5rem;
  max-width: 40px;
  height: 1.2rem;
  max-height: 40px;
}

.menu-toggle-bars span {
  display: block;
  height: 0.15em;
  background: var(--white);
  transition:
    transform 0.5s var(--ease-out-quad),
    translate 0.3s var(--ease-out-quad);
}

.menu-toggle-bars span:first-child {
  margin-bottom: 0.5em;
}

.menu-toggle-bars span:last-child {
  margin-top: 0.5em;
}

.menu-open .menu-toggle-bars span:first-child {
  translate: 0 0.56em;
  transform: rotate(35deg);
}

.menu-open .menu-toggle-bars span:last-child {
  translate: 0 -0.56em;
  transform: rotate(-35deg);
}

/* ---------- Full-screen menu ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--ink);
  transform: translateY(-100vh);
  visibility: hidden;
  transition:
    transform 0.8s var(--ease-menu-close),
    visibility 0s linear 0.8s;
}

.menu-open .menu {
  transform: translateY(0);
  visibility: visible;
  transition:
    transform 1s var(--ease-menu-open),
    visibility 0s;
}

.menu-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50vw;
  padding: 5em 2.5em;
}

.menu-link,
.menu-social {
  opacity: 0;
  transition: opacity 0.5s linear;
}

.menu-open .menu-link,
.menu-open .menu-social {
  opacity: 1;
  transition: opacity 0.8s linear 0.5s;
}

.menu-link {
  display: flex;
  padding: 0.5em;
  color: var(--white);
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: 6em;
  line-height: 1;
  font-weight: 300;
  font-variation-settings: "wght" 400;
}

.menu-link {
  transition:
    opacity 0.5s linear,
    font-variation-settings 0.5s var(--ease-out-quad);
}

.menu-open .menu-link {
  transition:
    opacity 0.8s linear 0.5s,
    font-variation-settings 0.5s var(--ease-out-quad);
}

.menu-link:hover,
.menu-link:focus-visible {
  font-variation-settings: "wght" 700;
}

.menu-social {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  margin-bottom: 2em;
  padding: 0 2em;
}

.availability {
  display: flex;
  align-items: center;
  color: var(--white);
}

.availability-dot {
  width: 2em;
  height: 2em;
}

.availability-label {
  margin-left: 0.5em;
}

.social-links {
  display: flex;
  align-items: center;
}

.social-links a {
  padding: 0 1em;
  color: var(--white);
  line-height: 1em;
}

/* ---------- Home: project list ---------- */

.loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
}

.work-list {
  margin: 0;
  padding: 50vh 0;
  padding: 50dvh 0;
  list-style: none;
}

.work-item {
  padding: 3rem 0;
}

.work-image {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.work-item.is-active .work-image {
  opacity: 1;
}

.work-mask {
  margin: 5rem 0;
  overflow: hidden;
}

.work-name {
  position: relative;
  display: block;
  padding: 0 8rem 0 6rem;
  color: var(--white);
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: 7em;
  font-weight: 800;
  line-height: 1em;
  opacity: 0.32;
  font-variation-settings: "wght" 200;
  transition: font-variation-settings 0.85s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.work-item.is-active .work-name {
  opacity: 1;
  font-variation-settings: "wght" 700;
}

/* ---------- Project page ---------- */

.project {
  padding: 0 3rem;
}

.project-headline {
  padding-top: 3rem;
}

.project-title-wrap,
.project-hero-wrap {
  margin-bottom: 1rem;
}

.project-title {
  padding-top: 5rem;
  color: #000;
  text-align: center;
  font-size: 7rem;
  font-weight: 700;
  line-height: 6rem;
}

.project-hero {
  width: 100%;
  height: 34rem;
  margin: 0.5em 0;
  object-fit: cover;
}

.project-body {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 3rem;
}

.project-details {
  position: relative;
}

.project-details-inner {
  position: sticky;
  top: 5rem;
}

.detail {
  padding: 1em 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
}

.label {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8rem;
}

.info {
  max-width: 35rem;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.5rem;
}

.info a {
  color: inherit;
}

.project-media {
  padding-top: 1rem;
}

.project-video {
  display: block;
  width: 100%;
  margin-bottom: -0.2em;
}

.project-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0.5em 0;
}

/* Scroll-reveal (only when JS runs) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(8rem);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition:
    transform 1.5s var(--ease-out-expo),
    opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* ---------- More projects ---------- */

.more {
  padding: 0 3rem;
}

.more-header {
  display: flex;
  justify-content: space-between;
  margin: 3rem 0 1rem;
}

.more-heading {
  padding-right: 0.3em;
  font-size: 2em;
  font-weight: 400;
}

.more-all {
  font-weight: 400;
}

.more-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 0 0 3rem;
  padding: 0;
  list-style: none;
}

.more-image {
  display: block;
  width: 100%;
  height: 25rem;
  overflow: hidden;
}

.more-image img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.more-title {
  margin: 1rem 0;
  color: #000;
  font-size: 1.5em;
  font-weight: 400;
  line-height: 2rem;
}

/* ---------- About ---------- */

.about {
  padding-top: 5rem;
}

.about-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  min-height: 80vh;
}

.about-photo {
  width: 25rem;
  margin: 0.5em 0;
}

.about-bio a {
  text-decoration: underline;
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 2em;
}

.about-facts .detail {
  padding: 0 0 2em;
}

/* ---------- 404 ---------- */

.not-found {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  gap: 1rem;
  text-align: center;
}

.not-found h1 {
  color: #000;
  font-size: 4rem;
  line-height: 1;
}

.not-found a {
  text-decoration: underline;
}

/* ---------- Load-in animations ---------- */

@keyframes rise-105 {
  from {
    transform: translateY(105%);
  }
}
@keyframes rise-100 {
  from {
    transform: translateY(100%);
  }
}
@keyframes drop-logo {
  from {
    transform: translateY(-75%);
  }
}
@keyframes drop-toggle {
  from {
    transform: translateY(-220%);
  }
}
@keyframes loader-out {
  to {
    transform: translateY(-100%);
  }
}

.js .logo {
  animation: drop-logo 1s cubic-bezier(0.39, 0.575, 0.565, 1) 0.3s both;
}
.js .menu-toggle {
  animation: drop-toggle 1s var(--ease-out-expo) 0.5s both;
}
.js .page-home .logo {
  animation-delay: 0.8s;
}
.js .page-home .menu-toggle {
  animation-delay: 1s;
}
.js .page-home .work-image {
  animation: rise-100 2.5s var(--ease-out-expo) both;
}
.js .page-home .work-name {
  animation: rise-105 2s var(--ease-out-expo) 0.5s both;
}
.js .page-home .loader {
  animation: loader-out 2s var(--ease-out-expo) 0.5s both;
}
.js .project-title {
  animation: rise-105 2s var(--ease-out-expo) both;
}
.js .project-hero {
  animation: rise-105 1.5s var(--ease-out-expo) both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 991px) {
  .work-name {
    padding-left: 4rem;
    font-size: 5em;
  }
  .info {
    margin-bottom: 1em;
  }
  .project-body {
    display: flex;
    flex-direction: column;
  }
  .about-inner {
    flex-direction: column;
    gap: 3rem;
    min-height: 0;
    margin-top: 1rem;
  }
  .about-facts .detail {
    padding-bottom: 0;
  }
  .about-bio {
    margin-bottom: 5rem;
  }
}

@media screen and (max-width: 767px) {
  .work-name {
    font-size: 3em;
  }
  .more-heading {
    font-size: 1.5em;
  }
  .more-all {
    font-size: 1em;
  }
  .more-list {
    display: flex;
    flex-direction: column;
  }
}

@media screen and (max-width: 479px) {
  .nav {
    padding-left: 2rem;
    padding-right: 1rem;
  }
  .logo {
    padding-left: 0;
    padding-right: 1rem;
    font-size: 1.2em;
  }
  .menu-link {
    font-size: 3em;
  }
  .menu-toggle-bars {
    max-width: 30px;
  }
  .menu-links {
    padding-top: 0;
  }
  .menu-social {
    flex-direction: column;
    align-items: center;
    padding-bottom: 5rem;
  }
  .availability {
    justify-content: center;
    padding-bottom: 2em;
  }
  .project-title {
    padding-top: 3rem;
    font-size: 2.5rem;
    line-height: 2.3rem;
  }
  .work-name {
    padding: 0 2rem;
    font-size: 2.3em;
  }
  .label {
    font-size: 0.8rem;
    line-height: 1.2rem;
  }
  .info {
    margin-bottom: 0;
    font-size: 0.8rem;
    line-height: 1rem;
  }
  .project,
  .more {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .project-hero {
    height: 25rem;
  }
  .project-media {
    padding-top: 0;
  }
  .detail {
    padding-bottom: 0;
  }
  .more-heading,
  .more-all {
    font-size: 0.8em;
    line-height: 1em;
  }
  .more-title {
    margin: 0;
    font-size: 1em;
  }
  .more-image {
    height: 15rem;
  }
  .about {
    padding-left: 2em;
    padding-right: 2em;
  }
  .about-inner {
    gap: 1.5rem;
    margin-top: 0;
  }
  .about-facts {
    grid-template-columns: 1fr;
  }
  .about-facts .detail {
    padding-bottom: 1em;
  }
}
