:root {
  color-scheme: light;

  --hero-bg: #f4f1ef;
  --page-bg: #f4f1ef;

  --text-main: #111111;
  --text-muted: rgba(0, 0, 0, 0.6);

  --footer-bg: #111111;
  --footer-text: #f5f0e8;

  --card-bg: #ffffff;
  
  --grid-tile: 140px;
  --grid-gap: 50px;

  --font-headline: "Changa One", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --radius-card: 12px;
  --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.16);
  --shadow-subtle: 0 10px 22px rgba(0, 0, 0, 0.12);
}

/* ===================================================== */
/* RESET + BASE                                          */
/* ===================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: var(--font-body);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===================================================== */
/* INTRO OVERLAY                                         */
/* ===================================================== */

.intro {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.intro__logo-wrap {
  padding: 1.5rem 2.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.intro__logo {
  display: block;
  width: clamp(110px, 22vw, 180px);
  height: auto;
}

/* ===================================================== */
/* HERO                                                  */
/* ===================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 1.75rem clamp(1.5rem, 5vw, 4.5rem) 2.5rem;
  background-color: var(--hero-bg);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* logo in hero */

.hero__logo {
  position: absolute;
  top: 1.45rem;
  left: clamp(1.5rem, 5vw, 4.5rem);
  z-index: 5;
}

.hero__logo-img {
  display: block;
  height: 32px;
  width: auto;
}

/* nav aligns to the right */

.hero__nav {
  position: absolute;
  top: 1.5rem;
  left: clamp(1.5rem, 5vw, 4.5rem);
  right: clamp(1.5rem, 5vw, 4.5rem);
  display: flex;
  justify-content: flex-end;
  gap: 1.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__nav-link {
  position: relative;
}

.hero__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 1px;
  background: var(--text-main);
  transition: width 0.23s ease;
}

.hero__nav-link:hover::after {
  width: 100%;
}

.hero__center {
  max-width: 980px;
  margin-inline: auto;
  text-align: left;
  /* remove: position: relative; */
}

/* hide semantic H1 visually */

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

/* title line (now physics letters, no typing) */

.hero__typing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  font-family: var(--font-headline);
  text-transform: uppercase;
  line-height: 0.9;
  font-size: clamp(4rem, 9vw, 7rem);
  letter-spacing: 0.12em;
}


.hero__typing .hero__char {
  position: absolute;
  display: block;
  transform-origin: 50% 50%;
  will-change: transform;
}

.hero__space {
  display: none;
}

/* centered logo shadow */

.hero__title-logo-shadow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(280px, 40vw, 480px);
  transform: translate(-50%, -50%);
  opacity: 0.08;
  pointer-events: none;
  mix-blend-mode: multiply;
  user-select: none;
}

/* tagline revealed after drop */

.hero__tagline {
  margin-top: 1.4rem;
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  opacity: 0;
  transform: translateY(18px);
}

/* hero copy block */

.hero__copy {
  margin-top: clamp(1.4rem, 2.6vw, 2.1rem);
  max-width: 640px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
}

.hero__subtitle {
  margin: 0;
}

.hero__subtitle + .hero__subtitle {
  margin-top: 0.35rem;
}

.hero__dot {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.2rem;
}

.hero__meta {
  margin: 0 0 1.1rem;
}

.hero__year {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
}

/* credits + scroll cue */

.hero__credits {
  position: absolute;
  bottom: 1.9rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__credits--left {
  left: clamp(1.5rem, 5vw, 4.5rem);
}

.hero__credits--right {
  right: clamp(1.5rem, 5vw, 4.5rem);
  text-align: right;
}

.hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.7rem;
  transform: translateX(-50%);
  border: none;
  background: none;
  color: inherit;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  cursor: pointer;
}

.hero__scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__scroll-arrow {
  font-size: 0.9rem;
}

/* ===================================================== */
/* ABOUT                                                 */
/* ===================================================== */

.main {
  flex: 1 0 auto;
}

.about {
  padding: 4.5rem clamp(1.8rem, 7vw, 6rem) 2rem;
  background: var(--page-bg);
}

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2.2fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 3vw, 3.75rem);
  align-items: flex-start;
}

