:root{
  --blueA: #1a55ff;
  --blueB: #1242ff;
  --blueC: #0b34ff;
  --osd: #e9fbff;

  --branchW: 8px;
  --branchGlow: .45;

  --stepX: 18;
  --stepY: 14;
  --segGap: 60ms;

  --uiStroke: 2px;
}

*{ box-sizing:border-box; }

img{ max-width: 100%; }

html{ overflow-x: hidden; }

html, body { width: 100%; }
.stage, .wrap { overflow-x: hidden; }


html, body{
  min-height: 100%;
  margin: 0;
  overscroll-behavior: none; /* prevents “rubber band” white */
}

html{
  background-color: var(--blueC);
  background: linear-gradient(180deg, var(--blueA), var(--blueB) 45%, var(--blueC));
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

body{
  background: transparent;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--osd);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: .10em;
  text-transform: uppercase;
}

/* =========================================================
   FULL-PAGE CRT
   ========================================================= */

body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,.20) 3px
  );
  opacity: .75;
  mix-blend-mode: multiply;
  will-change: auto; /* Remove will-change for static elements */
}

.crt-layer{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  will-change: auto;
}

/* Optimized: Reduced opacity for better performance */
.crt-phosphor{
  opacity: .06;
  mix-blend-mode: overlay;
  background: repeating-linear-gradient(
    to right,
    rgba(255,0,0,.18) 0px,
    rgba(255,0,0,.18) 1px,
    rgba(0,255,0,.12) 1px,
    rgba(0,255,0,.12) 2px,
    rgba(0,180,255,.14) 2px,
    rgba(0,180,255,.14) 3px
  );
}

/* Optimized: Simplified noise pattern, slower animation */
.crt-noise{
  opacity: .08;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.15), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(0,0,0,.15), transparent 45%);
  animation: crtNoise 300ms steps(2) infinite;
  will-change: opacity;
}

/* Optimized: Only use transform (GPU accelerated) */
@keyframes crtNoise{
  0%, 100% { transform: translate(0,0); }
  33%  { transform: translate(-1px, 1px); }
  66%  { transform: translate(1px, -1px); }
}

.crt-vignette{
  opacity:.85;
  mix-blend-mode: multiply;
  background: radial-gradient(140% 120% at 50% 50%, transparent 55%, rgba(0,0,0,.32) 100%);
  will-change: auto;
}

/* Optimized: Slower, less frequent updates */
.crt-roll{
  position: fixed;
  left: 0; right: 0;
  top: -30%;
  height: 28%;
  pointer-events: none;
  z-index: 45;
  opacity:.06;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.15), transparent);
  mix-blend-mode: screen;
  animation: crtRoll 12s linear infinite;
  will-change: transform;
}

@keyframes crtRoll{
  0%   { transform: translateY(-20%); }
  100% { transform: translateY(170%); }
}

/* Optimized: Removed expensive filter animation, using opacity only */
.flicker{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  animation: crtFlicker 8s infinite;
  will-change: opacity;
}

/* Optimized: Only opacity changes, no expensive filters */
@keyframes crtFlicker{
  0%,100% { opacity: 1; }
  50%     { opacity: 0.98; }
  96%     { opacity: 1; }
  97%     { opacity: 0.96; }
  98%     { opacity: 0.99; }
  99%     { opacity: 0.97; }
}

@keyframes retroBoot{
  0%   { opacity: 0; }
  20%  { opacity: 0; }
  21%  { opacity: 1; }
  35%  { opacity: 0; }
  36%  { opacity: 1; }
  50%  { opacity: 0; }
  51%  { opacity: 0.7; }
  65%  { opacity: 0; }
  66%  { opacity: 1; }
  80%  { opacity: 0.4; }
  81%  { opacity: 1; }
  100% { opacity: 1; }
}

/* =========================================================
   BOOT SCREEN
   ========================================================= */
