/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #ffffff;
  font-size: 1em;
  line-height: 1.4;
}

::-moz-selection {
  background: rgb(0 0 0 / 0.3);
  text-shadow: none;
}

::selection {
  background: rgb(0 0 0 / 0.3);
  text-shadow: none;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display",
  "Segoe UI", sans-serif;
  background: #ffffff;
  color: #161616;
}

body {
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 72px;
  padding: 7% 18%;
  gap: 24px;

  transform: scale(1);
  filter: blur(0px);

  transition:
    transform 1400ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 1400ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  z-index: 2;
}

.identity,
.contact {
  line-height: 1.05;
}

.name,
.year {
  margin: 0;
  font-size: clamp(12px, 2vw, 36px);
  font-weight: 500;
}

.year {
  margin-top: 4px;
  opacity: 0.5;

  transition:
    opacity 360ms ease,
    filter 360ms ease,
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.year.is-changing {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(6px);
}

.contact {
  text-align: left;
  font-size: clamp(8px, 1.2vw, 16px);
  font-style: normal;
  font-weight: 300;
  color: rgb(0 0 0 / 0.4);
}

.contact p {
  margin: 0 0 6px;
}

.work-stage {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: visible;

  padding-top: 2vh;
  padding-bottom: 2vh;
}

.work-scroll {
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: clamp(48px, 8vw, 140px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8vh 50vw;
  scrollbar-width: none;
}

.work-scroll::-webkit-scrollbar {
  display: none;
}

.work-card {
  flex: 0 0 auto;
  height: clamp(300px, 46vh, 560px);
  scroll-snap-align: center;
  overflow: hidden;
  position: relative;

  opacity: 1;
  transition:
    opacity 360ms ease,
    filter 360ms ease;

  filter: saturate(1);
  cursor: none;
}

.work-card.is-focused {
  opacity: 1;
  filter: saturate(1);
}

.work-card img {
  width: auto;
  height: 100%;

  max-width: min(78vw, 1100px);

  object-fit: contain;
  display: block;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.work-cursor {
  position: fixed;
  left: 0;
  top: 0;

  width: 56px;
  height: 56px;

  display: grid;
  place-items: center;

  border-radius: 999px;
  background: rgb(200 200 200 / 0.35);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  color: rgb(0 0 0 / 0.55);

  font-size: 40px;
  font-weight: 200;
  line-height: 1;

  padding-bottom: 6px;
  padding-left: 2px;

  pointer-events: none;
  opacity: 0;
  filter: blur(20px);
  transform: translate(-50%, -50%) scale(0);

  transition:
    opacity 220ms ease,
    transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 420ms cubic-bezier(0.16, 1, 0.3, 1);

  z-index: 30;
}

.work-cursor.is-visible.is-pressed {
  transform: translate(-50%, -50%) scale(0.8);

  transition:
    opacity 220ms ease,
    transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-cursor.is-visible {
  opacity: 1;
  filter: blur(0px);
  transform: translate(-50%, -50%) scale(1);
}

.bottom-info {
  text-align: center;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  height: 72px;
  z-index: 2;
}

.project-title {
  margin: 0;
  font-size: clamp(18px, 1.2vw, 20px);
  font-weight: 500;
}

.project-description {
  margin: 4px auto 0;
  font-size: clamp(14px, 1.2vw, 16px);
  color: rgb(0 0 0 / 0.5);
  font-weight: 400;
  max-width: 600px;
}

.about-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.about-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 7% 18%;

  background: rgb(255 255 255 / 0.18);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);

  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);

  transition:
    opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1200ms cubic-bezier(0.16, 1, 0.3, 1),
    backdrop-filter 1200ms cubic-bezier(0.16, 1, 0.3, 1),
    -webkit-backdrop-filter 1200ms cubic-bezier(0.16, 1, 0.3, 1),
    background 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-overlay:not(.is-visible) .about-panel {
  transition-delay: 0ms;
}

.about-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);

  background: rgb(255 255 255 / 0.35);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.about-overlay.is-visible ~ .page,
body:has(.about-overlay.is-visible) .page {
  transform: scale(0.9);
  filter: blur(12px);
  opacity: 0.5;
}

.about-panel {
  width: 90%;
  display: grid;
  grid-template-columns: 1fr minmax(180px, 24vw);
  gap: clamp(16px, 2vw, 32px);
  align-items: start;

  opacity: 0;
  transform: scale(1.2);
  filter: blur(50px);

  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1400ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-overlay.is-visible .about-panel {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);

  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1400ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-overlay.is-closing {
  pointer-events: auto;
}

.about-overlay.is-closing .about-panel {
  opacity: 0;
  transform: scale(1.2);
  filter: blur(50px);

  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1400ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.about-close {
  position: fixed;
  left: 50%;
  bottom: 48px;

  width: 56px;
  height: 56px;

  display: grid;
  place-items: center;

  border: 1px solid rgb(0 0 0 / 0);
  border-radius: 999px;
  background: rgb(200 200 200 / 0.35);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  color: rgb(0 0 0 / 0.3);

  font-size: 38px;
  font-weight: 200;
  line-height: 1;

  padding: 0 0 6px 1px;

  cursor: pointer;
  z-index: 20;

  opacity: 0;
  filter: blur(20px);
  transform: translate(-50%, 120px) scale(0);

  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 900ms cubic-bezier(0.16, 1, 0.3, 1),
    background 240ms ease,
    color 240ms ease;
}

.about-overlay.is-visible .about-close {
  opacity: 1;
  filter: blur(0px);
  transform: translate(-50%, 0) scale(1);

  transition-delay:
    600ms,
    600ms,
    600ms,
    0ms,
    0ms;
}

.about-overlay.is-closing .about-close {
  opacity: 0;
  filter: blur(20px);
  transform: translate(-50%, 120px) scale(0);
}

.about-close:hover {
  color: rgb(255 255 255 / 0.8);
  background: rgb(0 0 0 / 1);
  transform: translate(-50%, 0) scale(1.1);
}

.about-close.is-pressed,
.about-close:hover.is-pressed {
  transform: translate(-50%, 0) scale(0.8);

  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    background 240ms ease,
    color 240ms ease;
}

.about-overlay {
  position: fixed;
}

.about-text p {
  margin: 0;
  max-width: 480px;
  font-size: clamp(18px, 1.2vw, 22px);
  line-height: 1.3;
  font-weight: 300;
  color: rgb(0 0 0 / 0.7);
}

.about-photo {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .page {
    padding: 6% 15%;
  }

  .work-scroll {
    gap: clamp(36px, 6vw, 72px);
    padding: 6vh 40vw;
  }

  .work-card {
    height: 38vh;
  }

  .work-card img {
    max-width: 82vw;
  }

  .about-panel {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo {
    width: min(320px, 60vw);
  }

  .about-text p {
    max-width: none;
    font-size: clamp(18px, 2vw, 26px);
  }
}

@media (max-width: 700px) {
  .page {
    padding: 5% 10%;
  }

  .top-bar {
    gap: 16px;
  }

  .contact {
    font-size: 12px;
  }

  .work-scroll {
    padding-inline: 50vw;
  }

  .work-card {
    flex-basis: 72vw;
    height: 42vh;
  }

  .work-card img {
    max-width: 60vw;

  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden,
[hidden] {
  display: none !important;
}

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

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

.invisible {
  visibility: hidden;
}

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 35em) {
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