.about__col--left {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.logo-mark {
  display: inline-flex;
  align-items: baseline;
}

.logo-mark__reg {
  font-size: 0.65em;
  margin-left: 0.12em;
}

.about__heading {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about__text {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.about-nav {
  font-size: 0.78rem;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-nav__item {
  position: relative;
}

.about-nav__item::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.2rem;
  width: 0;
  height: 1px;
  background: var(--text-main);
  transition: width 0.23s ease;
}

.about-nav__item:hover::after {
  width: 100%;
}
/* ===================================================== */
/* PORTFOLIO CUBE SECTION                                */
/* ===================================================== */

.portfolio-corner {
  min-height: 100vh;
  background: radial-gradient(circle at 10% 0%, #181818 0, #000 55%);
  color: #f5f5f5;
  padding: 4rem clamp(1.8rem, 6vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-corner__inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.portfolio-corner__header {
  max-width: 360px;
}

.portfolio-corner__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.6rem;
}

.portfolio-corner__title {
  margin: 0 0 0.6rem;
  font-family: var(--font-headline, system-ui);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.4rem;
}

.portfolio-corner__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(245, 245, 245, 0.76);
}
/* 3D container */
.corner-scene {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 0 auto;
  perspective: 900px;
  transform-style: preserve-3d;
}
.corner-scene {
  width: 320px;
  height: 320px;
  margin: 0 auto;
  perspective: 900px;
}

.cube {
  --size: 240px;
  --half: calc(var(--size) / 2);

  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--size);
  height: var(--size);
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
}

/* EXACT cube geometry */
.cube__face--front {
  transform: translateZ(var(--half));
}

.cube__face--right {
  transform: rotateY(90deg) translateZ(var(--half));
}

.cube__face--top {
  transform: rotateX(-90deg) translateZ(var(--half));
}
.cube__face {
  position: absolute;
  width: var(--size);
  height: var(--size);
  background: #050505;
  border: 1px solid #111;
  overflow: hidden;                 /* hide extra text */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* grid fills the whole face */
.cube__grid {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;   /* rows spread from top to bottom */
}

/* one horizontal row */
.cube__row {
  display: flex;
  flex-wrap: nowrap;
}

/* strip of text (we'll have two of these per row) */
.cube__row-inner {
  display: inline-flex;
  flex-shrink: 0;
}

/* actual text */
.cube__row-inner span {
  display: inline-block;
  font-family: var(--font-headline);
  color: #ffffff;
  font-size: 1.4rem;        /* smaller so we can pack more rows */
  letter-spacing: 0.22em;
  margin-right: 2ch;
  text-transform: uppercase;
}
/* ================= FULLSCREEN PORTFOLIO SHELF ================= */

.portfolio-shelf {
  width: 100%;
  height: 100vh;          /* FULL SCREEN — no exceptions */
  padding: 0;
  margin: 0;

  background: #f4f1ef;

  display: flex;
  align-items: stretch;
  justify-content: center;

  overflow: hidden;        /* prevent growing / overflowing */
}

.portfolio-shelf__inner {
  width: 100%;
  height: 100%;            /* stretch to full screen */
  display: flex;
  border: 1px solid #111;
  background: #faf7f0;
  overflow: hidden;
}

/* ================= BOOK SPINES ================= */

.portfolio-shelf__item {
  display: flex;
  flex-direction: row;
  height: 100%;            /* FORCE full height */
  flex: 0 0 72px;          /* default thin width */
  border-right: 1px solid #111;
  overflow: hidden;

  transition: flex-basis 0.9s cubic-bezier(0.19,1,0.22,1);
}

.portfolio-shelf__item:last-child {
  border-right: none;
}

.portfolio-shelf__item.is-active {
  flex: 1 1 auto;          /* expands horizontally ONLY */
}
/* ===================================================== */
/* EYES GRID PAGE                                        */
/* ===================================================== */

.eyes-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #000000;        /* pure black page */
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.eyes-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;       /* so section gets mouse events */
}

.eyes-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  grid-template-rows: repeat(20, 1fr);
}

.eye {
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye__outer {
  /* size of each mini-logo */
  width: 30%;
  max-width: 50px;
  aspect-ratio: 3 / 1.6;             /* a little wider, like your badge */
  border-radius: 999px;              /* still pill-ish so png edges feel soft */

  /* turn the dot into a logo sprite */
  background-image: url("assets/logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  /* no solid fill anymore */
  background-color: transparent;
  box-shadow: none;

  /* allows the JS opacity + scale wobble to read nicely */
}

.eye__pupil {
  display: none;              /* no inner eye, just a dot */
}

/* ===================================================== */
/* TILTED PHOTO GRID                                     */
/* ===================================================== */

.grid-placeholder {
  position: absolute;
  inset: 0;
  background: #2a2a2a;       /* the tile color */
  opacity: 1;
  transition: opacity 0.5s ease;
}

.grid-gallery {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #050505;
  overflow: hidden;
  touch-action: none; /* allow custom swipe on touch */
  cursor: grab;
}

.grid-gallery.is-dragging {
  cursor: grabbing;
}

.grid-gallery__layer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360vmax;   /* bigger plane */
  height: 360vmax;
  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: center center;
  pointer-events: none;
}
.grid-gallery__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  grid-auto-rows: 1fr;
  gap: var(--grid-gap);             /* ⬅️ MORE SPACE BETWEEN TILES */
}
.grid-gallery__cell {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* 1:1 squares */
  overflow: hidden;
}

.grid-gallery__cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02); /* tiny bleed to hide seams */
}