.bootScreen{
  position: fixed;
  inset: 0;
  z-index: 100;
  background: linear-gradient(175deg, var(--blueA) 0%, var(--blueC) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bootScreen.is-done{
  display: none;
}
.bootInner{
  width: min(480px, 85vw);
  font-family: "Courier New", Courier, monospace;
  color: var(--osd, #e9fbff);
  text-transform: uppercase;
  font-size: clamp(.7rem, 1.4vw, .85rem);
  line-height: 1.7;
}
.bootLog{
  min-height: 10em;
  white-space: pre;
  overflow: hidden;
}
.bootBarWrap{
  display: flex;
  align-items: center;
  gap: .6em;
  margin-top: 1em;
}
.bootBarLabel{
  flex-shrink: 0;
  opacity: .6;
}
.bootBar{
  flex: 1;
  height: 14px;
  border: 1px solid var(--osd, #e9fbff);
  display: flex;
  gap: 2px;
  padding: 2px;
}
.bootSeg{
  flex: 1;
  background: transparent;
  transition: background 0s;
}
.bootSeg.on{
  background: var(--osd, #e9fbff);
}
.bootPct{
  flex-shrink: 0;
  min-width: 3em;
  text-align: right;
  opacity: .6;
}

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

.stage{
  position: relative;
  z-index: 5;
  min-height: 100%;
  display: grid;
  justify-items: center;
  align-content: start;
}

.wrap{
  width: min(1200px, 100%);
  padding: 40px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  align-items:center;
  justify-items:center;
}

.tile{
  background: transparent;
  border: none;
  padding: 12px;
  text-decoration: none;
  cursor: pointer;
  color: var(--osd);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  /* Initial state: hidden for boot animation */
  opacity: 0;
  will-change: opacity;
}

.tile.booted{
  animation: retroBoot 800ms steps(8) forwards;
}

.tile[aria-selected="true"]{ filter: brightness(1.18); }

.iconbox{
  width: 150px;
  height: 150px;
  margin-bottom: 18px;
  display:grid;
  place-items:center;
  image-rendering: pixelated;
}

.pixel{
  width: calc(16 * 7px);
  height: calc(16 * 7px);
  display:grid;
  grid-template-columns: repeat(16, 7px);
  grid-template-rows: repeat(16, 7px);
}

.px{
  width: 7px;
  height: 7px;
  background: transparent;
}

.on{
  background: var(--osd);
  box-shadow: 0 0 8px rgba(233,251,255,.20);
}

.label{
  font-size: 16px;
  font-weight: 900;
}

@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px){
  .pixel{
    width: calc(16 * 6px);
    height: calc(16 * 6px);
    grid-template-columns: repeat(16, 6px);
    grid-template-rows: repeat(16, 6px);
  }
  .px{ width:6px; height:6px; }
}

/* ===========================
   PROJECTS (split list + panel)
=========================== */

.projectsLayout{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.homeProjectsLayout{
  max-height: none;
}

.projectsGrid{
  display: grid;
  grid-auto-rows: min-content;
  gap: 10px;
  padding-right: 2px;
  overflow: visible;
  max-height: none;
  min-width: 0;
}

.projectsSubHeader{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  color: rgba(233,251,255,.55);
  padding: 8px 4px 4px;
  border-bottom: 1px solid rgba(233,251,255,.12);
  margin-top: 6px;
  pointer-events: none;
  user-select: none;
}
.projectsSubHeader:first-child{
  margin-top: 0;
}

/* Medium screens - equal columns */
@media (max-width: 1100px){
  .projectsLayout{
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* Smaller screens - reduce gap further */
@media (max-width: 900px){
  .projectsLayout{
    grid-template-columns: 0.9fr 1.1fr;
    gap: 10px;
  }
  .panelMedia{
    height: 280px;
  }
}

/* Mobile - single column */
@media (max-width: 780px){
  .projectsLayout{
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .projectsGrid{
    max-height: 240px;
    overflow-y: auto;
  }
  .homeProjectsLayout{ max-height: none; }
}

.projectCard{
  width: 100%;
  text-align: left;
  border: 1px solid rgba(233,251,255,.18);
  background: rgba(0,0,0,.08);
  color: var(--osd);
  border-radius: 10px;
  padding: 10px 10px 9px;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: .10em;
  position: relative;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.projectCard:hover{ background: rgba(0,0,0,.12); }

.projectCard[aria-selected="true"]{
  border-color: rgba(233,251,255,.42);
  box-shadow: 0 0 22px rgba(233,251,255,.10);
  background: rgba(233,251,255,.03);
}

.cardTop{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.cardTitle{
  font-size: 12px;
  letter-spacing: .14em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.cardYear{ font-size: 10px; opacity: .75; letter-spacing: .18em; white-space: nowrap; }

.cardMid{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  opacity: .85;
  margin-bottom: 6px;
}

.cardBottom{ font-size: 10px; opacity: .72; }

.panelCredits{ display: grid; gap: 6px; margin-top: 8px; }

.creditRow{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  opacity: .92;
}

.creditKey{ opacity: .72; }

.panelLinks{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.panelLink{
  display:inline-flex;
  align-items:center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(233,251,255,.18);
  background: rgba(0,0,0,.08);
  color: var(--osd);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .18em;
}

.panelLink:hover{
  background: rgba(0,0,0,.12);
  border-color: rgba(233,251,255,.32);
}

/* =========================================================
   MARQUEE (horizontal always-moving, controllable)
   ========================================================= */

/* =========================================================
   TEAM MEMBER CARDS
   ========================================================= */

.teamGrid{
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 700px;
  margin: 0 auto;
}

.teamCard{
  display: flex;
  gap: 24px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(233,251,255,.2);
  border-radius: 10px;
  padding: 22px 24px;
  transition: all 200ms;
}

.teamCard:hover{
  border-color: rgba(233,251,255,.35);
  box-shadow: 0 0 0 1px rgba(233,251,255,.1), 0 0 20px rgba(26,85,255,.15);
}

.teamPhoto{
  flex-shrink: 0;
  width: 180px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(233,251,255,.2);
  background: rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.teamPhoto img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.teamPhotoPlaceholder{
  font-size: 11px;
  color: rgba(233,251,255,.4);
  letter-spacing: .2em;
}

.teamBody{
  flex: 1;
  min-width: 0;
}

.teamName{
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  color: var(--osd);
  letter-spacing: .12em;
}

.teamRole{
  font-size: clamp(11px, 1.3vw, 13px);
  color: rgba(233,251,255,.5);
  letter-spacing: .14em;
  font-weight: 600;
  margin-top: 4px;
}

.teamBio{
  font-size: clamp(12px, 1.4vw, 14px);
  color: rgba(233,251,255,.75);
  line-height: 1.7;
  border-top: 1px solid rgba(233,251,255,.1);
  margin-top: 12px;
  padding-top: 12px;
}

.teamLinks{
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.teamLinks .mLink{
  font-size: 11px;
  padding: 4px 10px;
}

/* Team view: hide redundant panel elements */
.projectPanel.is-team .panelCover,
.projectPanel.is-team .panelTitleRow,
.projectPanel.is-team .projectsFooter{
  display: none;
}

@media (max-width: 500px){
  .teamCard{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .teamPhoto{
    width: 120px;
    height: 120px;
  }

  .teamLinks{
    justify-content: center;
  }
}

/* =========================================================
   MARQUEE DESCRIPTION
   ========================================================= */

.marqueeDesc{
  text-align: center;
  font-size: clamp(12px, 1.5vw, 14px);
  color: rgba(233,251,255,.6);
  letter-spacing: .12em;
  margin-bottom: 12px;
}

.marquee{
  position: relative;
  margin-top: 6px;
  border: 1px solid rgba(233,251,255,.10);
  border-radius: 12px;
  background: rgba(0,0,0,.10);
  padding: 10px 10px;
  overflow: hidden;
}

.marquee::before,
.marquee::after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width: 38px;
  pointer-events:none;
  z-index: 3;
}
.marquee::before{
  left:0;
  background: linear-gradient(to right, rgba(26,85,255,.65), rgba(26,85,255,0));
}
.marquee::after{
  right:0;
  background: linear-gradient(to left, rgba(26,85,255,.65), rgba(26,85,255,0));
}

.marqueeViewport{ overflow: hidden; }

.marqueeTrack{
  display: flex;
  align-items: center;
  gap: 14px;
  will-change: transform;
  transform: translateX(var(--mx, 0px));
}

.mCard{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(233,251,255,.12);
  background: rgba(0,0,0,.14);
  cursor: pointer;
  user-select: none;
}

.mCard:hover{ background: rgba(255,255,255,.05); }

.mAvatar{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(233,251,255,.16);
  overflow: hidden;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.mAvatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}

.mName{
  font-size: 11px;
  letter-spacing: .18em;
  opacity: .95;
  white-space: nowrap;
}

/* =========================================================
   MARQUEE — CARD INFO + SOCIAL LINKS
   ========================================================= */

.mInfo{
  display: grid;
  gap: 6px;
}

.mLinks{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mLink{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(233,251,255,.18);
  background: rgba(0,0,0,.10);
  color: var(--osd);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: .22em;
  opacity: .9;
  user-select: none;
}

.mLink:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(233,251,255,.35);
  opacity: 1;
}

/* Prevent the link text from forcing the card super wide */
.mLinks .mLink{ white-space: nowrap; }

.mHint{
  margin-top: 8px;
  font-size: 10px;
  opacity: .7;
  letter-spacing: .22em;
  white-space: normal;
  max-width: 100%;
}

/* ===========================
   PANEL
=========================== */
/* =========================================================
   PEOPLE — WHEEL ONLY MODE (hide the header chrome)
   Applies when #peopleBranch has .wheelOnly
   ========================================================= */

#peopleBranch.wheelOnly .panelTop,
#peopleBranch.wheelOnly .panelLabel,
#peopleBranch.wheelOnly .panelMeta{
  display: none !important;
}

#peopleBranch.wheelOnly .panelCover{
  display: none !important;
}

/* If your People panel uses the same title row as Projects */
#peopleBranch.wheelOnly .panelTitleRow,
#peopleBranch.wheelOnly .panelBadges{
  display: none !important;
}

/* Tighten spacing so the marquee sits nicely */
#peopleBranch.wheelOnly .panelBody{
  padding-top: 10px;
}

#peopleBranch.wheelOnly .panelLogline{
  margin-bottom: 0;
}
/* In your #peopleBranch bigger section */
#peopleBranch .mInfo{ gap: 8px; }
#peopleBranch .mLink{ padding: 7px 10px; font-size: 11px; }


.projectPanel{
  background: rgba(0,0,0,.08);
  border: 1px solid rgba(233,251,255,.18);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

.projectPanel::before{
  content:"";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  opacity: .95;
}

.panelTop{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(233,251,255,.14);
  background: rgba(255,255,255,.025);
}

.panelLabel{
  font-size: 10px;
  letter-spacing: .26em;
  opacity: .95;
}

.panelMeta{
  font-size: 10px;
  letter-spacing: .18em;
  opacity: .85;
  text-align: right;
}

.panelBody{
  padding: 12px;
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
}

.panelCover{
  height: 150px;
  border-radius: 8px;
  border: 1px solid rgba(233,251,255,.14);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.08));
}

.panelCover::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 3px,
    rgba(0,0,0,.10) 4px
  );
  opacity: .22;
  mix-blend-mode: multiply;
}

/* =========================================================
   PROJECTS — PANEL MEDIA (POSTER + 3 STILLS)
   ========================================================= */

.panelCover{
  height: auto;
  padding: 10px;
}

.panelMedia{
  height: 343px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
}

.panelPoster,
.panelStill{
  height: 100%;
  border-radius: 8px;
  border: 1px solid rgba(233,251,255,.14);
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.10));
}

.panelPoster img,
.panelStill img{
  width: 100%;
  height: 100%;
  display: block;
  cursor: zoom-in;
}

.panelPoster img{
  object-fit: contain;
  background: transparent;
}

.panelPoster{
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.15));
}

.panelStill img{ object-fit: cover; }

.panelStills{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mediaLabel{
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 10px;
  opacity: .82;
  letter-spacing: .20em;
  pointer-events: none;
}

.panelPoster.is-missing,
.panelStill.is-missing{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.12));
}

@media (max-width: 850px){
  .panelMedia{
    height: auto;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .panelPoster{ height: 200px; }
  .panelStills{ grid-template-columns: repeat(3, 1fr); }
  .panelStill{ height: 80px; }
}

@media (max-width: 600px){
  .panelMedia{
    gap: 6px;
  }
  .panelPoster{ height: 180px; }
  .panelStill{ height: 70px; }
}

.coverLabel{
  position:absolute;
  left: 10px;
  bottom: 10px;
  font-size: 10px;
  opacity: .82;
  letter-spacing: .20em;
}

.coverNoise{
  position:absolute;
  inset:-20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.10), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.08), transparent 45%),
    radial-gradient(circle at 40% 80%, rgba(0,0,0,.18), transparent 50%);
  opacity: .28;
  animation: projNoise 280ms steps(2) infinite;
  pointer-events:none;
}

