/* Global Reset & Custom Variable System */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --purple: #5820b6;
  --purple-glow: rgba(88, 32, 182, 0.35);
  --purple-bright: #7c3aed;
  --dark: #050508;
  --dark-accent: #0b0b12;
  --white: #ffffff;
  --black: #000000;
  --gray-light: #e2e2ec;
  --gray-muted: #646478;
  --font-syne: 'Syne', sans-serif;
  --font-grotesk: 'Space Grotesk', sans-serif;
  --font-inter: 'Inter', sans-serif;

  /* Adobe Fonts: Carbon & Loos */
  --font-carbon: "t26-carbon", monospace;
  --font-carbon-thin: "t26-carbon", monospace; /* Hooked to Carbon 400; ready to swap when real thin font file is added */
  --font-loos: "loos-normal", sans-serif;
  --font-loos-compressed: "loos-compressed", sans-serif;
  --font-loos-condensed: "loos-condensed", sans-serif;
  --font-loos-wide: "loos-wide", sans-serif;
  --font-loos-extrawide: "loos-extrawide", sans-serif;
  --font-loos-extended: "loos-extended", sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: clip; /* clip (not hidden) so position: sticky keeps working */
  color: var(--white);
  font-family: var(--font-inter);
}

html {
  scroll-behavior: smooth;
  background-color: var(--black);
}

body {
  min-height: 100vh;
  cursor: none; /* Hide default cursor */
}

/* Hide scrollbar completely across all browsers */
html, body, * {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE and Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar,
::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* ================================================================
   SITE PRELOADER - "ENTERING THE VOID"
   ================================================================ */
html.is-loading,
body.is-loading {
  overflow: hidden !important;
  height: 100% !important;
  max-height: 100vh !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
}

body.is-loading .custom-cursor,
body.is-loading #cursor-canvas {
  opacity: 0 !important;
  pointer-events: none !important;
}

html:not(.is-loading) #js-preloader {
  display: none !important;
}

.site-preloader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #703edb;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 clamp(24px, 4vw, 56px);
  box-sizing: border-box;
  overflow: hidden;
  user-select: none;
  pointer-events: all;
  cursor: default;
  transition: transform 0.75s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.site-preloader.is-exiting {
  transform: translateY(-100%);
  pointer-events: none;
}

.site-preloader.is-done {
  display: none !important;
}

.preloader-inner {
  display: flex;
  align-items: baseline;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  font-family: var(--font-carbon);
  font-size: clamp(14px, 1.15vw, 22px);
  font-weight: 700;
  color: #08080c;
  letter-spacing: normal;
  text-transform: uppercase;
  line-height: 1;
}

.preloader-title {
  flex-shrink: 0;
  letter-spacing: normal;
}

.preloader-slashes {
  display: inline-block;
  white-space: nowrap;
  letter-spacing: 0.08em;
  word-break: keep-all;
  overflow: hidden;
}

/* Custom Cursor - Cursor.svg */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  background: url('Assets/Cursor.svg') no-repeat center center;
  background-size: contain;
  pointer-events: none;
  z-index: 999999;
  transform: translate3d(-50%, -50%, 0);
  display: none;
}

/* Fullscreen Lightning Canvas */
#cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999995;
  pointer-events: none;
}

/* Disable custom cursor on touch devices */
@media (pointer: coarse) {
  body {
    cursor: auto;
  }
  .custom-cursor, #cursor-canvas {
    display: none !important;
  }
}

/* Dynamic Particle Space Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}


/* Top Navigation Bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 25px 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1001; /* Above the nav overlay so Explore/Escape stays visible */
}

.logo-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-logo-svg {
  width: 100%;
  height: 100%;
  fill: var(--purple);
  transition: fill 0.3s ease;
}

.menu-trigger-btn {
  background: none;
  border: none;
  color: #adadad;
  font-family: var(--font-carbon);
  font-size: clamp(15px, 1.15vw, 22px);
  font-weight: 700;
  letter-spacing: normal;
  text-transform: uppercase;
  cursor: none;
  padding: 8px 16px;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
  position: relative;
}

.menu-trigger-btn:hover {
  color: var(--purple-bright);
  letter-spacing: 0.04em;
}

/* Fullscreen Navigation Overlay (slides down from top) */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  color: #08080c;
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s ease;
}

.nav-overlay.active {
  visibility: visible;
  transform: translateY(0);
}

.nav-overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #703edb;
  z-index: -1;
}

/* Title graphic (top centre) */
.nav-title-img {
  position: absolute;
  top: 8vh;
  left: 50%;
  transform: translateX(-50%);
  height: 12vh;
  width: auto;
  pointer-events: none;
}

/* Side HUD decorations */
.nav-deco {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 72vh;
  width: auto;
  pointer-events: none;
}

.nav-deco-left {
  left: 7.3vw;
}

.nav-deco-right {
  right: 7.3vw;
}

/* Side labels - horizontally centered between the two vertical HUD lines */
.nav-side-label {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-carbon);
  font-size: clamp(11px, 0.95vw, 15px);
  font-weight: 400;
  letter-spacing: normal;
  white-space: nowrap;
  text-transform: uppercase;
}

.nav-side-left {
  left: calc(7.3vw + (72vh * 15.025 / 77.91));
  transform: translate(-50%, -50%);
}

.nav-side-right {
  right: calc(7.3vw + (72vh * 14.975 / 77.91));
  transform: translate(50%, -50%);
}

.nav-dash {
  display: block;
  width: clamp(28px, 2.6vw, 48px);
  height: 1px;
  background: #08080c;
}

/* Centre links */
.nav-menu {
  /* ==============================================================
     NAV LINKS SIZE & SPACING CONTROLS (Photoshop Shift-Transform)
     --nav-menu-scale : Scale factor for all 4 links as one whole group (1.0 = original, 1.32 = target image size)
     --nav-menu-gap   : Vertical spacing between each text link (e.g. 0px, 8px, 14px)
     ============================================================== */
  --nav-menu-scale: 1.32;
  --nav-menu-gap: 2.5px;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--nav-menu-scale, 1.32));
  transform-origin: center center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--nav-menu-gap, 0px);
}

