@font-face { font-family: 'NeueHaasDisplay'; src: url('fonts/NeueHaasDisplayXXThin.ttf');          font-weight: 100; font-style: normal; }
@font-face { font-family: 'NeueHaasDisplay'; src: url('fonts/NeueHaasDisplayXThin.ttf');           font-weight: 200; font-style: normal; }
@font-face { font-family: 'NeueHaasDisplay'; src: url('fonts/NeueHaasDisplayThin.ttf');            font-weight: 300; font-style: normal; }
@font-face { font-family: 'NeueHaasDisplay'; src: url('fonts/NeueHaasDisplayLight.ttf');           font-weight: 350; font-style: normal; }
@font-face { font-family: 'NeueHaasDisplay'; src: url('fonts/NeueHaasDisplayRoman.ttf');           font-weight: 400; font-style: normal; }
@font-face { font-family: 'NeueHaasDisplay'; src: url('fonts/NeueHaasDisplayMediu.ttf');           font-weight: 500; font-style: normal; }
@font-face { font-family: 'NeueHaasDisplay'; src: url('fonts/NeueHaasDisplayBold.ttf');            font-weight: 700; font-style: normal; }
@font-face { font-family: 'NeueHaasDisplay'; src: url('fonts/NeueHaasDisplayBlack.ttf');           font-weight: 900; font-style: normal; }
@font-face { font-family: 'NeueHaasDisplay'; src: url('fonts/NeueHaasDisplayXXThinItalic.ttf');    font-weight: 100; font-style: italic; }
@font-face { font-family: 'NeueHaasDisplay'; src: url('fonts/NeueHaasDisplayXThinItalic.ttf');     font-weight: 200; font-style: italic; }
@font-face { font-family: 'NeueHaasDisplay'; src: url('fonts/NeueHaasDisplayThinItalic.ttf');      font-weight: 300; font-style: italic; }
@font-face { font-family: 'NeueHaasDisplay'; src: url('fonts/NeueHaasDisplayLightItalic.ttf');     font-weight: 350; font-style: italic; }
@font-face { font-family: 'NeueHaasDisplay'; src: url('fonts/NeueHaasDisplayRomanItalic.ttf');     font-weight: 400; font-style: italic; }
@font-face { font-family: 'NeueHaasDisplay'; src: url('fonts/NeueHaasDisplayMediumItalic.ttf');    font-weight: 500; font-style: italic; }
@font-face { font-family: 'NeueHaasDisplay'; src: url('fonts/NeueHaasDisplayBoldItalic.ttf');      font-weight: 700; font-style: italic; }
@font-face { font-family: 'NeueHaasDisplay'; src: url('fonts/NeueHaasDisplayBlackItalic.ttf');     font-weight: 900; font-style: italic; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* scroll-snap-type: y mandatory; */
  height: 100%;
  overflow: hidden;
}
body {
  height: 100%;
  padding-top: 0;
  background: #ffffff;
  font-family: 'NeueHaasDisplay', -apple-system, BlinkMacSystemFont, sans-serif;
}

#top-nav {
  position: fixed;
  top: 25vh;
  padding: 0 15vw;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 56px;
  z-index: 300;
  background: none;
  /*backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background-clip: padding-box;*/
  transition: top 1.5s ease, padding 1.5s ease, transform 1.5s ease, background-color 1.5s ease;
}

/* When section2 becomes visible, nudge the nav down to 15vh */
#top-nav.section2-active {
  top: 2vw;
  padding: 0 2vw;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0px 0vw;
}

#top-nav a,
#top-nav .nav-brand,
#top-nav .nav-item {
  text-decoration: none;
}

#top-nav .nav-links {
  display: flex;
  gap: 5px;
}

.nav-brand {
  color: #313131;
  font-weight: 400;
  font-size: 14px;
}

.nav-item {
  padding: 8px  0px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.nav-item--building {
  position: relative;
  color: #c2c2c2;
  font-weight: 300;
  padding-left: 16px;
}

.nav-item--current {
  color: #919191;
  font-weight: 300;
  /* custom styles for the second nav item */
}

.nav-item--building::before {
  content: '';
  position: absolute;
  left: 0;
  top: 52%;
  transform: translateY(-52%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-50%) scale(1);
    opacity: 0.5;
  }
}