/* foreground pops a bit more */
.grid-gallery__layer--fg .grid-gallery__cell img {
  filter: contrast(1.1) saturate(1.05);
}

/* background slightly dimmer to sell depth */
.grid-gallery__layer--bg .grid-gallery__cell img {
  opacity: 0.7;
}

html.grid-scroll-locked,
html.grid-scroll-locked body {
  overflow: hidden;
}


/* ================= SPINE BUTTON ================= */

.portfolio-shelf__spine {
  width: 72px;
  height: 100%;            /* full height book spine */
  background: transparent;
  border: none;
  border-right: 1px solid #111;

  writing-mode: vertical-rl;
  /* transform: rotate(180deg); */

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;

  transition: 0.5s ease;
}

.portfolio-shelf__item.is-active .portfolio-shelf__spine {
  background: #111;
  color: #faf7f0;
  letter-spacing: 0.3em;
}

/* ================= PANEL CONTENT ================= */

.portfolio-shelf__panel {
  height: 100%;            /* LOCK height */
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 3rem;

  padding: 3rem;

  opacity: 0;
  transform: translateX(25px);

  transition:
    opacity 0.6s ease 0.1s,
    transform 1s cubic-bezier(0.19,1,0.22,1);
  pointer-events: none;
}

.portfolio-shelf__item.is-active .portfolio-shelf__panel {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.portfolio-shelf__image {
  height: 100%;
  border: 1px solid #111;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-shelf__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ===================================================== */
/* FOOTER                                                */
/* ===================================================== */

.footer {
  margin-top: auto;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3.25rem clamp(1.8rem, 7vw, 6rem) 1.8rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: flex-start;
}

.footer__brand {
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.1rem;
}

.footer__subtitle {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.footer__text {
  margin: 0.8rem 0 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.82);
}

.footer__heading {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.footer__link {
  display: inline-block;
  font-size: 0.9rem;
  margin-top: 0.1rem;
  text-decoration: none;
  position: relative;
}

.footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 1px;
  background: var(--footer-text);
  transition: width 0.23s ease;
}

.footer__link:hover::after {
  width: 100%;
}

.footer__bottom {
  margin-top: 2.25rem;
  border-top: 1px solid rgba(245, 240, 232, 0.16);
  padding-top: 0.9rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.75);
}

/* ===================================================== */
/* RESPONSIVE                                            */
/* ===================================================== */

@media (max-width: 960px) {
  .hero__logo-img {
    height: 26px;
  }

  .hero__credits--left,
  .hero__credits--right {
    display: none;
  }

  .about__inner {
    grid-template-columns: 1fr;
  }

  .about-nav {
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
    margin-top: 0.4rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-inline: 1.4rem;
  }

  .hero__nav {
    font-size: 0.6rem;
    gap: 0.9rem;
  }

  .hero__copy {
    max-width: none;
    letter-spacing: 0.12em;
  }
}
/* ===================================================== */
/* GRID GALLERY OVERLAY (TEXT + BUTTON, FIXED)           */
/* ===================================================== */

.grid-gallery__overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* lets drag events hit the background */
}

.grid-gallery__overlay-inner {
  pointer-events: auto; /* but overlay content stays clickable */
  max-width: 420px;
  padding: 2.4rem 2.8rem;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  color: #f5f5f5;
}

.grid-gallery__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}

.grid-gallery__heading {
  margin: 0 0 0.6rem;
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.1rem;
}

.grid-gallery__copy {
  margin: 0 0 1.2rem;
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(245, 245, 245, 0.76);
}

.grid-gallery__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 245, 245, 0.9);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.grid-gallery__btn--primary {
  background: #f5f5f5;
  color: #000;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}

.grid-gallery__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.7);
}

/* ===================================================== */
/* IMAGES INSIDE THE TILTED GRID                         */
/* ===================================================== */

.grid-gallery__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  grid-auto-rows: 1fr;
  gap: var(--grid-gap);
}

.grid-gallery__cell {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* squares */
  overflow: hidden;
}

.grid-gallery__cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04); /* hide seams inside tilted grid */
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
    filter 0.4s ease, opacity 0.4s ease;
}

/* hover: make tiles pop a bit */
.grid-gallery__cell:hover img {
  transform: scale(1.12);
  filter: brightness(1.1) contrast(1.1) saturate(1.05);
}