@keyframes projNoise{
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-1px, 1px); }
  50%  { transform: translate(1px, -1px); }
  75%  { transform: translate(-1px, 0); }
  100% { transform: translate(0,0); }
}

.panelTitleRow{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
  min-width: 0;
}

.panelTitle{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  overflow-wrap: break-word;
  word-wrap: break-word;
  min-width: 0;
  flex: 1;
}

.panelBadges{
  display:flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge{
  font-size: 10px;
  letter-spacing: .18em;
  padding: 3px 7px;
  border: 1px solid rgba(233,251,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  opacity: .92;
}

.panelLogline{
  font-size: 11px;
  opacity: .92;
  line-height: 1.55;
  margin-bottom: 10px;
  letter-spacing: .12em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.panelSection{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(233,251,255,.12);
}

.panelSectionTitle{
  font-size: 10px;
  letter-spacing: .26em;
  opacity: .9;
  margin-bottom: 8px;
}

.projectsFooter{
  margin-top: 14px;
  display:flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  opacity: .75;
  letter-spacing: .22em;
}

/* =========================================================
   BRANCH SYSTEM — V2 (CSS-ONLY, STABLE)
   ========================================================= */

:root{
  --branchW: 12px;
  --branchGlow: .30;

  --segGap: 140ms;
  --trunkT: 520ms;
  --barT:   640ms;
  --dropT:  520ms;
  --stemT:  560ms;

 --kneeT:  360ms;     /* new */
  --elbowDrop: clamp(40px, 6vh, 70px); /* how far down before the bend */

  --stepY: 9;
  --stepX: 10;

  --beamT: 180ms;
}

/* ===== REEL POPUP ===== */
.reelPopup{
  display: none;
  position: fixed;
  width: min(360px, 38vw);
  min-width: 180px;
  max-width: 80vw;
  border: 1px solid var(--osd, #e9fbff);
  background: rgba(26,85,255,.75);
  font-family: "Courier New", Courier, monospace;
  text-transform: uppercase;
  color: var(--osd, #e9fbff);
  z-index: 35;
  resize: horizontal;
  overflow: hidden;
}
.reelPopup.is-visible{ display: block; animation: scanReveal 300ms steps(12, end) both; }

.reelHeader{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .35em .6em;
  border-bottom: 1px solid var(--osd, #e9fbff);
  font-size: clamp(.6rem, 1.1vw, .75rem);
  letter-spacing: .1em;
  opacity: .7;
  cursor: grab;
  user-select: none;
}
.reelHeader:active{ cursor: grabbing; }

.reelClose{
  background: none;
  border: 1px solid var(--osd, #e9fbff);
  color: var(--osd, #e9fbff);
  font-family: inherit;
  font-size: inherit;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .15em .5em;
  cursor: pointer;
}
.reelClose:hover{ background: rgba(233,251,255,.15); }

.reelPlayer{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.reelPlaceholder{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.reelNoise{
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(233,251,255,.03) 2px,
    rgba(233,251,255,.03) 4px
  );
  animation: reelStatic 0.4s steps(4) infinite;
  pointer-events: none;
}

@keyframes reelStatic{
  0%   { opacity: .4; }
  25%  { opacity: .6; }
  50%  { opacity: .3; }
  75%  { opacity: .5; }
  100% { opacity: .4; }
}

.reelText{
  position: relative;
  font-size: clamp(.7rem, 1.4vw, .9rem);
  letter-spacing: .2em;
  opacity: .5;
}

@media (max-width: 720px){
  .reelPopup{ width: min(260px, 65vw); }
}

.branchSlot{
  width: min(1100px, 100%);
  margin: 18px auto 0;
}

.branchSlot .branchArea{ display:none; }
.branchSlot .branchArea.is-open{ display:block; }

.branchArea{
  position: relative;
  width: min(1100px, 100%);
  margin: 18px auto 0;
  padding: 0 clamp(8px, 2vw, 16px);
}

.branchLines{
  position: relative;
  height: var(--sub-top, 140px);
  pointer-events: none;
  overflow: visible;
}
/* =========================================================
   BRANCH SVG RENDERER (STEP 1)
   - Only used by the revamped branch system
   ========================================================= */

.branchLines{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
}

/* New SVG overlay (does not affect legacy .bLine divs) */
.branchSvg{
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:100%;
  overflow:visible;
}

.branchPath{
  fill: none;
  stroke: rgba(233,251,255,.92);
  stroke-width: var(--branchW);
  stroke-linecap: butt;          /* No extension - clean edge-to-edge */
  stroke-linejoin: miter;         /* Sharp 90° corners */
  stroke-miterlimit: 10;          /* Prevent excessive miter spikes */
  shape-rendering: crispEdges;    /* Pixel-perfect rendering */
  vector-effect: non-scaling-stroke;
  visibility: hidden;             /* Hidden by default until animation starts */
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(233,251,255,.18));
}

.branchPath.animating{
  visibility: visible;            /* Visible during animation */
}


.bLine{
  position:absolute;
  background: rgba(233,251,255,.92);
  border-radius: 0px;
  opacity: 0;
  image-rendering: pixelated;
  box-shadow:
    0 0 10px rgba(233,251,255,.16),
    0 0 24px rgba(233,251,255,.10);
  filter:
    drop-shadow(0 0 calc(var(--branchW) * var(--branchGlow)) rgba(233,251,255,.32));
}

.bLine.v.trunk{
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  top: calc(100% - var(--branchW));
}
/* Knee is just another horizontal line */
.bLine.h.knee{
  height: var(--branchW);
  width: var(--len, 0px);
  transform-origin: left;
  transform: scaleX(0);
}


.bLine.v{
  width: var(--branchW);
  height: var(--len, 0px);
  transform-origin: top;
  transform: scaleY(0);
}

.bLine.h{
  height: var(--branchW);
  width: var(--len, 0px);
  transform-origin: left;
  transform: scaleX(0);
}

@keyframes drawY { from{ transform: scaleY(0); } to{ transform: scaleY(1); } }
@keyframes drawX { from{ transform: scaleX(0); } to{ transform: scaleX(1); } }

@keyframes beamPass {
  0%   { filter: brightness(1) drop-shadow(0 0 calc(var(--branchW)*var(--branchGlow)) rgba(233,251,255,.32)); }
  40%  { filter: brightness(1.35) drop-shadow(0 0 calc(var(--branchW)*.55) rgba(233,251,255,.40)); }
  100% { filter: brightness(1) drop-shadow(0 0 calc(var(--branchW)*var(--branchGlow)) rgba(233,251,255,.32)); }
}

.branchArea.is-drawing .bLine.v.trunk{
  animation:
    drawY var(--trunkT) steps(var(--stepY), end) forwards,
    beamPass var(--beamT) steps(2,end) calc(var(--trunkT) - 40ms) 1;
}
.branchArea.is-drawing .bLine.h.knee{
  animation:
    drawX var(--kneeT) steps(var(--stepX), end) forwards,
    beamPass var(--beamT) steps(2,end) calc(var(--kneeT) - 40ms) 1;
  animation-delay: calc(var(--trunkT) + var(--segGap));
}

.branchArea.is-drawing .bLine.v.stem{
  animation:
    drawY var(--stemT) steps(var(--stepY), end) forwards,
    beamPass var(--beamT) steps(2,end) calc(var(--stemT) - 40ms) 1;
  animation-delay: calc(var(--trunkT) + var(--segGap) + var(--kneeT) + var(--segGap));
}

/* Move bar to after stem (was previously right after trunk) */
.branchArea.is-drawing .bLine.h.bar{
  animation:
    drawX var(--barT) steps(var(--stepX), end) forwards,
    beamPass var(--beamT) steps(2,end) calc(var(--barT) - 40ms) 1;
  animation-delay: calc(
    var(--trunkT) + var(--segGap) +
    var(--kneeT)  + var(--segGap) +
    var(--stemT)  + var(--segGap)
  );
}

/* Drops happen after bar */
.branchArea.is-drawing .bLine.v.drop{
  animation:
    drawY var(--dropT) steps(var(--stepY), end) forwards,
    beamPass var(--beamT) steps(2,end) calc(var(--dropT) - 40ms) 1;
  animation-delay: calc(
    var(--trunkT) + var(--segGap) +
    var(--kneeT)  + var(--segGap) +
    var(--stemT)  + var(--segGap) +
    var(--barT)   + var(--segGap)
  );
}



.subRow{
  display: flex;
  justify-content: center;
  gap: 14px;
  position: relative;
  margin-top: calc(var(--branchW) * -0.5);
  padding-top: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms linear;
}

.branchPanel{
  margin-top: 6px;
  opacity: 0;
  pointer-events:none;
  transition: opacity 180ms linear;
  min-width: 0;
  overflow: hidden;
}

.branchArea.is-open.is-ready .subRow,
.branchArea.is-open.is-ready .branchPanel{
  opacity: 1;
  pointer-events:auto;
}

.subBtn{
  border: var(--uiStroke) solid rgba(233,251,255,.26);
  background: rgba(0,0,0,.10);
  color: var(--osd);
  font-family: inherit;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(233,251,255,.06);
  font-size: clamp(11px, 2vw, 14px);
  font-weight: 600;
}

.subBtn:hover{ background: rgba(0,0,0,.14); }

.subBtn[aria-current="true"]{
  border-color: rgba(233,251,255,.55);
  background: rgba(233,251,255,.03);
  box-shadow:
    inset 0 0 0 1px rgba(233,251,255,.10),
    0 0 24px rgba(233,251,255,.12);
}

@media (max-width: 700px){
  .subRow{ flex-direction: column; align-items: center; }
}

@keyframes scanReveal {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.branchArea.is-open .subRow,
.branchArea.is-open .branchPanel{
  opacity: 1;
  visibility: hidden;
  pointer-events: none;
}

.branchArea.is-open.is-ready .subRow,
.branchArea.is-open.is-ready .branchPanel{
  visibility: visible;
  pointer-events: auto;
  animation: scanReveal 220ms steps(10, end) both;
}

/* =========================================================
   LIGHTBOX (CLICK TO ENLARGE)
   ========================================================= */

.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

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

.lightboxBackdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(2px);
}

.lightboxFrame{
  position: relative;
  z-index: 1;
  width: min(1100px, 96vw);
  height: min(78vh, 860px);
  border-radius: 12px;
  border: 1px solid rgba(233,251,255,.18);
  background: rgba(0,0,0,.35);
  box-shadow: 0 12px 50px rgba(0,0,0,.55);
  overflow: hidden;
}

.lightboxFrame img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: rgba(0,0,0,.25);
}

.lightboxLabel{
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 10px;
  letter-spacing: .22em;
  opacity: .85;
  z-index: 2;
  pointer-events: none;
}

.lightboxClose{
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  border: 1px solid rgba(233,251,255,.18);
  background: rgba(0,0,0,.35);
  color: var(--osd);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 10px;
  letter-spacing: .22em;
  cursor: pointer;
}

.lightboxClose:hover{ background: rgba(255,255,255,.06); }

.lightboxNav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(233,251,255,.18);
  background: rgba(0,0,0,.35);
  color: var(--osd);
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.lightboxNav:hover{ background: rgba(255,255,255,.06); }

.lightboxNav.prev{ left: 10px; }
.lightboxNav.next{ right: 10px; }

.lightbox:not(.has-multi) .lightboxNav{ display: none; }

.lightboxCount{
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 10px;
  letter-spacing: .22em;
  opacity: .78;
  z-index: 2;
  pointer-events: none;
}

/* =========================================================
   PEOPLE — BIGGER WHEEL / MARQUEE
   (paste at very bottom of styles.css)
   ========================================================= */

/* Make the People branch panel itself take more vertical space */
#peopleBranch .branchPanel{
  margin-top: 14px;
}

/* If you're using wheelOnly mode, let the marquee become the hero */
#peopleBranch.wheelOnly .marquee{
  padding: 18px 18px;
  border-radius: 16px;
}

/* Make the marquee track/cards larger */
#peopleBranch .marqueeTrack{
  gap: 18px;
}

/* Bigger cards */
#peopleBranch .mCard{
  padding: 14px 16px;
  border-radius: 16px;
  border-width: 2px; /* optional: feels more 'UI' */
}

/* Bigger avatars */
#peopleBranch .mAvatar{
  width: 54px;
  height: 54px;
  border-radius: 14px;
}

/* Bigger name text */
#peopleBranch .mName{
  font-size: 14px;
  letter-spacing: .20em;
}

/* Bigger hint (or comment this out if you want to hide it) */
#peopleBranch .mHint{
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: .22em;
  opacity: .7;
}