#page-loader {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #e0e0e0;
  z-index: 9999;
  transition: opacity 0.3s ease;
}
#page-loader-bar {
  height: 100%;
  width: 0%;
  background: #919191;
  animation: loader-fill 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes loader-fill {
  0%   { width: 0%; }
  100% { width: 100%; }
}
#page-loader.done {
  opacity: 0;
  pointer-events: none;
}
#site-loader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
}
#site-loader.active {
  opacity: 1;
  pointer-events: auto;
}
#site-loader.done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#site-loader-bar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 1px;
  width: 0%;
  max-width: 100vw;
  background: #e0e0e0;
}
#site-loader.active #site-loader-bar {
  animation: site-loader-fill 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes site-loader-fill {
  0%   { width: 0%; }
  100% { width: 100vw; }
}
#section1 {
  position: fixed;
  inset: 0;
  overflow: hidden;
  transition: opacity 0.6s ease;
  z-index: 10;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='36'%3E%3Ctext x='50' y='12' font-family='sans-serif' font-size='11' fill='%23313131' text-anchor='middle'%3E(click)%3C/text%3E%3Ccircle cx='50' cy='28' r='8' fill='white' fill-opacity='0.5'/%3E%3C/svg%3E") 50 28, auto;
}
#section1 canvas {
  display: block;
  position: absolute;
  top: 0; left: 0;
}

.stats-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  border-left: solid 1px #e0e0e0;
  padding-left: 8px;
}

#section2-wrapper {
  width: 100vw;
  height: 900vh;
}
#section2-wrapper-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  width: 100vw;
}
#section2-overlay {
  position: absolute;
  right: 0;
  top: 0;
  width: 50vw;
  height: 100%;
  background: #FFFFFF;
  transform: translateY(100%);
  z-index: 5;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  padding: 0 2vw 2vw 2vw;
  overflow-y: auto;
}
#section2-overlay::before {
  content: '';
  position: sticky;
  top: 0;
  height: 14vh;
  background: linear-gradient(to bottom, #fff, transparent);
  pointer-events: none;
  z-index: 10;
  flex-shrink: 0;
  margin-bottom: -14vh;
}
.overlay-section {
  padding-top: 14vh;
  flex-shrink: 0;
}
.overlay-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.overlay-photo {
  overflow: hidden;
}
.overlay-photo img,
.overlay-photo video {
  width: 100%;
  height: 20vh;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.overlay-info {
  margin-top: 3vh;
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.overlay-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 3vh;
  font-weight: 400;
  color: #313131;
  padding: 2vh 0;
  border-bottom: 1px solid #eeeeee;
}
.overlay-title span:last-child {
  font-size: 14px;
  align-items: top;
}
.overlay-title-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.overlay-web-icon {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  flex-shrink: 0;
}
.overlay-content-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1vw;
  text-align: justify;
}
.overlay-col {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}
.overlay-col-heading {
  font-size: 14px;
  font-weight: 400;
  color: #313131;
  padding-left: 0.5vw;
  padding-top: 1em;
}
.overlay-content-cols .overlay-col:nth-child(odd) .overlay-content {
  text-indent: 1em;
}
.overlay-content {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: #919191;
  border-left: 0px solid #313131;
  padding-left: 0.5vw;
  padding-right: 0.5vw;
}
.overlay-col ul {
  list-style: disc;
  padding-left: 1.6em;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: #919191;
}
.overlay-col ul li {
  padding-left: 0.2em;
}
#section2-works {
  position: absolute;
  bottom: 2vw;
  right: 4vw;
  font-size: 8vh;
  font-weight: 400;
  color: #313131;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}