.nav-link {
  text-decoration: none;
  font-family: var(--font-carbon-thin);
  font-size: clamp(2rem, 6.5vh, 80px);
  font-weight: 100;
  text-transform: uppercase;
  letter-spacing: normal;
  color: #08080c;
  position: relative;
  transition: opacity 0.3s ease, transform 0.3s ease;
  line-height: 0.8;
}

.nav-char {
  display: inline-block;
  white-space: pre;
}

/* One-time sequential letter blink on hover (start letter to end) */
.nav-link:hover .nav-char,
.nav-link.is-blinking .nav-char {
  animation: navLetterBlink 0.28s ease-in-out both;
  animation-delay: calc(var(--char-i, 0) * 0.08s);
}

@keyframes navLetterBlink {
  0% {
    opacity: 1;
  }
  35% {
    opacity: 0;
  }
  70% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.nav-link span {
  display: inline-block;
}

/* Stagger animations for links on load */
.nav-overlay.active .nav-link {
  animation: slideInLink 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
.nav-overlay.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav-overlay.active .nav-link:nth-child(2) { animation-delay: 0.16s; }
.nav-overlay.active .nav-link:nth-child(3) { animation-delay: 0.22s; }
.nav-overlay.active .nav-link:nth-child(4) { animation-delay: 0.28s; }

@keyframes slideInLink {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-link:hover {
  opacity: 1;
}

/* Contact links (bottom) */
.nav-contact {
  position: absolute;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 32px;
  white-space: nowrap;
}

.nav-contact-link {
  text-decoration: none;
  font-family: var(--font-carbon);
  font-size: clamp(13px, 1.05vw, 20px);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #08080c;
  position: relative;
  transition: opacity 0.3s ease;
}

.nav-contact-link:hover {
  opacity: 1;
}

/* ================================================================
   HERO SECTION — Normal flowing layout
   ================================================================ */
.section-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 5%;
  z-index: 2;
  background: transparent;
}

.hero-columns {
  width: 100%;
  max-width: 1400px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  gap: 20px;
}

/* Left Column: Custom SVG Name Box */
.hero-col-left {
  display: flex;
  justify-content: flex-start;
}

.name-box-wrapper {
  position: relative;
  /* hero box SVG (27 x 14.38 viewBox, visible box ~200px wide) */
  width: 258px;
  height: 137px;
  margin-left: -38px;
  flex: none;
}

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

/* Cross inside the hero box SVG: pops up after the box has slid in, then rotates continuously */
.name-box-svg .hb-cross {
  transform-box: fill-box;
  transform-origin: center;
}

.name-box-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}


@keyframes rotateCross {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Center Column: 3D Logo / Placeholder */
.hero-col-center {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.logo-3d-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#logo-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  cursor: grab;
}

#logo-3d-canvas:active {
  cursor: grabbing;
}

.logo-shadow-glow {
  position: absolute;
  bottom: 0px;
  width: 110px;
  height: 18px;
  border-radius: 50%;
  background: var(--purple);
  filter: blur(25px);
  opacity: 0.3;
  z-index: -1;
}

/* Right Column: Tagline & Scrolling Blocks */
.hero-col-right {
  display: flex;
  justify-content: flex-end;
}

.tagline-wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.hero-tagline {
  margin: 0;
  display: flex;
  justify-content: flex-end;
}

.hero-tagline-svg {
  width: clamp(170px, 14.5vw, 220px);
  height: auto;
  display: block;
}

/* Paradoxed strip: as wide as the tagline text, loops right to left with no gap */
.blocks-marquee-container {
  width: 0;
  min-width: 100%;
  height: 56px;
  overflow: hidden;
  position: relative;
  border: none;
  background: transparent;
}

.blocks-marquee-track {
  display: flex;
  width: max-content;
  height: 100%;
  gap: 0;
  margin: 0;
  padding: 0;
  animation: marqueeLoop 24s linear infinite;
}

.blocks-marquee-img {
  flex: none;
  height: 100%;
  width: auto;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
}
@keyframes marqueeLoop {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Scroll Dive Indicator */
.scroll-dive-indicator {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--gray-muted);
  font-family: var(--font-carbon);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.dive-chevron {
  animation: bounceChevron 2s infinite ease-in-out;
  color: var(--purple-bright);
}

.scroll-dive-indicator:hover {
  color: var(--white);
}

@keyframes bounceChevron {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* ================================================================
   HORIZONTAL WORKS SECTION (Scroll-driven Pinned Gallery)
   ================================================================ */
.section-works {
  position: relative;
  width: 100vw;
  height: 460vh; /* scroll runway */
  z-index: 2;
  background: transparent;
}

.works-sticky {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.works-track {
  display: flex;
  align-items: center;
  height: 100vh;
  width: max-content;
  will-change: transform;
  gap: 12vw;
  padding-left: calc(50vw - 24vw);
  padding-right: calc(50vw - 25vw);
}

.work-item {
  flex-shrink: 0;
  width: var(--w);
  max-width: 900px;
  min-width: 200px;
  position: relative;
  display: flex;
  pointer-events: auto;
  will-change: transform, opacity;
  opacity: 0;
}

.work-item-big {
  align-self: center;
}

.work-item-small.work-item-top {
  align-self: flex-start;
  margin-top: 9vh;
}

.work-item-small.work-item-bottom {
  align-self: flex-end;
  margin-bottom: 9vh;
}

.work-item-link {
  display: block;
  width: 100%;
  height: auto;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
}

.work-img {
  width: 100%;
  height: auto;
  aspect-ratio: 2752 / 1536;
  object-fit: cover;
  display: block;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border-radius: 2px;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* End of Works: Project Card styled >>> MEET MORE DIMENSIONS? <<< button */
.work-item-discover {
  align-self: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: auto;
}

.works-discover-card {
  width: 100%;
  aspect-ratio: 2752 / 1536;
  background-color: #6F3EDB;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.works-discover-text {
  font-family: var(--font-carbon);
  font-weight: 700;
  font-size: clamp(16px, 1.8vw, 32px);
  color: #08080c;
  letter-spacing: 0em;
  text-transform: uppercase;
  user-select: none;
  text-align: center;
  line-height: 1.0;
}

/* ================================================================
   STORY (About) SECTION — box structure from "about box structure.svg"
   All inner sizes use cqw (1cqw = 1% of the box width) so the layout
   scales exactly like the structure svg (viewBox 150 x 66).
   ================================================================ */
.section-story {
  position: relative;
  width: 100vw;
  height: 175vh;
  z-index: 2;
  background: transparent;
}

.story-container {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.story-box-wrapper {
  /* ==============================================================
     ABOUT BOX RIGHT-EDGE EXTENSION CONTROL
     --about-box-extend : Extra width added to the right vertical line
                          (in % of base box width, e.g. 3, 4, 5).
                          The whole box stays centred on screen and
                          both person images automatically re-centre
                          between the paragraph and the new right edge.
     ============================================================== */
  --about-box-extend: 3;

  position: relative;
  aspect-ratio: 150 / 72;
  width: min(84vw, 1380px, calc(82vh * (150 / 72)));
  max-height: 82vh;
  margin-right: calc(var(--about-box-extend, 3) * 1cqw);
  container-type: inline-size;
  overflow: visible;
  clip-path: inset(0 calc(-1 * var(--about-box-extend, 3) * 1cqw) -1px 0); /* -1px bottom lets the photo bleed past the purple anti-aliased edge (no hairline) */
  color: #08080c;
  transform: scale(0.93);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-box-wrapper.reveal-box {
  transform: scale(1);
  opacity: 1;
}

.story-box-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% + var(--about-box-extend, 3) * 1cqw);
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

/* SVG polygon drawing - clean filled box, no white stroke outline */
.story-box-svg polygon {
  stroke: none;
  stroke-width: 0;
  fill: #6f3edb;
  fill-opacity: 0;
  transition: fill-opacity 0.8s ease-in-out 0.2s;
}

.story-box-wrapper.reveal-box .story-box-svg polygon {
  fill-opacity: 1;
}

/* Everything inside the box fades in after the structure has drawn */
.about-photo,
.about-text,
.about-foot {
  position: absolute;
  z-index: 1;
  opacity: 0;
  transform: translateY(1cqw);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-box-wrapper.reveal-box .about-photo,
.story-box-wrapper.reveal-box .about-text,
.story-box-wrapper.reveal-box .about-foot {
  opacity: 1;
  transform: translateY(0);
}

.story-box-wrapper.reveal-box .about-text { transition-delay: 1.9s; }
.story-box-wrapper.reveal-box .about-foot { transition-delay: 2.1s; }
.story-box-wrapper.reveal-box .about-photo { transition-delay: 1.7s; }

/* Right side - portrait (touching bottom, instant swap ONLY when hovering over image area) */
.about-photo {
  bottom: 0;
  right: 0;
  width: 36cqw;
  height: 100%;
  pointer-events: auto;
  cursor: none;
}

.about-photo img {
  position: absolute;
  bottom: -1px; /* 1px bleed prevents sub-pixel purple hairline at bottom edge */
  display: block;
  transition: none !important; /* instant surprise feel */
}

.about-photo-default,
.about-photo img.about-photo-default {
  /* ==============================================================
     ABOUT DEFAULT PERSON IMAGE CONTROLS (about image.png)
     Auto-centred between paragraph right edge and right box edge.
     --default-img-x : Fine-tune X-axis (e.g. 5px right, -5px left)
     --default-img-y : Fine-tune Y-axis (e.g. -5px up, 5px down)
     ============================================================== */
  --default-img-x: 0px;
  --default-img-y: 0px;

  right: calc((0.21 - 0.5 * var(--about-box-extend, 3)) * 1cqw);
  bottom: -1px;
  width: 35cqw;
  height: auto;
  opacity: 1;
  transform: translate(var(--default-img-x), var(--default-img-y));
}

.about-photo-hover,
.about-photo img.about-photo-hover {
  /* ==============================================================
     ABOUT HOVER PERSON IMAGE CONTROLS (about image hover.png)
     Auto-centred between paragraph right edge and right box edge.
     --hover-img-scale : Increase/decrease whole size (e.g. 0.95, 1.0, 1.1)
     --hover-img-x     : Fine-tune X-axis (e.g. 12px moves right, -12px moves left)
     --hover-img-y     : Fine-tune Y-axis (e.g. -10px moves up, 10px moves down)
     ============================================================== */
  --hover-img-scale: 0.95;
  --hover-img-x: 0px;
  --hover-img-y: 0px;

  right: calc((17.925 - 0.5 * var(--about-box-extend, 3) - 21.868 * var(--hover-img-scale, 0.95)) * 1cqw);
  bottom: -1px;
  height: 46.6cqw;
  width: auto;
  max-width: none;
  opacity: 0;
  transform-origin: bottom right;
  transform: translate(var(--hover-img-x), var(--hover-img-y)) scale(var(--hover-img-scale));
}

.about-photo:hover .about-photo-default {
  opacity: 0;
}

.about-photo:hover .about-photo-hover {
  opacity: 1;
}

/* Left side - top slash icons + para svg */
.about-head {
  position: absolute;
  z-index: 1;
  left: 4.75cqw;
  top: 2.6cqw;
  width: 59.4cqw;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  overflow: visible;
}

.about-head img {
  display: block;
  height: auto;
}

/* Slash slides in from the left end of the about box */
.about-slash {
  width: 44.4cqw;
  opacity: 0;
  transform: translateX(-55cqw);
  transition: opacity 0.35s ease, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-box-wrapper.reveal-box .about-slash {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 1.5s;
}

/* Paragraph symbol does its current rise/fade only AFTER the slash finishes */
.about-top-para {
  width: 13.1cqw;
  opacity: 0;
  transform: translateY(1cqw);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-box-wrapper.reveal-box .about-top-para {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 2.35s;
}

/* GODX + dash line with black band + role labels (matching 3rd uploaded image) */
.about-tag {
  position: absolute;
  z-index: 1;
  left: 4.75cqw;
  top: 9cqw;
  width: 59.4cqw;
  height: 1.69cqw;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.story-box-wrapper.reveal-box .about-tag {
  opacity: 1;
  transition-delay: 1.8s;
}

.about-dash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* GODX slides UP from inside the dashline */
.about-godx-wrap {
  position: absolute;
  left: 0;
  top: 0;
  width: 5.1cqw;
  height: 1.57cqw;
  overflow: hidden;
}

.about-godx {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(115%);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-box-wrapper.reveal-box .about-godx {
  transform: translateY(0);
  transition-delay: 2.0s;
}

/* Roles text slides from LEFT inside of the black area of the dashline */
.about-roles-wrap {
  position: absolute;
  left: 15.2cqw;
  right: 0;
  top: 0;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(1.7cqw 0, 100% 0, 100% 100%, 0 100%);
}

.about-roles {
  position: absolute;
  left: 2.0cqw;
  right: 0.55cqw;
  top: 0;
  height: calc(100% - 0.12cqw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  font-family: var(--font-carbon);
  font-size: clamp(9px, 0.95cqw, 18px);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f3edb;
  transform: translateX(-100%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-box-wrapper.reveal-box .about-roles {
  transform: translateX(0);
  transition-delay: 2.15s;
}

.role-slash {
  font-weight: 400;
  opacity: 0.85;
  padding: 0 0.15cqw;
}

.about-roles sup {
  font-size: 0.55em;
  line-height: 0;
  vertical-align: super;
}

/* About paragraphs */
.about-text {
  left: 4.75cqw;
  top: 13.2cqw;
  width: 59.4cqw;
  display: flex;
  flex-direction: column;
  gap: 1.85cqw;
}

.about-text p {
  font-family: var(--font-carbon);
  font-size: clamp(10px, 1.305cqw, 20px);
  font-weight: 400;
  line-height: 1.36;
  letter-spacing: normal;
  word-spacing: normal;
  color: #08080c;
  margin: 0;
  text-align: left;
}

.about-line {
  display: block;
  text-align: left;
  white-space: nowrap;
  word-spacing: normal;
}

.about-line.about-line-last {
  text-align: left;
  letter-spacing: normal !important;
}

/* Micro-tracking per line so every full line touches the dashline's exact right edge without word gaps */
.about-text p:nth-child(1) .about-line:nth-child(1) { letter-spacing: 0.003em; }
.about-text p:nth-child(1) .about-line:nth-child(2) { letter-spacing: 0.021em; }
.about-text p:nth-child(1) .about-line:nth-child(3) { letter-spacing: 0.039em; }
.about-text p:nth-child(1) .about-line:nth-child(4) { letter-spacing: 0.010em; }

.about-text p:nth-child(2) .about-line:nth-child(1) { letter-spacing: 0em; }
.about-text p:nth-child(2) .about-line:nth-child(2) { letter-spacing: 0.053em; }
.about-text p:nth-child(2) .about-line:nth-child(3) { letter-spacing: 0.018em; }
.about-text p:nth-child(2) .about-line:nth-child(4) { letter-spacing: 0.007em; }

.about-text p:nth-child(3) .about-line:nth-child(1) { letter-spacing: 0.077em; }
.about-text p:nth-child(3) .about-line:nth-child(2) { letter-spacing: 0.026em; }

/* Bottom - icons + names */
.about-foot {
  left: 4.75cqw;
  top: 42.5cqw;
  width: 59.4cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-icons {
  display: flex;
  align-items: center;
  gap: 1.1cqw;
  margin-left: 2.5cqw;
}

.about-icons img {
  height: 3cqw;
  width: auto;
  display: block;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.story-box-wrapper.reveal-box .about-icons img:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 2.0s; }
.story-box-wrapper.reveal-box .about-icons img:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 2.2s; }
.story-box-wrapper.reveal-box .about-icons img:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 2.4s; }
.story-box-wrapper.reveal-box .about-icons img:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 2.6s; }
.story-box-wrapper.reveal-box .about-icons img:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 2.8s; }

.about-names {
  display: flex;
  align-items: center;
}

.about-names-svg {
  height: 1.056cqw;
  width: auto;
  display: block;
}

/* Story responsive: simple stacked card on narrow screens */
@media (max-width: 900px) {
  .section-story {
    height: auto;
    min-height: 100vh;
    padding: 100px 4vw;
  }

  .story-container {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
  }

  .story-box-wrapper {
    width: 100%;
    max-height: none;
    aspect-ratio: auto;
    margin-right: 0;
    container-type: normal;
    overflow: hidden;
    clip-path: none;
    padding: 8% 6%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #6f3edb;
  }

  .story-box-svg {
    display: none;
  }

  .about-photo,
  .about-head,
  .about-tag,
  .about-text,
  .about-foot {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
  }

  .about-head { gap: 12px; }
  .about-slash { width: 70%; }
  .about-top-para { width: 24%; }
  .about-tag { height: 22px; }
  .about-godx { width: 70px; }
  .about-roles { font-size: 7px; left: 90px; }
  .about-text { gap: 14px; }
  .about-text p { font-size: 0.82rem; text-align: left; }
  .about-line,
  .about-line.about-line-last {
    display: inline;
    white-space: normal;
    text-align: left;
    text-align-last: left;
    letter-spacing: normal !important;
  }
  .about-photo { order: 5; height: auto; display: flex; justify-content: center; }
  .about-photo img,
  .about-photo img.about-photo-default { position: relative; right: auto; width: 70%; transform: none; }
  .about-photo-hover { display: none; }
  .about-foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .about-icons { margin-left: 0; }
  .about-icons img { height: 26px; }
  .about-names { width: 100%; }
  .about-names-svg { height: 16px; width: auto; max-width: 100%; }
}

/* ================================================================
   SIGNAL (Contact) SECTION — a purple card rising from the bottom
   ================================================================ */
.section-signal {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  padding-top: 19.4vh;
  z-index: 2;
  background-color: transparent;
}

.signal-card {
  position: relative;
  width: 100%;
  min-height: 80.6vh;
  display: flex;
  flex-direction: column;
  padding: 8.7vh 3.1vw 5vh;
  background: #6f3edb;
  color: #08080c;
  clip-path: polygon(0 0, calc(100% - 3.3vw) 0, 100% 3.3vw, 100% 100%, 0 100%);
  transform: translateY(25vh);
  opacity: 0;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}

.signal-card.is-in {
  transform: translateY(0);
  opacity: 1;
}

.signal-grid {
  display: grid;
  grid-template-columns: 39vw 1fr;
  align-items: start;
}

.signal-heading {
  font-family: var(--font-loos-extended);
  font-size: clamp(32px, 3.8vw, 56px);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: #08080c;
   margin-left: -2.5px;
}

.signal-status {
  margin-top: 8vh;
  display: flex;
  align-items: center;
  gap: 0.8vw;
}

.signal-status-logo {
  width: 4.4vw;
  height: auto;
  display: block;
}

.signal-status-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-carbon);
  font-size: clamp(12px, 1.05vw, 20px);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.5;
  text-transform: uppercase;
}

.signal-status-open {
  animation: signalSlowBlink 1s ease-in-out infinite;
}

@keyframes signalSlowBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.signal-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3.8vh;
  width: 100%;
}

.signal-fields {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto clamp(120px, 14.5vh, 180px) auto;
  column-gap: clamp(24px, 3.2vw, 48px);
  row-gap: 0;
}

.form-group-inline {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  border-bottom: 1px solid #08080c;
  padding-bottom: 4px;
  width: 100%;
  cursor: text;
}

.form-group-name {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}

.form-group-email {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
}

.form-inline-label {
  font-family: var(--font-carbon);
  font-size: clamp(13px, 1.05vw, 20px);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #08080c;
  flex-shrink: 0;
  user-select: none;
  cursor: text;
}

.form-input-inline {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-carbon);
  font-size: clamp(13px, 1.05vw, 20px);
  font-weight: 400;
  letter-spacing: normal;
  color: #08080c;
  padding: 0;
  margin: 0;
  cursor: text;
  border-radius: 0;
}

.form-msg-label {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  padding-bottom: 5px;
}

.form-label {
  font-family: var(--font-carbon);
  font-size: clamp(13px, 1.05vw, 20px);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #08080c;
}

.form-textarea {
  grid-column: 2;
  grid-row: 2;
  height: 100%;
  width: 100%;
  background: transparent;
  border: 1px solid #08080c;
  padding: 10px 12px;
  font-family: var(--font-carbon);
  font-size: clamp(13px, 1.05vw, 18px);
  font-weight: 400;
  letter-spacing: normal;
  color: #08080c;
  outline: none;
  resize: none;
  border-radius: 0;
}

.form-textarea:focus {
  outline: 1px solid #08080c;
}

.form-submit-wrap {
  grid-column: 1;
  grid-row: 3;
  margin-top: clamp(16px, 2.4vh, 28px);
  margin-left: -1px;
}

/* BEAM IT button — chamfered corner matching Image 3 (exact 45deg bottom-right chamfer) */
.form-submit-btn {
  position: relative;
  background: transparent;
  border: none;
  outline: none;
  color: #08080c;
  font-family: var(--font-carbon);
  font-size: clamp(13px, 1.05vw, 20px);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: uppercase;
  padding: 0;
  width: 140px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  overflow: visible;
  z-index: 1;
  transition: color 0.4s ease, transform 0.2s ease;
}

.form-submit-btn span {
  position: relative;
  z-index: 2;
  margin-top: -1px;
}

.beam-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}

.beam-fill {
  fill: #08080c;
  transform-box: fill-box;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.beam-stroke {
  fill: none;
  stroke: #08080c;
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  color: #6f3edb;
}

.form-submit-btn:hover .beam-fill {
  transform: scaleX(1);
}

/* Card footer: Omar Mansoor plate, copyright, social media platforms */
.signal-card-footer {
  margin-top: auto;
  display: grid;
  grid-template-columns: 39vw 1fr;
  align-items: end;
  padding-top: 6vh;
}

.signal-footer-left {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.signal-footer-right {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
}

.signal-omar {
  width: 9vw;
  min-width: 80px;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}

.signal-footer-copy,
.signal-footer-links a {
  font-family: var(--font-carbon);
  font-size: clamp(12px, 1.05vw, 20px);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #08080c;
}

.signal-footer-copy {
  padding-bottom: 1vh;
  white-space: nowrap;
  margin-left: -1px;
}

.signal-footer-links {
  display: flex;
  align-items: center;
  gap: clamp(3px, 0.25vw, 5px);
  padding-bottom: 1vh;
  font-family: var(--font-carbon);
  font-size: clamp(12px, 1.05vw, 20px);
  font-weight: 400;
  color: #08080c;
}

.signal-footer-links a {
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.signal-footer-links a:hover {
  opacity: 0.55;
}

@media (max-width: 900px) {
  .signal-card {
    padding: 8vh 6vw 5vh;
  }

  .signal-grid {
    grid-template-columns: 1fr;
    gap: 6vh;
  }

  .signal-fields {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    row-gap: 20px;
  }

  .form-group-name {
    grid-column: 1;
    grid-row: 1;
  }

  .form-group-email {
    grid-column: 1;
    grid-row: 2;
  }

  .form-msg-label {
    grid-column: 1;
    grid-row: 3;
    padding-bottom: 0;
  }

  .form-textarea {
    grid-column: 1;
    grid-row: 4;
    height: 120px;
  }

  .form-submit-wrap {
    grid-column: 1;
    grid-row: 5;
    margin-top: 10px;
  }

  .signal-heading {
    font-size: 2.4rem;
  }

  .signal-status-logo {
    width: 56px;
  }

  .signal-card-footer {
    grid-template-columns: 1fr;
    row-gap: 18px;
    align-items: start;
  }

  .signal-footer-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .signal-footer-links {
    flex-wrap: wrap;
    gap: 5px;
  }

  .form-submit-btn {
    width: 140px;
  }
}

/* Responsive Grid and Mobile Adjustments */
@media (max-width: 1024px) {
  .hero-columns {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 40px;
    justify-items: center;
  }
  
  .hero-col-left {
    justify-content: center;
    grid-row: 1;
  }
  
  .hero-col-center {
    grid-row: 2;
  }
  
  .hero-col-right {
    justify-content: center;
    grid-row: 3;
  }
  
  .logo-3d-wrapper {
    width: 320px;
    height: 320px;
  }
  
}

@media (max-width: 480px) {

  .name-box-wrapper {
    width: 232px;
    height: 123px;
    margin-left: -34px;
  }
  
  .hero-tagline {
    font-size: 1.2rem;
    text-align: center;
  }
  
  .blocks-marquee-container {
    height: 44px;
  }
}

/* ================================================================
   TOP BAR — Explore / Escape trigger with Cross.svg
   ================================================================ */
.menu-trigger-btn {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-cross-icon {
  width: 14px;
  height: 14px;
  display: block;
  transform: rotate(0deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

/* Nav open: Explore -> Escape, cross turns 45deg (plus becomes x), dark on purple */
body.nav-open .menu-cross-icon {
  transform: rotate(45deg);
  filter: brightness(0);
}

body.nav-open .menu-trigger-btn,
body.nav-open .menu-trigger-btn:hover {
  color: #08080c;
}

/* Nav open or over purple backgrounds (About box, Contact card): Cursor turns solid black, flash disabled */
body.nav-open .custom-cursor,
body.cursor-dark .custom-cursor {
  filter: brightness(0) !important;
}

body.nav-open #cursor-canvas,
body.cursor-dark #cursor-canvas {
  display: none !important;
}

/* Logo is hidden while the nav screen is open (nav title takes its place) */
.logo-link {
  transition: opacity 0.3s ease;
}

body.nav-open .logo-link {
  opacity: 0;
  pointer-events: none;
}

/* ================================================================
   HERO INTRO SEQUENCE
   1) Name box slides in from the left, tagline / logo / explore text fade in
   2) Cross.svg (name box + Explore) pops up simultaneously, last
   ================================================================ */
:root {
  --box-slide-duration: 1.1s;
  --box-slide-delay: 0.2s;
  --fade-duration: 0.9s;
  --fade-delay: 0.2s;
  /* Pop starts only after both the slide and the fade have fully completed */
  --cross-pop-delay: 1.5s;
}

/* Hero intro default state: held static while preloader is active */
body:not(.site-loaded) .name-box-wrapper {
  transform: translateX(-100vw);
  animation: none !important;
}

body:not(.site-loaded) .tagline-wrapper,
body:not(.site-loaded) .logo-link,
body:not(.site-loaded) .menu-label {
  opacity: 0;
  animation: none !important;
}

body:not(.site-loaded) .name-box-svg .hb-cross,
body:not(.site-loaded) .menu-cross-icon {
  transform: scale(0);
  animation: none !important;
}

/* Hero intro active state: triggers once preloader finishes and site-loaded is added */
body.site-loaded .name-box-wrapper {
  animation: boxSlideIn var(--box-slide-duration) cubic-bezier(0.22, 1, 0.36, 1) var(--box-slide-delay) backwards;
}

body.site-loaded .tagline-wrapper,
body.site-loaded .logo-link,
body.site-loaded .menu-label {
  animation: introFade var(--fade-duration) ease var(--fade-delay) backwards;
}

body.site-loaded .name-box-svg .hb-cross {
  animation: crossPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) var(--cross-pop-delay) backwards,
             rotateCross 12s linear calc(var(--cross-pop-delay) + 0.55s) infinite;
}

body.site-loaded .menu-cross-icon {
  animation: crossPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) var(--cross-pop-delay) backwards;
}

@keyframes boxSlideIn {
  from { transform: translateX(-100vw); }
  to   { transform: translateX(0); }
}

@keyframes introFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes crossPop {
  0%   { transform: scale(0); }
  100% { transform: scale(1); }
}

/* ================================================================
   QUOTE SECTION (between hero and works)
   ================================================================ */
.section-quote {
  position: relative;
  width: 100vw;
  /* 100vh pinned view + scroll runway that drives the reveal (removed by JS once fully revealed) */
  height: calc(100vh + var(--quote-runway, 250vh));
  z-index: 2;
  background: transparent;
  overflow-anchor: none;
}

.section-quote.quote-done {
  height: 100vh;
}

.quote-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4%;
}

.quote-text {
  /* Scaled down proportionally like Photoshop layer transform */
  --q-fs: clamp(24px, min(5.6vw, 10.2vh), 115px);
  font-size: var(--q-fs);
  width: calc(11.2 * var(--q-fs));
  max-width: 90vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  font-family: var(--font-carbon);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: uppercase;
  color: #6f3edb;
  transform-origin: center center;
  transform: scale(var(--quote-scale, 1));
  will-change: transform;
}

.quote-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  white-space: nowrap;
  letter-spacing: normal;
}

.quote-line:last-child {
  justify-content: flex-start;
}

.q-group {
  display: inline-flex;
  align-items: center;
  gap: 0.12em;
}

.q-word {
  display: inline-block;
  letter-spacing: normal;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.q-word.visible {
  opacity: 1;
  transform: translateY(0);
}

.q-emoji {
  display: inline-flex;
  align-items: center;
  height: 0.62em;
  opacity: 0;
  transform: scale(0);
}

.q-emoji.visible {
  opacity: 1;
  animation: emojiPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes emojiPop {
  0%   { transform: scale(0); opacity: 0; }
  75%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.q-emoji img,
.q-emoji svg {
  height: 100%;
  width: auto;
  display: block;
}


/* ================================================================
   QUOTE EMOJIS — continuous "gif feel" loops, start after the pop-up
   (JS adds .live once an emoji has fully popped)
   ================================================================ */
.q-emoji svg {
  fill: #6f3edb;
}

.q-emoji.live img,
.q-emoji.live svg {
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

/* 1 - pen tool: internal SVG animation (nib draws curve & anchors) */
/* 2 - yin-yang: half turn, pause, repeat */
.q-e2.live img { animation: qHalfTurn 5s ease-in-out infinite; }
/* 3 - aperture swirl: continuous round like the cross */
.q-e3.live img { animation: qSpin 8s linear infinite; }
/* 4 - globe cross: internal SVG seesaw line breathing */
.q-e4 {
  height: 0.65em;
}
/* 5 - recycle arrows: internal SVG animateMotion (arrows slide along triangle track) */
.q-e5 {
  height: 0.85em;
}
/* 8 & 9 - last two SVGs in quote */
.q-e8,
.q-e9 {
  height: 0.60em;
}
/* 6 - smiley: eyes squeeze and return to normal */
.q-e6.live .q-eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: qEyeSqueeze 1.6s ease-in-out infinite;
}
/* 7 - flower eye: internal SVG eyeScan (lifelike random saccadic room scan) */
/* 8 - hex circle: internal SVG circleRotate (only inner circle rotates) */
/* 9 - waves: internal SVG pingPongLines (middle 3 lines slide side-to-side) */

@keyframes qHalfTurn {
  0%, 15%   { transform: rotate(0deg); }
  45%, 65%  { transform: rotate(180deg); }
  95%, 100% { transform: rotate(360deg); }
}
@keyframes qSpin    { to { transform: rotate(360deg); } }
@keyframes qEyeSqueeze {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.12); }
}

/* ================================================================
   WORK GALLERY PAGE (work.html) & SPECIFIC WORK SCREEN (work-detail.html)
   ================================================================ */

.work-page-main {
  min-height: 100vh;
  background-color: var(--black);
  color: var(--white);
  padding: 130px 5vw 100px;
  position: relative;
  z-index: 1;
}

.work-body .logo-link,
.work-body .menu-label,
.work-body .menu-cross-icon,
.work-detail-body .logo-link,
.work-detail-body .menu-label,
.work-detail-body .menu-cross-icon {
  animation: none;
  opacity: 1;
  transform: none;
}

.work-page-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Header: "WORK THAT MEANS EVERYTHING." */
.work-page-header {
  margin-bottom: 70px;
}

.work-page-title {
  font-family: var(--font-carbon);
  font-size: clamp(38px, 6.8vw, 128px);
  font-weight: 400;
  text-transform: uppercase;
  color: #5820b7;
  line-height: 0.78;
  letter-spacing: normal;
  margin: 0;
}

.work-title-means-line {
  display: inline-block;
  white-space: nowrap;
}

/* Asymmetrical Masonry Grid matching 1st uploaded image */
.work-grid {
  --col-standard: clamp(340px, 29vw, 460px);
  --grid-gap: clamp(28px, 4.5vw, 70px);
  --col-expanded: clamp(450px, 38vw, 600px);
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 6vw, 95px);
}

.work-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  width: fit-content;
  max-width: 100%;
}

.work-card-media {
  width: 100%;
  background-color: #121218;
  position: relative;
}

.work-card-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: filter 0.4s ease;
}

.work-card-info {
  margin-top: clamp(24px, 2.3vw, 34px); /* Analyzed from uploaded snippet: ~32px */
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1vw, 15px);          /* Analyzed from uploaded snippet: ~14px */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.work-card-title {
  font-family: var(--font-loos-wide);
  font-size: clamp(20px, 1.8vw, 32px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: normal;
  color: var(--white);
  margin: 0;
  transition: color 0.3s ease;
}

.work-card:hover .work-card-title {
  color: var(--purple-bright);
}

.work-card-desc {
  font-family: var(--font-carbon-thin);
  font-size: clamp(14px, 1.15vw, 22px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: normal;
  color: #8a8a9a;
  margin: 0;
  width: 100%;
  max-width: 100%;
  word-wrap: break-word;
}

/* Row 0: Hero XSTASY card — width aligns with half of 'S' in MEANS */
.work-row-hero {
  display: flex;
  width: 100%;
}

.work-card-xstasy {
  width: var(--xstasy-dynamic-width, min(100%, calc(var(--col-standard) * 1.76 + var(--grid-gap) * 0.5)));
  max-width: 100%;
}

/* Split Rows (Rows 1, 3, 5, 7) */
.work-row-split {
  display: flex;
  flex-direction: row;
  gap: var(--grid-gap);
  align-items: flex-start;
}

.work-card-vertical {
  width: var(--col-standard);
  max-width: var(--col-standard);
}

.work-card-square {
  width: var(--col-standard);
  max-width: var(--col-standard);
}

.work-card-landscape {
  width: var(--col-expanded);
  max-width: var(--col-expanded);
}

/* Row 2: ONE DIMENSION enlarged so its bottom almost equals EUNOBANK */
.work-card-one-dimension {
  width: var(--col-expanded);
  max-width: var(--col-expanded);
}

/* Row 4: OCTOTHORP spans to half of both 7.jpg (Burg) and 10.jpg (Dons) */
.work-card-octothorp {
  width: calc(var(--col-standard) + var(--grid-gap) + (var(--col-standard) * 0.5));
  max-width: 100%;
}

/* Row 6: GOD FIRE enlarged so its bottom almost equals CORPRIGHTS */
.work-card-godfire {
  width: var(--col-expanded);
  max-width: var(--col-expanded);
}

/* Row 8: DEPAR SALON reaches half of CMYK; VERONIQUE shifted right; justified top & bottom */
.work-row-depar-veronique {
  display: flex;
  flex-direction: row;
  gap: var(--grid-gap);
  align-items: flex-start;
}

.work-card-depar {
  width: calc(var(--col-standard) + var(--grid-gap) + (var(--col-standard) * 0.5));
  max-width: 100%;
}

.work-card-veronique {
  /* 1:1 image width equals Depar Salon height (width / 1.777) so both top and bottom match equally */
  width: calc((var(--col-standard) + var(--grid-gap) + (var(--col-standard) * 0.5)) / 1.777);
  max-width: var(--col-standard);
}

/* Row 9: PARVATI HEMP and GREATNESS STUDIO aligned at bottom */
.work-row-split-bottom {
  display: flex;
  flex-direction: row;
  gap: var(--grid-gap);
  align-items: flex-end;
}

@media (max-width: 820px) {
  .work-page-main {
    padding: 100px 6vw 70px;
  }
  .work-page-header {
    margin-bottom: 45px;
  }
  .work-grid {
    gap: 45px;
  }
  .work-row-split,
  .work-row-depar-veronique,
  .work-row-split-bottom {
    flex-direction: column;
    gap: 45px;
  }
  .work-card,
  .work-card-xstasy,
  .work-card-vertical,
  .work-card-square,
  .work-card-landscape,
  .work-card-one-dimension,
  .work-card-octothorp,
  .work-card-godfire,
  .work-card-depar,
  .work-card-veronique {
    width: 100%;
    max-width: 100%;
  }
}

/* ================================================================
   SPECIFIC WORK SCREEN (work-detail.html) matching 2nd uploaded image
   ================================================================ */

.detail-top-nav {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-carbon);
  font-size: clamp(14px, 1.1vw, 20px);
  font-weight: 400;
  color: #8a8a9a;
  transition: color 0.3s ease, transform 0.3s ease;
  letter-spacing: normal;
}

.detail-back-btn:hover {
  color: var(--purple-bright);
  transform: translateX(-4px);
}

.detail-back-arrow {
  font-size: 1.3rem;
  line-height: 1;
}

/* Top header: Title on Left, 2-3 line paragraph on Right */
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 45px;
}

.detail-title {
  font-family: var(--font-carbon);
  font-size: clamp(38px, 7.2vw, 105px);
  font-weight: 400;
  text-transform: uppercase;
  color: #5820b7;
  line-height: 0.85;
  letter-spacing: normal;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.detail-meta-text {
  font-family: var(--font-carbon-thin);
  font-size: clamp(14px, 1.15vw, 22px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: normal;
  color: #9a9ab0;
  max-width: clamp(380px, 36vw, 560px);
  margin: 0;
  padding-top: 10px;
  text-align: left;
}

/* Banner image */
.detail-banner {
  width: 100%;
  overflow: hidden;
  background-color: #121218;
  margin-bottom: clamp(35px, 3.5vw, 55px);
}

.detail-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Story paragraph below banner - Fixed reserved height container ensuring constant banner-to-portrait distance */
.detail-story-block {
  max-width: 920px;
  min-height: clamp(230px, 19vw, 290px);
  height: clamp(230px, 19vw, 290px);
  margin-bottom: clamp(40px, 3.5vw, 60px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.detail-story-text {
  font-family: var(--font-carbon-thin);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: normal;
  color: #8a8a9a;
  margin: 0;
  white-space: pre-line;
}

/* Presentation slides list matching Image 2 */
.detail-slides-list {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 32px);
  width: 100%;
}

/* 2 portraits horizontally arranged */
.detail-row-portraits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 32px);
  width: 100%;
}

.detail-portrait-item {
  width: 100%;
  overflow: hidden;
  background-color: #0b0b12;
}

.detail-portrait-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 2 slides vertically stacked (full width banners) */
.detail-slide-stacked {
  width: 100%;
  overflow: hidden;
  background-color: #0b0b12;
}

.detail-slide-stacked img {
  width: 100%;
  height: auto;
  display: block;
}

/* "GO BEYOND" Chamfered Button above footer line */
.detail-beyond-wrap {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: clamp(40px, 4vw, 60px);
  margin-bottom: 25px;
}

.go-beyond-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 44px;
  background: transparent;
  border: none;
  outline: none;
  text-decoration: none;
  cursor: pointer;
  overflow: visible;
  transition: transform 0.25s ease;
}

.go-beyond-btn:hover {
  transform: translateY(-2px);
}

.go-beyond-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.go-beyond-fill {
  fill: #adadad;
  animation: goBeyondPulse 3.5s ease-in-out infinite;
}


.go-beyond-text {
  position: relative;
  z-index: 2;
  color: #000000;
  font-family: var(--font-carbon);
  font-size: clamp(12px, 0.95vw, 15px);
  font-weight: 500;
  letter-spacing: normal;
  text-transform: uppercase;
  user-select: none;
  line-height: 1;
  padding-top: 1px;
}

@keyframes goBeyondPulse {
  0%, 100% {
    fill-opacity: 1;
  }
  50% {
    fill-opacity: 0.35;
  }
}

@media (max-width: 768px) {
  .detail-header {
    flex-direction: column;
    gap: 20px;
  }
  .detail-title {
    font-size: clamp(24px, 6.5vw, 42px);
    white-space: nowrap;
  }
  .detail-meta-text {
    text-align: left;
    max-width: 100%;
    padding-top: 0;
  }
  .detail-story-block {
    min-height: auto;
    height: auto;
    margin-bottom: 35px;
  }
  .detail-story-text {
    font-size: 15px;
  }
  .detail-row-portraits {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Work & Detail bottom navigation */
.detail-footer-nav,
.work-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
  padding-top: 25px;
  padding-bottom: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-carbon);
  font-size: clamp(14px, 1.1vw, 20px);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: uppercase;
  width: 100%;
  box-sizing: border-box;
}

.work-footer-nav {
  margin-top: clamp(40px, 4vw, 60px);
}

.detail-footer-link {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  text-decoration: none;
  color: #adadad;
  font-family: inherit;
  font-size: inherit;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: 6px 0;
}

.detail-footer-link:hover {
  color: var(--purple-bright);
}

.detail-scroll-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
}

.detail-scroll-top:hover {
  transform: translateY(-4px);
}

.scroll-top-arrow {
  display: inline-block;
  transform: rotate(90deg);
  font-size: 1.35em;
  line-height: 0.8;
  transition: transform 0.3s ease;
}

#js-detail-next:hover {
  transform: translateX(4px);
}

.work-footer-links {
  display: flex;
  align-items: center;
  gap: clamp(3px, 0.25vw, 5px);
  font-family: var(--font-carbon);
  font-size: clamp(12px, 1.05vw, 20px);
  font-weight: 400;
  color: #adadad;
}

.work-footer-links a {
  text-decoration: none;
  color: #adadad;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.work-footer-links a:hover {
  color: var(--purple-bright);
}

@media (max-width: 820px) {
  .detail-header {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
  }
  .detail-meta-text {
    text-align: left;
    max-width: 100%;
    padding-top: 0;
  }
  .detail-slides-list {
    gap: 16px;
  }
  .detail-banner {
    margin-bottom: 35px;
  }
  .detail-story-block {
    margin-bottom: 45px;
  }
}