/* Hide OSD footer text everywhere */
.projectsFooter,
.panelFooter,
.osdFooter,
.footerHints{
  display: none !important;
}

/* =========================================================
   REMOVE ALL OSD / CONTROL HINTS (ENTER, MENU, ETC.)
   ========================================================= */

/* Marquee hint text */
.mHint{
  display: none !important;
}

/* Any footer-style OSD hints */
.projectsFooter,
.panelFooter,
.osdFooter,
.footerHints{
  display: none !important;
}

/* Safety: hide any generic “hint / help” text */
[class*="hint"],
[class*="Hint"],
[class*="osd"]{
  display: none !important;
}

/* ================================
   PATCH: enable normal page scroll
   Paste at very bottom of styles.css
================================== */

html, body{
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body{
  /* if anything set overflow:hidden earlier, this wins */
  overflow-y: auto !important;
}

/* if your layout wrapper was forcing a fixed height, this prevents “no scroll” */
.stage{
  height: auto !important;
  min-height: 100% !important;
}

/* PATCH: allow page scrolling (append at end) */
html, body{
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body{
  overflow-y: auto !important;
}

/* if .stage was forcing a locked viewport */
.stage{
  height: auto !important;
  min-height: 100vh !important;
  align-items: flex-start !important; /* if you were vertically centering */
}

/* === HARD SCROLL FIX (wins over everything) === */
html{
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
}

body{
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
}

/* === SCROLL FIX: make HTML the scroll container (Chrome/macOS friendly) === */
html{
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body{
  height: auto !important;
  min-height: 100% !important;
  overflow: visible !important; /* important: don't fight html scrolling */
}

/* =========================================================
   RESPONSIVE CLEANUP (HOME + BRANCH)
   Paste at very bottom of styles.css
   ========================================================= */

/* Scale key UI parts with viewport instead of hard px */
:root{
  --wrapPad: clamp(16px, 4vw, 40px);
  --gridGap: clamp(16px, 4vw, 40px);
  --iconBox: clamp(92px, 18vw, 150px);
  --pxSize:  clamp(4px, 1.1vw, 7px);
}

/* Make wrap + grid adapt */
.wrap{ padding: var(--wrapPad); }

.grid{
  gap: var(--gridGap);
}

/* Make icon box scale instead of staying 150x150 */
.iconbox{
  width: var(--iconBox);
  height: var(--iconBox);
}

/* Make the “pixel” icon scale with a single variable */
.pixel{
  width: calc(16 * var(--pxSize));
  height: calc(16 * var(--pxSize));
  grid-template-columns: repeat(16, var(--pxSize));
  grid-template-rows: repeat(16, var(--pxSize));
}

.px{
  width: var(--pxSize);
  height: var(--pxSize);
}

/* Slightly scale label down on smaller screens */
.label{
  font-size: clamp(12px, 2.1vw, 16px);
}

/* 2-column grid sooner + reduce crowding */
@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile layout: keep it clean and non-overlapping */
@media (max-width: 720px){
  .wrap{ padding: 16px; }
  .grid{ gap: 18px; }

  /* Branch: show simplified single line to top button on mobile */
  .branchLines{
    display: block !important;
  }

  .branchLines svg{
    display: block !important;
    visibility: visible !important;
  }

  /* SVG paths order: [0]=trunk, [1]=stem, [2]=bar, [3]=first drop, [4+]=other drops
     The first 3 are already hidden by JS. On mobile, show only first drop (path 4) */

  /* Hide all drop paths except the first one (4th path overall) */
  .branchLines svg path:nth-child(n+5){
    display: none !important;
  }

  /* Ensure first drop is visible and styled */
  .branchLines svg path:nth-child(4){
    display: block !important;
    visibility: visible !important;
  }

  /* Make sub buttons stack cleanly */
  .subRow{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 14px !important;
    padding: 0 4px;
  }

  .subBtn{
    width: 100%;
    max-width: 420px;
    text-align: center;
  }

  .branchPanel{
    margin-top: 14px !important;
  }
}

/* === LAYERING FIX: keep branch lines behind the icon grid === */
/* Note: Primary z-index rules are defined below at line 1390+ */

/* === RESPONSIVE BRANCH GEOMETRY === */
:root{
  /* how far down from the tile the horizontal bar sits */
  --barDrop: clamp(90px, 12vh, 140px);

  /* how far the vertical drops go down from the bar */
  --dropDepth: clamp(70px, 10vh, 110px);
}

/* Let sub buttons wrap instead of forcing weird layouts */
.subRow{
  flex-wrap: wrap;
  row-gap: 10px;
  padding-inline: 6px;
}

/* Responsive button sizing handled in main .subBtn rule above */

/* On tighter screens, reduce the spacing so the buttons don't get shoved down */
@media (max-width: 860px){
  .branchSlot{ margin-top: 10px; }
  .branchArea{ margin-top: 12px; }
}

.bLine.h.knee, .bLine.v.stem{
  box-shadow:
    0 0 12px rgba(233,251,255,.18),
    0 0 28px rgba(233,251,255,.12);
}

/* =========================================================
   BRANCH LAYERING: lines behind tiles/labels
   (paste at very bottom)
   ========================================================= */

.grid{
  position: relative;
  z-index: 50;
}

.tile,
.tile *{
  position: relative;
  z-index: 60;
}

/* Branch UI below */
.branchSlot,
.branchArea,
.branchLines{
  position: relative;
  z-index: 10;
}

.bLine{
  z-index: 12;
}

/* =========================================================
   BRANCH VISIBILITY: show lines only when drawing starts
   ========================================================= */

/* Hide DIV-based lines (using SVG rendering instead) */
.bLine{
  display: none !important;
}

/* =========================================================
   PRODUCTION SERVICES SECTION
   ========================================================= */

.productionServices{
  width: 100%;
  padding: 20px;
}

.productionHeader{
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(233,251,255,.15);
}

.productionTitle{
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--osd);
  text-shadow: 0 0 16px rgba(233,251,255,.5);
  margin-bottom: 6px;
}

.productionSubtitle{
  font-size: clamp(9px, 1.8vw, 11px);
  letter-spacing: .14em;
  color: rgba(233,251,255,.65);
  opacity: 0.8;
}

/* Services Grid */
.servicesGrid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Service Card */
.serviceCard{
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(233,251,255,.2);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(233,251,255,.08),
    inset 0 0 20px rgba(0,0,0,.3);
  transition: all 200ms;
}

.serviceCard:hover{
  border-color: rgba(233,251,255,.4);
  box-shadow:
    0 0 0 1px rgba(233,251,255,.15),
    0 0 24px rgba(26,85,255,.2),
    inset 0 0 20px rgba(0,0,0,.3);
  transform: translateY(-2px);
}

/* Service Header */
.serviceHeader{
  background: linear-gradient(180deg, rgba(26,85,255,.25), rgba(11,52,255,.15));
  border-bottom: 1px solid rgba(233,251,255,.15);
  padding: 16px 18px;
  text-align: center;
}

.serviceName{
  font-size: clamp(13px, 2.2vw, 16px);
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--osd);
  text-shadow: 0 0 12px rgba(233,251,255,.4);
  margin-bottom: 4px;
}

.serviceTagline{
  font-size: clamp(8px, 1.5vw, 10px);
  letter-spacing: .12em;
  color: rgba(233,251,255,.7);
  opacity: 0.9;
}

/* Service Body */
.serviceBody{
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.serviceDescription{
  font-size: clamp(10px, 1.8vw, 12px);
  letter-spacing: .08em;
  line-height: 1.6;
  color: rgba(233,251,255,.85);
  opacity: 0.9;
}

.serviceSection{
  margin-top: 4px;
}

.serviceSectionTitle{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  color: rgba(233,251,255,.75);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(233,251,255,.1);
}

.serviceList{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.serviceList li{
  font-size: clamp(9px, 1.6vw, 11px);
  letter-spacing: .08em;
  color: rgba(233,251,255,.75);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}

.serviceList li::before{
  content: "▸";
  position: absolute;
  left: 0;
  color: rgba(26,85,255,.8);
  font-size: 10px;
}

/* Service Pricing */
.servicePricing{
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(233,251,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pricingLabel{
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(233,251,255,.6);
}

.pricingValue{
  font-size: clamp(11px, 2vw, 13px);
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--osd);
  text-shadow: 0 0 8px rgba(233,251,255,.3);
}

/* Service Footer */
.serviceFooter{
  padding: 16px 18px;
  border-top: 1px solid rgba(233,251,255,.1);
  background: rgba(0,0,0,.15);
}

.serviceCTA{
  width: 100%;
  padding: 12px 20px;
  border: 1px solid rgba(233,251,255,.3);
  background: rgba(26,85,255,.15);
  color: var(--osd);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 150ms;
  box-shadow:
    0 0 0 1px rgba(233,251,255,.06),
    inset 0 0 12px rgba(233,251,255,.05);
}

.serviceCTA:hover{
  background: rgba(26,85,255,.25);
  border-color: rgba(233,251,255,.5);
  box-shadow:
    0 0 0 1px rgba(233,251,255,.12),
    0 0 16px rgba(26,85,255,.3),
    inset 0 0 16px rgba(233,251,255,.08);
  transform: translateY(-1px);
}

.serviceCTA:active{
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px){
  .servicesGrid{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .serviceCard{
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 720px){
  .productionServices{
    padding: 12px;
  }

  .productionHeader{
    margin-bottom: 20px;
    padding-bottom: 14px;
  }

  .serviceBody{
    padding: 14px;
    gap: 12px;
  }

  .serviceList li{
    padding-left: 12px;
  }
}

/* =========================================================
   TAPE TRANSFER SECTION
   ========================================================= */

.tapeTransfer{
  width: 100%;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.tapeHeader{
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(233,251,255,.2);
  padding-bottom: 14px;
}

.tapeTitle{
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: bold;
  color: var(--osd);
  letter-spacing: .14em;
  margin-bottom: 6px;
}

.tapeSubtitle{
  font-size: clamp(11px, 1.4vw, 13px);
  color: rgba(233,251,255,.6);
  letter-spacing: .12em;
}

.tapeDescription{
  max-width: 800px;
  margin: 0 auto 30px;
  padding: 18px 24px;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(233,251,255,.15);
  border-radius: 8px;
  color: rgba(233,251,255,.85);
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.6;
  text-align: center;
}

.tapeGrid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 30px;
}

.tapeCard{
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(233,251,255,.2);
  border-radius: 10px;
  overflow: hidden;
  transition: all 200ms;
  display: flex;
  flex-direction: column;
}

.tapeCard:hover{
  border-color: rgba(233,251,255,.4);
  box-shadow: 0 0 0 1px rgba(233,251,255,.15), 0 0 24px rgba(26,85,255,.2);
  transform: translateY(-2px);
}

.tapeThumb{
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26,85,255,.15), rgba(11,52,255,.1));
  border-bottom: 1px solid rgba(233,251,255,.15);
}

.thumbPlaceholder{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.thumbLabel{
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  color: rgba(233,251,255,.5);
  letter-spacing: .14em;
}

.thumbIcon{
  font-size: clamp(36px, 4vw, 48px);
  opacity: .4;
  filter: grayscale(1);
}

.tapeCardBody{
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.tapeFormat{
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  color: var(--osd);
  letter-spacing: .12em;
}

.tapePricing{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tapeRate{
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 700;
  color: rgba(233,251,255,.9);
  letter-spacing: .08em;
}

.tapeUnit{
  font-size: clamp(11px, 1.3vw, 13px);
  color: rgba(233,251,255,.5);
  letter-spacing: .12em;
  font-weight: 600;
}

.tapeCardFooter{
  padding: 0 18px 18px;
}

.tapeCTA{
  width: 100%;
  padding: 12px 20px;
  border: 1px solid rgba(233,251,255,.3);
  background: rgba(26,85,255,.15);
  color: var(--osd);
  font-family: inherit;
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 700;
  letter-spacing: .14em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 150ms;
  text-transform: uppercase;
}

.tapeCTA:hover{
  background: rgba(26,85,255,.3);
  border-color: rgba(233,251,255,.5);
  box-shadow: 0 0 12px rgba(26,85,255,.3);
}

.tapeCTA:active{
  transform: translateY(1px);
  box-shadow: 0 0 6px rgba(26,85,255,.2);
}

.tapeDisclaimer{
  max-width: 800px;
  margin: 30px auto 0;
  padding: 18px 24px;
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(233,251,255,.1);
  border-radius: 8px;
}

.disclaimerTitle{
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 700;
  color: rgba(233,251,255,.7);
  letter-spacing: .12em;
  margin-bottom: 10px;
}

.disclaimerText{
  font-size: clamp(11px, 1.3vw, 13px);
  color: rgba(233,251,255,.6);
  line-height: 1.8;
}

@media (max-width: 900px){
  .tapeGrid{
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px;
  }

  .tapeCard{
    max-width: 100%;
  }
}

@media (max-width: 720px){
  .tapeTransfer{
    padding: 12px;
  }

  .tapeDescription,
  .tapeDisclaimer{
    padding: 14px 16px;
  }
}

/* =========================================================
   CONNECT SECTION
   ========================================================= */

.connectSection{
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.connectCard{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.connectLabel{
  font-size: clamp(12px, 1.4vw, 14px);
  color: rgba(233,251,255,.5);
  letter-spacing: .18em;
  font-weight: 600;
}

.connectValue{
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--osd);
  letter-spacing: .1em;
  text-decoration: none;
  transition: opacity 150ms;
}

a.connectValue:hover{
  opacity: .75;
}

.connectCTA{
  display: inline-block;
  margin-top: 8px;
  padding: 14px 32px;
  border: 1px solid rgba(233,251,255,.3);
  background: rgba(26,85,255,.15);
  color: var(--osd);
  font-family: inherit;
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 700;
  letter-spacing: .14em;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 150ms;
}

.connectCTA:hover{
  background: rgba(26,85,255,.3);
  border-color: rgba(233,251,255,.5);
  box-shadow: 0 0 12px rgba(26,85,255,.3);
}

.connectCTA:active{
  transform: translateY(1px);
}

.connectSocialsGrid{
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.connectSocialsGrid .connectCard{
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

.connectSocialsGrid .connectValue{
  font-size: clamp(14px, 1.8vw, 18px);
  letter-spacing: .06em;
  word-break: break-word;
}

.connectSocialsGrid .connectCTA{
  padding: 12px 20px;
  font-size: clamp(11px, 1.2vw, 13px);
}

@media (max-width: 720px){
  .connectSection{
    padding: 24px 12px;
  }

  .connectSocialsGrid{
    flex-direction: column;
    align-items: center;
  }

  .connectSocialsGrid .connectCard{
    max-width: 100%;
    width: 100%;
  }
}

/* =========================================================
   GEAR RENTAL SECTION
   ========================================================= */

.gearRental{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
}

.gearHeader{
  text-align: center;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(233,251,255,.2);
  padding-bottom: 12px;
}

.gearTitle{
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: bold;
  color: var(--osd);
  margin-bottom: 6px;
  letter-spacing: 1.5px;
}

.gearSubtitle{
  font-size: clamp(10px, 1.2vw, 12px);
  color: rgba(233,251,255,.7);
  letter-spacing: 0.8px;
}

/* COLLAPSIBLE CATEGORIES */
.gearCategories{
  margin-bottom: 25px;
}

.gearCategory{
  margin-bottom: 12px;
  border: 1px solid rgba(233,251,255,.2);
  background: rgba(0,0,0,.3);
}

.categoryHeader{
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(233,251,255,.05);
  transition: background 150ms;
}

.categoryHeader:hover{
  background: rgba(233,251,255,.1);
}

.categoryTitle{
  font-size: clamp(13px, 1.8vw, 16px);
  font-weight: bold;
  color: var(--osd);
  letter-spacing: 1.5px;
}

.categoryToggle{
  font-size: 18px;
  color: var(--osd);
  transition: transform 200ms steps(4);
}

.gearCategory.open .categoryToggle{
  transform: rotate(180deg);
}

.categoryContent{
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms ease-out;
}

.gearCategory.open .categoryContent{
  max-height: 5000px;
}

/* GEAR GRID (3 columns) */
.gearGrid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px;
}

.gearSubHeader{
  grid-column: 1 / -1;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--osd, #e9fbff);
  opacity: .6;
  border-bottom: 1px solid rgba(233,251,255,.2);
  padding: 8px 0 4px;
  margin-top: 4px;
}

.gearItem{
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(233,251,255,.2);
  padding: 10px;
  cursor: pointer;
  transition: all 150ms;
  position: relative;
}

.gearItem:hover{
  border-color: rgba(233,251,255,.5);
  background: rgba(233,251,255,.05);
  transform: translateY(-2px);
}

.gearItem.expanded{
  grid-column: span 3;
  cursor: default;
  border-color: rgba(233,251,255,.6);
  background: rgba(0,0,0,.6);
}

.gearThumb{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  image-rendering: auto;
  margin-bottom: 8px;
  border: 1px solid rgba(233,251,255,.2);
}

.gearName{
  font-size: clamp(11px, 1.3vw, 13px);
  font-weight: bold;
  color: var(--osd);
  margin-bottom: 6px;
  letter-spacing: 0.8px;
}

.gearStatus{
  display: inline-block;
  padding: 3px 6px;
  font-size: 9px;
  letter-spacing: 0.8px;
  border-radius: 2px;
  margin-top: 6px;
}

.gearStatus.available{
  background: rgba(0,255,100,.2);
  color: #00ff64;
  border: 1px solid #00ff64;
}

.gearStatus.rented{
  background: rgba(255,200,0,.2);
  color: #ffc800;
  border: 1px solid #ffc800;
}

.gearStatus.maintenance{
  background: rgba(255,50,50,.2);
  color: #ff3232;
  border: 1px solid #ff3232;
}

/* EXPANDED ITEM DETAILS */
.gearDetails{
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(233,251,255,.2);
}

.gearItem.expanded .gearDetails{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.gearPhotos{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gearPhotoMain{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid rgba(233,251,255,.3);
}

.gearPhotoThumbs{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.gearPhotoThumb{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid rgba(233,251,255,.2);
  transition: all 150ms;
  opacity: 0.6;
}

.gearPhotoThumb:hover,
.gearPhotoThumb.active{
  border-color: rgba(233,251,255,.6);
  opacity: 1;
}

.gearInfo{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gearDescription{
  font-size: clamp(11px, 1.3vw, 13px);
  line-height: 1.5;
  color: rgba(233,251,255,.85);
}

.gearPricing{
  padding: 10px;
  background: rgba(233,251,255,.05);
  border: 1px solid rgba(233,251,255,.2);
}

.gearPricing div{
  margin-bottom: 6px;
  font-size: clamp(11px, 1.3vw, 13px);
  color: var(--osd);
}

.gearPricing div:last-child{
  margin-bottom: 0;
}

.gearRentalForm{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gearRentalForm label{
  font-size: 10px;
  letter-spacing: 0.8px;
  color: rgba(233,251,255,.8);
  margin-bottom: 4px;
}

.gearRentalForm input{
  width: 100%;
  padding: 8px;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(233,251,255,.3);
  color: var(--osd);
  font-family: inherit;
  font-size: 12px;
}

.gearRentalForm input:focus{
  outline: none;
  border-color: rgba(233,251,255,.6);
}

.gearAddCart{
  padding: 10px 18px;
  background: rgba(233,251,255,.1);
  border: 1px solid rgba(233,251,255,.4);
  color: var(--osd);
  font-family: inherit;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 150ms;
}

.gearAddCart:hover{
  background: rgba(233,251,255,.2);
  border-color: rgba(233,251,255,.6);
}

.gearAddCart:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

.gearCloseDetail{
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--osd);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 150ms;
}

.gearCloseDetail:hover{
  opacity: 1;
}

/* RENTAL CART */
.rentalCart{
  margin-top: 25px;
  padding: 20px;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(233,251,255,.3);
}

.cartHeader{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(233,251,255,.2);
}

.cartTitle{
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: bold;
  color: var(--osd);
  letter-spacing: 1.5px;
}

.cartClear{
  padding: 6px 12px;
  background: rgba(255,50,50,.2);
  border: 1px solid #ff3232;
  color: #ff3232;
  font-family: inherit;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 150ms;
}

.cartClear:hover{
  background: rgba(255,50,50,.3);
}

.cartEmpty{
  text-align: center;
  padding: 25px;
  color: rgba(233,251,255,.5);
  font-size: 11px;
  letter-spacing: 0.8px;
}

.cartItem{
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: rgba(233,251,255,.03);
  border: 1px solid rgba(233,251,255,.15);
  margin-bottom: 8px;
}

.cartItemName{
  font-size: 11px;
  font-weight: bold;
  color: var(--osd);
  letter-spacing: 0.8px;
}

.cartItemDays{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: rgba(233,251,255,.8);
}

.cartItemPrice{
  font-size: 13px;
  font-weight: bold;
  color: var(--osd);
  letter-spacing: 1px;
}

.cartItemRemove{
  padding: 5px 10px;
  background: rgba(255,50,50,.1);
  border: 1px solid rgba(255,50,50,.5);
  color: #ff6464;
  font-family: inherit;
  font-size: 9px;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 150ms;
}

.cartItemRemove:hover{
  background: rgba(255,50,50,.2);
  border-color: #ff3232;
}

.cartFooter{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(233,251,255,.2);
}

.cartTotal{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: clamp(13px, 1.8vw, 16px);
  font-weight: bold;
  color: var(--osd);
  letter-spacing: 1.5px;
}

.cartCheckout{
  width: 100%;
  padding: 10px;
  background: rgba(233,251,255,.15);
  border: 1px solid rgba(233,251,255,.5);
  color: var(--osd);
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 150ms;
}

.cartCheckout:hover{
  background: rgba(233,251,255,.25);
  border-color: rgba(233,251,255,.7);
}

/* CHECKOUT FORM */
.checkoutForm{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(0,0,0,.95);
  border: 2px solid rgba(233,251,255,.5);
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 0 40px rgba(233,251,255,.3);
}

.checkoutForm::before{
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.8);
  z-index: -1;
}

.formHeader{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(233,251,255,.3);
}

.formTitle{
  font-size: clamp(16px, 2.5vw, 18px);
  font-weight: bold;
  color: var(--osd);
  letter-spacing: 1.5px;
}

.formClose{
  background: none;
  border: none;
  color: var(--osd);
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 150ms;
}

.formClose:hover{
  opacity: 1;
}

.formGroup{
  margin-bottom: 12px;
}

.formGroup label{
  display: block;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.8px;
  color: var(--osd);
  margin-bottom: 6px;
}

.formGroup input,
.formGroup textarea{
  width: 100%;
  padding: 8px;
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(233,251,255,.3);
  color: var(--osd);
  font-family: inherit;
  font-size: 12px;
}

.formGroup input:focus,
.formGroup textarea:focus{
  outline: none;
  border-color: rgba(233,251,255,.6);
}

.formGroup textarea{
  resize: vertical;
  min-height: 60px;
}

.formSummary{
  margin: 15px 0;
  padding: 12px;
  background: rgba(233,251,255,.05);
  border: 1px solid rgba(233,251,255,.2);
}

.formSummaryTitle{
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.8px;
  color: var(--osd);
  margin-bottom: 10px;
}

.formSummaryItems{
  font-size: 10px;
  line-height: 1.6;
  color: rgba(233,251,255,.85);
}

.formSubmit{
  width: 100%;
  padding: 10px;
  background: rgba(233,251,255,.15);
  border: 1px solid rgba(233,251,255,.5);
  color: var(--osd);
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 150ms;
}

.formSubmit:hover{
  background: rgba(233,251,255,.25);
  border-color: rgba(233,251,255,.7);
}

/* RESPONSIVE */
@media (max-width: 980px){
  .gearGrid{
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gearItem.expanded{
    grid-column: span 2;
  }
  
  .gearItem.expanded .gearDetails{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px){
  .gearGrid{
    grid-template-columns: 1fr;
  }
  
  .gearItem.expanded{
    grid-column: span 1;
  }
  
  .cartItem{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .checkoutForm{
    width: 95%;
    padding: 20px;
  }
}

/* =========================================================
   MOBILE-FRIENDLY ENHANCEMENTS (Desktop-safe)
   ========================================================= */

/* Prevent iOS zoom on form inputs (16px minimum) */
@media (max-width: 720px){
  input,
  textarea,
  select{
    font-size: 16px !important;
  }
  
  /* Better touch feedback for buttons */
  button:active,
  .tile:active,
  .subBtn:active,
  .projectCard:active{
    transform: scale(0.98);
    transition: transform 50ms;
  }
  
  /* Improve tap target sizes for small interactive elements */
  .cartItemRemove,
  .formClose{
    min-width: 44px;
    min-height: 44px;
  }
}

/* Prevent text selection on UI elements (all devices) */
.tile,
.subBtn,
button,
.projectCard,
.badge{
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(233,251,255,0.1);
}

/* Smooth scrolling for iOS */
.projectsGrid,
.gearGrid,
.panelBody{
  -webkit-overflow-scrolling: touch;
}

/* Visible thin scrollbar for mobile project list */
@media (max-width: 780px){
  .projectsGrid{
    scrollbar-width: thin;
    scrollbar-color: rgba(233,251,255,.3) transparent;
  }
  .projectsGrid::-webkit-scrollbar{
    width: 4px;
  }
  .projectsGrid::-webkit-scrollbar-track{
    background: transparent;
  }
  .projectsGrid::-webkit-scrollbar-thumb{
    background: rgba(233,251,255,.3);
    border-radius: 2px;
  }
}

/* Safe area insets for notched devices (iPhone X+) */
@supports (padding: max(0px)){
  body{
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
  
  .wrap{
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

/* Better focus states for keyboard navigation (accessibility) */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline: 2px solid rgba(233,251,255,0.6);
  outline-offset: 2px;
}

/* Improve touch scrolling performance */
*{
  -webkit-overflow-scrolling: touch;
}

/* Prevent pull-to-refresh on mobile browsers */
body{
  overscroll-behavior-y: contain;
}

/* Better tap timing for touch devices */
a,
button,
.tile,
.subBtn,
.projectCard{
  touch-action: manipulation; /* Prevents double-tap zoom delay */
}

/* ── Toast notification ── */
.toast{
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: #111;
  color: var(--osd, #e9fbff);
  font-family: "Courier New", Courier, monospace;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .55rem 1.2rem;
  border: 1px solid var(--osd, #e9fbff);
  border-radius: 2px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.toast.is-visible{
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