.works-icon {
  display: inline-flex;
  width: 80px;
  height: 40px;
  align-items: center;
  border: 2px solid currentColor;
  border-radius: 20px;
  padding: 0 10px;
  margin-bottom: 0.1em;
}
.works-icon svg {
  margin-left: auto;
}
.overlay-about-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 8vh;
  font-weight: 400;
  color: #313131;
  line-height: 1;
  padding: 14vh 0 4vh 0;
  flex-shrink: 0;
}
.overlay-about-icon svg {
  margin-left: 0;
  margin-right: auto;
}
#section2-panel {
  flex: 0 0 50vw;
  height: 100vh;
  background: #fff;
  position: relative;
  z-index: 1;
  padding: 0 2vw 2vw 2vw;
  display: flex;
  align-items: flex-end;
}
#section2-panel-mid {
  position: absolute;
  left: 2vw;
  right: 2vw;
}
.panel-tagline {
  font-size: 20px;
  font-weight: 400;
  color: #313131;
  line-height: 1.2;
  white-space: nowrap;
}
.panel-num {
  display: inline-block;
  border: 1px solid #c2c2c2;
  padding: 2px 6px;
  border-radius: 8px;
  margin: 0 4px;
  font-variant-numeric: tabular-nums;
}
#section2-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  width: 72%;
}
#section2 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
}
#section2 .stats-top {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 14vh;
  margin-left: 2vw;
  width: 96vw;
  border:solid 0px red;
}
#section2 .stats-top-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 15vw 1fr;
  column-gap: 0;
  row-gap: 0.15em;
  font-size: 24px;
  line-height: 1.1;
  color: #313131;
  letter-spacing: 0.01em;
  font-weight: 400;
  opacity: 0;
}

#section2 .stats-top-copy {
  display: contents;
}
#section2 .stats-top-copy .text-content {
  white-space: nowrap;
}
#section2 .stats-top-copy .text-sep,
#section2 .stats-top-copy span[data-text-groups] {
  padding-left: 1vw;
}
#section2 .stats-top-copy span[data-text-groups] {
  display: inline-block;
  overflow: hidden;
  max-width: 800px;
  vertical-align: bottom;
  white-space: nowrap;
  transition: max-width 0.25s ease-in-out, padding-left 0.25s ease-in-out, opacity 0.25s ease-in-out;
}
#section2 .stats-top.has-hover .stats-top-copy span[data-text-groups]:not(.text-active) {
  max-width: 0;
  padding-left: 0;
  opacity: 0;
}
#section2 .stats-top-copy .text-sep {
  display: inline-block;
  overflow: hidden;
  max-width: 90px;
  white-space: nowrap;
  vertical-align: bottom;
  transition: max-width 0.25s ease-in-out, padding-left 0.25s ease-in-out, opacity 0.25s ease-in-out;
}
#section2 .stats-top.has-hover .stats-top-copy .text-sep.text-hidden {
  max-width: 0;
  padding-left: 0;
  opacity: 0;
}

#section2 .cube-scene {
  position: relative;
  width: 16vw;
  height: 240px;
  margin: 0;
  --gap: 34px;
}
#section2 .cube-scene {
  transition: opacity 0.3s ease 0.12s;
}
#section2 .cube {
  position: absolute;
  top: calc(50px + var(--wave-ty, 0px));
  left: 0;
  width: 120px;
  height: 90px;
  transform-style: preserve-3d;
  transform: translateX(var(--x)) rotateX(-20deg) rotateY(-50deg);
  transition: transform 0.4s ease 0.12s, z-index 0s 0.12s;
  cursor: pointer;
}
#section2 .cube.group-active {
  transform: translateX(var(--x)) translateY(-20px) rotateX(-20deg) rotateY(-50deg);
  z-index: 10;
  transition: transform 0.4s ease 0s, z-index 0s 0s;
}
#section2 .cube.group-active .face {
  opacity: 1;
  transition: opacity 0.6s ease-in-out 0s;
}
#section2 .stats-cube.has-hover .cube:not(.group-active) .face {
  opacity: 0.4;
  transition: opacity 0.6s ease-in-out 0s;
}
#section2 .stats-cube.has-hover .cube:not(.group-active) .face--front {
  opacity: 0;
  transition: opacity 0.6s ease-in-out 0s;
}
/* Stack order within each scene — do not change */
#section2 .cube:nth-child(1) { --x: calc(-20px + 4 * var(--gap)); z-index: 1; }
#section2 .cube:nth-child(2) { --x: calc(-20px + 3 * var(--gap)); z-index: 2; }
#section2 .cube:nth-child(3) { --x: calc(-20px + 2 * var(--gap)); z-index: 3; }
#section2 .cube:nth-child(4) { --x: calc(-20px + 1 * var(--gap)); z-index: 4; }
#section2 .cube:nth-child(5) { --x: calc(-20px + 0 * var(--gap)); z-index: 5; }

