/* Kalubi Design — visual 1:1 rebuild of the live Wix Studio portfolio */

@font-face {
  font-family: "Monument Extended";
  src: url("../fonts/MonumentExtended-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Monument Extended";
  src: url("../fonts/MonumentExtended-Ultrabold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Raleway";
  src: url("../fonts/raleway-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "MiSans";
  src: url("../fonts/MiSans-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MiSans";
  src: url("../fonts/MiSans-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MiSans";
  src: url("../fonts/MiSans-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MiSans";
  src: url("../fonts/MiSans-Normal.woff2") format("woff2");
  font-weight: 330;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MiSans";
  src: url("../fonts/MiSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MiSans";
  src: url("../fonts/MiSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MiSans";
  src: url("../fonts/MiSans-Demibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MiSans";
  src: url("../fonts/MiSans-Semibold.woff2") format("woff2");
  font-weight: 650;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MiSans";
  src: url("../fonts/MiSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MiSans";
  src: url("../fonts/MiSans-Heavy.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --near-black: #0f0f0f;
  --offwhite: #f9f9f9;
  --white: #ffffff;
  --lime: #d1ff00;
  --cell-empty: #1c1c1c;
  --button-label: #181818;
  --button-border: #323232;
  --header-h: 39px;
  --ticker-h: 60px;
  --ease: 0.4s ease;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--black);
  color: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  font-family: "Monument Extended", sans-serif;
  background: var(--black);
}

body.is-about {
  background: var(--black);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.is-about .page {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

body.is-about .site-footer {
  flex: 0 0 auto;
  width: 100%;
  background: var(--black);
}

body.lb-open {
  overflow: hidden;
}

body.lb-open .page {
  filter: grayscale(1) brightness(0.28);
}

img {
  max-width: 100%;
  display: block;
}

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

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 20;
  height: var(--header-h);
  background: var(--black);
  display: flex;
  align-items: stretch;
  width: 100%;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  position: relative;
  height: var(--header-h);
  flex: 1 1 auto;
  min-width: 0;
  color: var(--offwhite);
  overflow: hidden;
}

.brand-mark {
  width: 49px;
  height: 30px;
  margin-left: 16px;
  object-fit: cover;
  object-position: 50% 50%;
  flex-shrink: 0;
}

.brand-rule {
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--offwhite);
  pointer-events: none;
  z-index: 2;
}

.brand-wordmark {
  margin-left: 30px; /* 16 + 49 + 30 = 95 */
  font-family: "Monument Extended", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 19px;
  color: var(--offwhite);
  letter-spacing: 0;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  width: 47.34%; /* 909/1920, measured from the live header */
  height: var(--header-h);
  margin-left: auto;
  background: var(--near-black);
}

.nav a {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  height: 34px;
  margin-top: 2px;
  text-align: center;
  font-family: "Monument Extended", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: var(--offwhite);
  background: var(--near-black);
  cursor: pointer;
  border-radius: 0;
  box-shadow: none;
  padding: 0 4px;
  transition: background-color var(--ease), color var(--ease);
  border-left: 1px solid var(--offwhite);
  white-space: nowrap;
}

.nav a:first-child {
  border-left: 0;
}

.nav a[aria-current="page"] {
  background: var(--offwhite);
  color: var(--near-black);
}

.nav a:hover {
  background: var(--lime);
  color: var(--near-black);
}

/* ---------- Works: hero + tickers + grid ---------- */

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1905 / 731;
  overflow: hidden;
  background: var(--black);
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(2);
  animation: hero-settle 1.6s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes hero-settle {
  to {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero img {
    animation: none;
    transform: none;
  }
}

.tickers {
  width: 100%;
  background: var(--black);
}

.ticker {
  height: var(--ticker-h);
  overflow: hidden;
  position: relative;
  background: var(--black);
}

.ticker-track {
  display: flex;
  width: max-content;
  height: 100%;
  will-change: transform;
}

.ticker-track img {
  height: var(--ticker-h);
  width: auto;
  flex-shrink: 0;
}

.ticker--a .ticker-track {
  animation: ticker-ltr 40s linear infinite;
}

.ticker--b .ticker-track {
  animation: ticker-rtl 47s linear infinite;
}

@keyframes ticker-ltr {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes ticker-rtl {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none !important;
  }
}

/* ---------- Gallery ---------- */

.gallery {
  width: 100%;
  background: var(--cell-empty);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  overflow: hidden;
}

.cell {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--cell-empty);
  z-index: 0;
}

.cell-media-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cell-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 0.4s ease;
  background: var(--cell-empty);
}

.cell:hover .cell-media,
.cell:focus-within .cell-media {
  transform: scale(1.1);
}

.cell-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #ffffff;
  transform: translate(-40%, -50%);
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.35));
}

.cell-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background-color 0.35s ease;
  pointer-events: none;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 10px 30px 70px 30px;
}

.cell:hover .cell-overlay,
.cell:focus-within .cell-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.cell-title {
  margin: 0;
  font-family: "Monument Extended", sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 12px;
  color: var(--white);
  text-align: left;
  max-width: 212px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cell-desc {
  margin: 5px 0 0 0;
  font-family: "MiSans", sans-serif;
  font-weight: 100;
  font-size: 10px;
  line-height: 12px;
  color: var(--white);
  text-align: left;
  max-width: 212px;
  white-space: pre-wrap;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cell:hover .cell-title,
.cell:hover .cell-desc,
.cell:focus-within .cell-title,
.cell:focus-within .cell-desc {
  opacity: 1;
}

.cell-share {
  position: absolute;
  left: 12px;
  bottom: 16px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cell:hover .cell-share,
.cell:focus-within .cell-share {
  opacity: 1;
}

.cell-share svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--black);
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 16px 28px;
}

.site-footer p {
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: normal;
  letter-spacing: 0;
  color: var(--offwhite);
  text-align: center;
}

.site-footer .beian {
  font-family: "MiSans", "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 400;
}

.site-footer .beian a {
  color: inherit;
  text-decoration: none;
}

.site-footer .beian a:hover {
  opacity: 0.65;
}

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

.about-page {
  background: var(--black);
}

.about-field {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: calc(100vh - 92px);
  min-height: calc(100dvh - 92px);
  background: var(--near-black);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-field::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/about.webp");
  background-size: cover;
  background-position: 50% 50%;
  z-index: 0;
}

.about-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(15, 15, 15);
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
}

.about-field .site-header {
  position: relative;
  z-index: 3;
  width: 100%;
  flex: 0 0 var(--header-h);
}

.about-copy {
  position: absolute;
  left: 50%;
  top: 50vh;
  top: 50dvh;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
  pointer-events: none;
}

.about-copy .about-cta {
  pointer-events: auto;
}

.about-line {
  margin: 0;
  font-family: "Monument Extended", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: normal;
  color: var(--offwhite);
  text-align: center;
  background: transparent;
  animation: motion-fadeIn 1200ms 1ms cubic-bezier(0.445, 0.05, 0.55, 0.95) both;
}

@keyframes motion-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.about-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 40px;
  margin-top: 95px;
  background: var(--white);
  color: var(--button-label);
  border: 2px solid var(--button-border);
  border-radius: 24px;
  box-shadow: none;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}

.about-cta:hover {
  background: var(--lime);
  color: var(--near-black);
}

body.is-about .site-footer,
.about-page .site-footer {
  position: relative;
  z-index: 2;
  background: var(--black);
}

@media (max-height: 700px) {
  .about-cta {
    margin-top: 56px;
  }
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.lightbox.is-open {
  display: block;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 30, 0.28);
  cursor: pointer;
}

.lb-stage {
  position: absolute;
  left: 10.94%; /* 210/1920 */
  top: 50%;
  transform: translateY(-50%);
  width: min(924px, 48.125vw, calc(100vh - 148px), calc(100vw - 620px));
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #161616;
  z-index: 2;
}

.lb-stage img,
.lb-stage video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000;
}

.lb-stage img.is-fill {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lb-title-col {
  position: absolute;
  left: 69.66%; /* 1337.5/1920 */
  top: 130px;
  width: 23.33%; /* 448/1920 */
  max-width: 448px;
  z-index: 3;
  color: var(--white);
}

.lb-title {
  margin: 0;
  font-family: "Monument Extended", sans-serif;
  font-weight: 700;
  font-size: 45px;
  line-height: 56px;
  color: var(--white);
  text-transform: none;
}

.lb-desc-row[hidden] { display: none; }
.lb-desc-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
}

.lb-desc {
  margin: 0;
  flex: 1 1 auto;
  font-family: "MiSans", sans-serif;
  font-weight: 100;
  font-size: 12px;
  line-height: 1.4;
  color: var(--white);
  max-height: 40vh;
  overflow-y: auto;
  white-space: pre-wrap;
}

.lb-info {
  flex: 0 0 22px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid var(--white);
  border-radius: 1px;
  color: var(--white);
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  background: transparent;
  cursor: default;
}

.lb-close,
.lb-prev,
.lb-next,
.lb-share {
  position: absolute;
  z-index: 4;
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: 0;
}

.lb-close {
  top: 30px;
  right: 45px; /* 1837 at 1920, box ~38×44 */
  width: 38px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}

.lb-prev,
.lb-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-prev {
  left: 20px;
}

.lb-next {
  /* 1274/1920 ≈ 66.35% */
  left: 66.35%;
}

.lb-prev svg,
.lb-next svg {
  width: 22px;
  height: 40px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}

.lb-share {
  top: 26px;
  left: 58px;
  width: 38px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-share svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.lb-toast {
  position: absolute;
  top: 80px;
  left: 20px;
  z-index: 5;
  background: var(--offwhite);
  color: var(--near-black);
  font-family: "Monument Extended", sans-serif;
  font-size: 10px;
  line-height: 12px;
  padding: 8px 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lb-toast.is-on {
  opacity: 1;
}

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

@media (max-width: 1100px) {
  .lb-stage {
    left: 50px;
    width: min(52vw, calc(100vh - 120px));
  }
  .lb-title-col {
    left: auto;
    right: 24px;
    width: 38%;
    top: 100px;
  }
  .lb-title {
    font-size: 32px;
    line-height: 40px;
  }
  .lb-next {
    left: auto;
    right: 40%;
  }
}

@media (max-width: 800px) {
  .site-header {
    height: auto;
    min-height: var(--header-h);
    flex-wrap: wrap;
  }
  .brand {
    min-width: 0;
    width: 100%;
    height: var(--header-h);
    flex: 0 0 auto;
  }
  .brand-wordmark {
    font-size: 13px;
  }
  .nav {
    max-width: 100%;
    flex: 1 1 100%;
    width: 100%;
    height: 36px;
  }
  .nav a {
    font-size: 10px;
    padding: 0 2px;
  }
  .hero {
    aspect-ratio: 1905 / 731;
  }
  .about-field {
    min-height: 100vh;
  }
  .about-line {
    font-size: 16px;
    padding: 0 16px;
  }
  .lightbox.is-open {
    overflow-y: auto;
  }
  .lb-stage {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: min(92vw, 92vh);
    margin: 72px auto 16px;
  }
  .lb-title-col {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
    max-width: none;
    padding: 16px 20px 80px;
  }
  .lb-title {
    font-size: 28px;
    line-height: 36px;
  }
  .lb-prev {
    left: 4px;
  }
  .lb-next {
    left: auto;
    right: 4px;
  }
}

/* Optional short page transition — does not delay first paint */
@supports (view-transition-name: none) {
  @media (prefers-reduced-motion: no-preference) {
    html {
      view-transition-name: page-group;
    }
    ::view-transition-old(page-group),
    ::view-transition-new(page-group) {
      animation-duration: 0.6s;
    }
  }
}