/* Scene stacking — leftmost scene on top */
#section2 .stats-cube .cube-scene:nth-child(1) { z-index: 6; }
#section2 .stats-cube .cube-scene:nth-child(2) { z-index: 5; }
#section2 .stats-cube .cube-scene:nth-child(3) { z-index: 4; }
#section2 .stats-cube .cube-scene:nth-child(4) { z-index: 3; }
#section2 .stats-cube .cube-scene:nth-child(5) { z-index: 2; }
#section2 .stats-cube .cube-scene:nth-child(6) { z-index: 1; }

/* Per-card colors — edit --card-bg freely */
#section2 .cube[data-group="1"]  { --card-bg: #8e9aa0; }
#section2 .cube[data-group="2"]  { --card-bg: #d7d0b2; }
#section2 .cube[data-group="3"]  { --card-bg: #ECE5E1; }
#section2 .cube[data-group="4"]  { --card-bg: #3C4554; }
#section2 .cube[data-group="5"]  { --card-bg: #dde4cd; }
#section2 .cube[data-group="6"]  { --card-bg: #e0e0e0; }
#section2 .cube[data-group="7"]  { --card-bg: #b7b1a6; }
#section2 .cube[data-group="8"]  { --card-bg: #797C7D; }
#section2 .cube[data-group="9"]  { --card-bg: #bebebe; }
#section2 .cube[data-group="10"] { --card-bg: #4d4b6c; }
#section2 .cube[data-group="11"] { --card-bg: #cacaca; }
#section2 .cube[data-group="12"] { --card-bg: #c9b9a9; }
#section2 .cube[data-group="13"] { --card-bg: #8e9ea3; }
#section2 .cube[data-group="14"] { --card-bg: #7a7e89;}
#section2 .cube[data-group="15"] { --card-bg: #ccd4d8; display: none;}
#section2 .cube[data-group="16"] { --card-bg: #d2dbdf; }
#section2 .cube[data-group="17"] { --card-bg: #c9b9a9; }
#section2 .cube[data-group="18"] { --card-bg: #c8c1ad; }
#section2 .cube[data-group="19"] { --card-bg: #d4c4ab; display: none;}
#section2 .cube[data-group="20"] { --card-bg: #cbbfa9; display: none;}
#section2 .cube[data-group="21"] { --card-bg: #3b3c41; }
#section2 .cube[data-group="22"] { --card-bg: #d4d7d8; display: none;}
#section2 .cube[data-group="23"] { --card-bg: #a8abac; display: none;}
#section2 .cube[data-group="24"] { --card-bg: #e0e3e4; display: none;}
#section2 .cube[data-group="25"] { --card-bg: #d8dbdc; display: none;}
#section2 .cube[data-group="26"] { --card-bg: #a8b7c4; }
#section2 .cube[data-group="27"] { --card-bg: #bcaf9d; display: none;}
#section2 .cube[data-group="28"] { --card-bg: #8e8478; display: none;}
#section2 .cube[data-group="29"] { --card-bg: #cbbfaf; display: none;}
#section2 .cube[data-group="30"] { --card-bg: #c8bfb0; display: none;}

/* Per-card images — add url('img/...') to any card */
#section2 .cube[data-group="1"]  .face--front { background-image: none; }
#section2 .cube[data-group="2"]  .face--front { background-image: url('img/Aalo.png'); }
#section2 .cube[data-group="3"]  .face--front { background-image: url('img/Soco.png'); }
#section2 .cube[data-group="4"]  .face--front { background-image: url('img/Monogram.png'); }
#section2 .cube[data-group="5"]  .face--front { background-image: url('img/Cue.png'); }
#section2 .cube[data-group="6"]  .face--front { background-image: url('img/Airform_Card.png'); }
/* group 7 face--front: video Aalo_Card_Vid.mp4 */
#section2 .cube[data-group="8"]  .face--front { background-image: url('img/Snackpass%20Kiosk.png'); }
#section2 .cube[data-group="9"]  .face--front { background-image: url('img/SoCo_Card2.png'); }
#section2 .cube[data-group="10"] .face--front { background-image: url('img/Zoox_T.png'); }
#section2 .cube[data-group="11"] .face--front { background-image: url('img/Aalo_Card3.png'); }
#section2 .cube[data-group="12"] .face--front { background-image: url('img/Snackpass_Card2.png'); } 
/* group 13 face--front: video Zoox_Card_Vid.mp4 */
#section2 .cube[data-group="14"] .face--front { background-image: url('img/Toyota_Card.png'); }
#section2 .cube[data-group="15"] .face--front { background-image: url('img/Zoox_T.png'); }
#section2 .cube[data-group="16"] .face--front { background-image: url('img/Aalo_Card4.png'); } 
/* group 17 face--front: video Snackpass_Card_Vid.mov */
#section2 .cube[data-group="18"] .face--front { background-image: url('img/Toyota_Card3.png'); }
/* group 21 face--front: video Toyota_Card_Vid.mp4 */ 
#section2 .cube[data-group="26"] .face--front { background-image: url('img/Toyota_Card4.png'); }


#section2 .stats-top:hover .cube {
  transform: rotateX(-20deg) rotateY(-50deg) translateZ(0);
}
#section2 .face {
  position: absolute;
  width: 120px;
  height: 90px;
  border: 0px solid #e0e0e0;
  background: color-mix(in srgb, var(--card-bg, #e0e0e0) 50%, transparent);
  transition: opacity 0.6s ease-in-out 0.12s;
}
#section2 .face--front {
  transform: translateZ(1.5px);
  background-size: cover;
  background-position: center;
  border: none;
  overflow: hidden;
}
#section2 .face--front video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#section2 .face--back { transform: rotateY(180deg) translateZ(1.5px); }
#section2 .face--left { width: 3px; height: 90px;  transform: rotateY(-90deg) translateZ(1.5px); }
#section2 .face--right { width: 3px; height: 90px;  transform: rotateY(90deg) translateZ(118.5px); }
#section2 .face--top { width: 120px; height: 3px; transform: rotateX(90deg) translateZ(1.5px); }
#section2 .face--bottom { width: 120px; height: 3px; transform: rotateX(-90deg) translateZ(88.5px); }

#section2 .stats-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 2vw;
  border: solid 0px blue;
}
#section2 .stats-cells-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
}
#section2 .stats-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.2rem;
}
#section2 .stats-cell span:first-child {
  font-size: 10px;
  font-weight: 400;
  color: #919191;
}
#section2 .stats-cell span:last-child {
  font-size: 10px;
  font-weight: 400;
  color: #919191;
  line-height: 1.05;
}
#section2 .stats-cube {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}
#section2 .stats-bottom {
  padding: 0 2vw 2vw;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
}
#section2 .stats-bottom-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1em;
  opacity: 0;
}
#section2 .stats-bottom-list-item {
  font-size: 14px;
  font-weight: 400;
  color: #c2c2c2;
  line-height: 1.4;
  transition: color 0.25s ease, transform 0.25s ease;
  transform-origin: left center;
}
#section2 .stats-bottom-list.has-hover .stats-bottom-list-item {
  color: #e0e0e0;
}
#section2 .stats-bottom-list.has-hover .stats-bottom-list-item.list-active {
  color: #313131;
  transform: scale(1.05);
}
#section2-panel .stats-bottom-bio {
  font-size: 15px;
  line-height: 1.5;
  color: #919191;
  font-weight: 400;
}
#section2-panel .stats-bottom-bio:first-of-type {
  color: #919191;
}
.bio-co {
  color: #313131;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.panel-social {
  font-size: 14px;
  line-height: 1.5;
  color: #919191;
  font-weight: 300;
  margin-top: 2em;
}
.panel-social a {
  color: #0071E3;
  text-decoration: none;
}
.panel-social a:hover {
  color: #313131;
}
#section2 .stats-bottom-inner {
  text-align: right;
}
#section2 .stats-bottom-copy {
  font-size: 8vh;
  line-height: 1;
  color: #313131;
}

#palette {
  display: none;
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  z-index: 100;
  min-width: 200px;
}
#palette.visible { display: block; }
#palette h3 {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.color-row:last-child { margin-bottom: 0; }
.color-row label {
  font-size: 13px;
  color: #333;
  flex: 1;
  white-space: nowrap;
}
.color-row input[type="color"] {
  -webkit-appearance: none;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  padding: 2px;
}
.color-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-row input[type="color"]::-webkit-color-swatch { border: none; border-radius: 3px; }

.slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.slider-row label {
  font-size: 13px;
  color: #333;
  flex: 1;
  white-space: nowrap;
}
.slider-row input[type="range"] {
  width: 80px;
  cursor: pointer;
}
.slider-row .slider-val {
  font-size: 11px;
  color: #888;
  min-width: 28px;
  text-align: right;
}

.col {
  width: 50vw;
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.col:first-child {
  border-right: 1px solid #e8e8e8;
}
.col-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #999;
}
.col-heading {
  font-size: 32px;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.col-body {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  max-width: 480px;
}

#radar-svg {
  width: 100%;
  max-width: 380px;
  display: block;
  margin-top: 24px;
  overflow: visible;
  user-select: none;
}

.noise-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 50;
  opacity: 0.08;
  mix-blend-mode: overlay;
}

/* ─── Large screen (≥ 1600px) ─── */
@media (min-width: 1600px) {
  /* Cubes: 30% larger (120×90 → 156×117, gap 34→44, scene height 240→312) */
  #section2 .cube-scene {
    width: 21vw;
    height: 312px;
    --gap: 44px;
  }
  #section2 .cube {
    width: 156px;
    height: 117px;
    top: calc(65px + var(--wave-ty, 0px));
  }
  #section2 .cube.group-active {
    transform: translateX(var(--x)) translateY(-26px) rotateX(-20deg) rotateY(-50deg);
  }
  #section2 .face {
    width: 156px;
    height: 117px;
  }
  #section2 .face--front  { transform: translateZ(2px); }
  #section2 .face--back   { transform: rotateY(180deg) translateZ(2px); }
  #section2 .face--left   { width: 4px; height: 117px; transform: rotateY(-90deg) translateZ(2px); }
  #section2 .face--right  { width: 4px; height: 117px; transform: rotateY(90deg) translateZ(154px); }
  #section2 .face--top    { width: 156px; height: 4px; transform: rotateX(90deg) translateZ(2px); }
  #section2 .face--bottom { width: 156px; height: 4px; transform: rotateX(-90deg) translateZ(115px); }
  #section2 .cube:nth-child(1) { --x: calc(-26px + 4 * var(--gap)); }
  #section2 .cube:nth-child(2) { --x: calc(-26px + 3 * var(--gap)); }
  #section2 .cube:nth-child(3) { --x: calc(-26px + 2 * var(--gap)); }
  #section2 .cube:nth-child(4) { --x: calc(-26px + 1 * var(--gap)); }
  #section2 .cube:nth-child(5) { --x: calc(-26px + 0 * var(--gap)); }

  /* Stats top text */
  #section2 .stats-top-inner {
    font-size: 30px;
  }

  /* Overlay content text */
  .overlay-content,
  .overlay-col ul {
    font-size: 16px;
    line-height: 1.8;
  }
  .overlay-col-heading {
    font-size: 16px;
  }

  /* Panel inner text */
  #section2-panel .stats-bottom-bio {
    font-size: 16px;
  }
  .panel-social {
    font-size: 16px;
  }
}

/* ─── Tablet (≤ 1100px) ─── */
@media (max-width: 1100px) {
  #section2-overlay {
    width: 100vw;
    left: 0;
  }
  .overlay-content-cols {
    grid-template-columns: 1fr;
  }
  .overlay-col:empty {
    display: none;
  }
  .overlay-title {
    font-size: 5vh;
  }
  #section2 .stats-top-inner {
    font-size: 18px;
    grid-template-columns: 12vw 1fr;
  }
  #section2 .stats-bottom-copy {
    font-size: 6vh;
  }
}

/* ─── Mobile (≤ 768px) ─── */
@media (max-width: 768px) {
  #section1 {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='16'%3E%3Ccircle cx='3' cy='8' r='3' fill='white'/%3E%3Ctext x='10' y='12' font-family='sans-serif' font-size='9' fill='white'%3Eclick%3C/text%3E%3C/svg%3E") 3 8, auto;
  }
  #top-nav {
    top: 3vh;
    padding: 0 5vw;
    transition: top 0.3s ease, padding 0.3s ease;
  }
  #top-nav.section2-active {
    top: 3vh;
    padding: 0 5vw;
  }
  #section2-wrapper {
    height: 200vh;
  }
  #section2-wrapper-sticky {
    flex-direction: column;
  }
  /* ── Cube grid: 3×2 decorative strip ── */
  #section2 {
    display: flex;
    flex: 0 0 auto;
    height: auto;
    justify-content: flex-start;
    order: -1;
    padding: 15vh 2vw 5vh 2vw;
  }
  #section2 .stats-top,
  #section2 .stats-cells-row,
  #section2 .stats-bottom {
    display: none;
  }
  #section2 .stats-grid {
    padding: 0;
    gap: 0;
  }
  #section2 .stats-cube {
    flex-wrap: wrap;
    width: 100%;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    pointer-events: none;
    --gap: 7px;
  }
  #section2 .cube-scene {
    flex: 0 0 50%;
    width: 50%;
    height: 60px;
    overflow: hidden;
    transition: none;
    opacity: 1 !important;
  }
  #section2 .cube {
    width: 60px;
    height: 45px;
    top: calc(8px + var(--wave-ty, 0px));
    transition: none;
  }
  #section2 .face {
    width: 60px;
    height: 45px;
    transition: none;
  }
  #section2 .face--front  { transform: translateZ(0.75px); }
  #section2 .face--back   { transform: rotateY(180deg) translateZ(0.75px); }
  #section2 .face--left   { width: 1.5px; height: 45px; transform: rotateY(-90deg) translateZ(0.75px); }
  #section2 .face--right  { width: 1.5px; height: 45px; transform: rotateY(90deg) translateZ(59.25px); }
  #section2 .face--top    { width: 60px; height: 1.5px; transform: rotateX(90deg) translateZ(0.75px); }
  #section2 .face--bottom { width: 60px; height: 1.5px; transform: rotateX(-90deg) translateZ(44.25px); }
  #section2 .cube:nth-child(1) { --x: calc(4 * var(--gap)); z-index: 1; }
  #section2 .cube:nth-child(2) { --x: calc(3 * var(--gap)); z-index: 2; }
  #section2 .cube:nth-child(3) { --x: calc(2 * var(--gap)); z-index: 3; }
  #section2 .cube:nth-child(4) { --x: calc(1 * var(--gap)); z-index: 4; }
  #section2 .cube:nth-child(5) { --x: calc(0 * var(--gap)); z-index: 5; }
  /* Disable active/hover states in the cube strip */
  #section2 .cube.group-active {
    transform: translateX(var(--x)) rotateX(-20deg) rotateY(-50deg);
  }

  #section2-panel {
    flex: 1;
    width: 100vw;
    padding: 4vh 6vw 25vh;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
  }
  #section2-panel-mid {
    position: relative;
    left: auto;
    right: auto;
    margin-bottom: 3vh;
  }
  #section2-panel-inner {
    width: 100%;
  }
  .panel-tagline {
    font-size: 18px;
    white-space: normal;
  }
  #section2-panel .stats-bottom-bio {
    font-size: 13px;
    line-height: 1.6;
  }
  #section2-works {
    display: none;
  }
  #section2-overlay {
    width: 100vw;
    left: 0;
    padding: 0 5vw 5vw;
  }
  #section2-overlay::before {
    height: 8vh;
    margin-bottom: -8vh;
  }
  .overlay-section {
    padding-top: 8vh;
  }
  .overlay-title {
    font-size: 8vw;
  }
  .overlay-photo img,
  .overlay-photo video {
    height: 30vw;
  }
  .overlay-about-nav {
    font-size: 14vw;
    padding: 8vh 0 4vh 0;
  }
  .overlay-content-cols {
    grid-template-columns: 1fr;
  }
  .overlay-col:empty {
    display: none;
  }
  .overlay-photo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .panel-social {
    display: block;
  }
}
