:root{
  --font: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --mat:#0f6b57;
  --mat2:#0b5b4a;

  --paper:#ffffff;
  --paper2:#f3f2eb;

  --ink:#15171c;

  --shadowPaper:
    0 3px 0 rgba(0,0,0,.22),
    0 18px 42px rgba(0,0,0,.26);

  --shadowUI:
    0 2px 0 rgba(0,0,0,.22),
    0 12px 24px rgba(0,0,0,.20);

  --r: 18px;
}

*{ box-sizing:border-box; font-family: var(--font); }

html,body{ height:100%; margin:0; }

body{ background:#06110e; color:#fff; }

.scene{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding: 28px 16px 46px;
  position:relative;
}

/* CUTTING MAT */
.mat{
  position:fixed;
  inset:0;
  background: linear-gradient(180deg, var(--mat), var(--mat2));
}
.mat::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.55;
  background:
    linear-gradient(#ffffff30 1px, transparent 1px),
    linear-gradient(90deg, #ffffff30 1px, transparent 1px);
  background-size: 26px 26px;
}

/* WRAP */
.wrap{
  width: min(980px, 100%);
  position:relative;
  z-index:1;
}

/* TOP ROW */
.topline{
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  gap: 12px;
  margin-bottom: 14px;
}

.brandLink{ text-decoration:none; color:#fff; }
.brand{
  font-weight: 700;
  letter-spacing: .6px;
  font-size: 14px;
}

.topnav{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  flex-wrap:wrap;
}

.miniBtn{
  text-decoration:none;
  font-size: 12px;
  font-weight: 700;
  color:#0b1a15;
  background:#e8f3ef;
  padding:8px 12px;
  border:1px solid rgba(0,0,0,.20);
  box-shadow: var(--shadowUI);
  border-radius: 999px;
}
.miniBtn:hover{ background: rgba(0,0,0,.18); }
.miniBtn.active{
  background: #0b1a15;
  color: #ffffff;
  border-color: #0b1a15;
}

/* TAPE */
.tape{
  width: 96px;
  height: 26px;
  background:#ffd0de;
  border:1px solid rgba(0,0,0,.22);
  border-radius: 0;
  position:absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.6deg);
  box-shadow: var(--shadowUI);
  margin-top: -50px;
  z-index: 5;
}
.tape::after{
  content:"";
  position:absolute;
  inset:0;
  opacity:.30;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 6px,
    rgba(0,0,0,.12) 6px 7px
  );
}

/* PAPER */
.paper{
  position: relative;   /* ADD THIS */
  z-index: 3;           /* ADD THIS */

  margin-top:14px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--paper), var(--paper2));
  border:1px solid rgba(0,0,0,.22);
  box-shadow: var(--shadowPaper);
  overflow:hidden;
  padding:10px;
}


.paper__inner{
  position:relative;
  padding:18px;
  z-index: 1;
  border-radius: 20px;
}

.paper__inner > *{ position: relative; z-index: 1; }

.paper__inner::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle, rgba(40,120,255,.22) 1px, transparent 1px);
  background-size: 14px 14px;
  z-index: 0;
  pointer-events:none;
}

/* HERO */
.heroGrid{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

/* Intro */
.intro{
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.hello{
  margin:0;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: .6px;
  line-height: 1;
  color: rgba(68, 96, 76, 0.634);
}

.name{
  margin:0;
  font-size: clamp(44px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: .6px;
  line-height: 1.2;
  color: var(--ink);
}

/* Footerline under name */
.footerline{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  color: rgba(0,0,0,.62);
  font-size: 12px;
}

.mono{ letter-spacing: .4px; }
.dot{
  width:6px; height:6px; border-radius:50%;
  background: rgba(0,0,0,.28);
}

/* Sticky note */
.sticky{
  position: relative;
  margin-top: 28px;
  width: 95%;
  padding: 25px 14px 16px;
  background: #fbf2b6;
  border: 1px solid rgba(0,0,0,.18);
  box-shadow:
    0 2px 0 rgba(0,0,0,.18),
    0 14px 30px rgba(0,0,0,.12);
  border-radius: 0;
}

.stickyTape{
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 86px;
  height: 22px;
  background: #ffd0de;
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: 0 2px 0 rgba(0,0,0,.18);
  border-radius: 0;
  z-index: 3;
}
.stickyTape::after{
  content:"";
  position:absolute;
  inset:0;
  opacity:.28;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 6px,
    rgba(0,0,0,.12) 6px 7px
  );
}

.bio{
  margin:0;
  color: rgba(0,0,0,.74);
  line-height: 1.65;
  font-size: 13px;
  max-width: 62ch;
}

.ctaRow{
  margin-top: 10px;
  display:flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn{
  display:inline-block;
  text-decoration:none;
  color:#111;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.20);
  background: #ffffff;
  box-shadow: 0 2px 0 rgba(0,0,0,.22);
  border-radius: 6px;
}
.btn:hover{ transform: translateY(-1px); }

.btn--ghost{
  background: #f3f2ebcb;
  color: #06110edf;
}
.btn--ghost:hover{
  background: #f3f2eb7b;
  color: #06110eb7;
}

/* ID Polaroid (hero) */
.idbox{
  position:relative;
  background:#ffffff;
  border:1px solid rgba(0,0,0,.22);
  border-radius: 0;
  padding: 12px;
  box-shadow: var(--shadowUI);
  width: 290px;
  margin-left: auto;
}

.photo{
  width: 100%;
  height: 60%;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid rgba(0,0,0,.14);
  background: #ddd;
  display: block;
}

.idmeta{ margin-top: 10px; color: rgba(0,0,0,.78); }
.idtitle{ font-size: 12px; font-weight: 700; letter-spacing: .6px; }
.idsub{ font-size: 11px; opacity: .78; margin-top: 3px; }

.year{
  position:absolute;
  right: 10px;
  bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(0,0,0,.55);
}

.paperclip{
  width: 67px;
  height: 26px;
  background:#ffd0de;
  border:1px solid rgba(0,0,0,.22);
  border-radius: 0;
  position:absolute;
  top: 64px;
  left: 40%;
  transform: rotate(5deg);
  box-shadow: var(--shadowUI);
  margin-top: -75px;
}
.paperclip:after{
  content:"";
  position:absolute;
  inset:0;
  opacity:.30;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 6px,
    rgba(0,0,0,.12) 6px 7px
  );
}

/* Decorative tabs */
.tabs{
  position:absolute;
  right: -10px;
  top: 120px;
  display:grid;
  gap: 10px;
}
.tab{
  width: 18px;
  height: 54px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14);
  box-shadow: var(--shadowUI);
}
.tab1{ background:#bff36c; }
.tab2{ background:#f8c15c; }
.tab3{ background:#a8e7ff; }

/* SECTIONS */
.sections{
  margin-top: 16px;
  display:grid;
  gap: 14px;
}

.sec{
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.14);
  padding: 30px;
  border-radius: 16px;
}

.secTitle{
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: .9px;
  font-weight: 700;
}

/* Big title + lead */
.secHead--big{ display:block; margin-bottom: 14px; }
.secTitle--big{
  font-size: 30px;
  letter-spacing: 1.2px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #ffffffe5;
}
.secLead{
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  opacity: .88;
  max-width: 75ch;
}

/* ABOUT layout */
.aboutStack{ display:grid; gap: 14px; }

@media (min-width: 901px) {
  .aboutStack {
    margin-top: 70px;
  }
}

/* Wrapper does layout (polaroid + text box) */
.subWrap{
  display: grid;
  grid-template-columns: auto auto; /* <-- key: no 1fr */
  gap: 18px;
  align-items: start;
  justify-content: start;           /* keep everything left */
}

.subWrap--right{
  grid-template-columns: auto auto; /* same */
  justify-content: end;             /* align the pair to the right */
}


/* Text box ONLY */
.subRow{
  display: inline-block;            /* allows it to shrink */
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 16px 14px;
  width: fit-content;               /* hug content */
  max-width: 52ch;                  /* prevents crazy long lines */
}

/* Pull RIGHT polaroids slightly upward to tighten vertical spacing */
.polaroid{
  margin-top: -55px;
  align-items: start;
}


/* Text block */
.itemTitle{
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .4px;
}
.subText{ max-width: 52ch; }
.subText p{
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  opacity: .92;
}

/* Polaroids */
.polaroid{
  position: relative;
  background: #fff;
  border: 1px solid rgba(0,0,0,.22);
  box-shadow: var(--shadowUI);
  padding: 10px;
  border-radius: 0;
}
.polaroid--mini{
  width: 280px;
  padding: 10px;
}
.pImg{
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 0;
  display:block;
  background:#ddd;
}
.pCap{ margin-top: 10px; color: rgba(0,0,0,.78); }
.pCapTitle{ font-size: 11px; font-weight: 700; letter-spacing: .6px; }
.pCapSub{ margin-top: 3px; font-size: 10px; opacity: .78; }

/* tilt variants */
.tiltR{ transform: rotate(2deg); transform-origin: top right; }
.tiltL{ transform: rotate(-2deg); transform-origin: top left; }

/* Tape */
.pTape{
  position: absolute;
  width: 86px;
  height: 22px;
  background: #ffd0de;
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: 0 2px 0 rgba(0,0,0,.18);
  border-radius: 0;
  z-index: 5;
}
.pTape::after{
  content:"";
  position:absolute;
  inset:0;
  opacity:.28;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 6px,
    rgba(0,0,0,.12) 6px 7px
  );
}
.pTapeTop{
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
}
.pTapeDiag{
  top: -8px;
  right: 18px;
  transform: rotate(-8deg);
}

/* Contact */
.contact{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
}
.contact a{
  color:#fff;
  text-decoration:none;
  font-weight: 700;
}
.contact a:hover{ text-decoration: underline; }

/* Footer */
.siteFooter{
  margin-top: 18px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 14px;
}
.footerBottom{
  opacity: .85;
  font-size: 12px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.footerBottom .sep{ opacity: .6; }

/* Responsive */
@media (max-width: 900px){
  .topline{
    grid-template-columns: 1fr;
    justify-items:start;
    gap: 10px;
  }
  .topnav{ justify-content:flex-start; }

  .heroGrid{ grid-template-columns: 1fr; }
  .tabs{ display:none; }

  .subWrap,
  .subWrap--right{
    grid-template-columns: 1fr;
  }

  .polaroid--mini{
    width: min(280px, 100%);
  }

  .subText{
    max-width: none;
  }
}


/********************CONTACT PAGE*************************/
/* CONTACT PAGE */
.contactHero{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

/* direct links row */
.contactLinks{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Form card matches your UI boxes */
.formCard{
  width: 360px;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255, 255, 255, 0.288);
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow: var(--shadowUI);
}

.formHead{
  margin-bottom: 12px;
}
.formTitle{
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .8px;
  color: #346649d0;
}
.formSub{
  margin-top: 6px;
  font-size: 12px;
  opacity: .88;
  line-height: 1.6;
  color: #436652f8;
}

.contactForm{
  display: grid;
  gap: 10px;
}

.field{
  display: grid;
  gap: 6px;
}

.label{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  opacity: .9;
  color: #06110ea2;
}

.input{
  width: 100%;
  padding: 10px 10px;
  font-size: 12.5px;
  color: #0b1a15;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.22);
  border-radius: 8px;
  box-shadow: 0 2px 0 rgba(0,0,0,.18);
  outline: none;
}

.input:focus{
  border-color: rgba(255,255,255,.45);
}

.textarea{
  resize: vertical;
  min-height: 120px;
}

.formActions{
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.formActions .btn{
  background-color: rgba(192, 255, 255, 0.667);
  color: rgb(112, 176, 216);
}

/* responsive */
@media (max-width: 900px){
  .contactHero{
    grid-template-columns: 1fr;
  }
  .formCard{
    width: 100%;
  }
  .contactLinks{
    justify-content: flex-start;
  }
}

/* CONTACT MINI STICKIES (Instagram + Email emphasis) */
.contactStickies{
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.miniSticky{
  position: relative;
  padding: 16px 12px 12px;
  border: 1px solid rgba(0,0,0,.18);
  box-shadow:
    0 2px 0 rgba(0,0,0,.18),
    0 14px 30px rgba(0,0,0,.12);
  border-radius: 0;
}

/* classic sticky colors */
.miniSticky--insta{ background: #b7f3c5; }  /* mint green */
.miniSticky--email{ background: #ffd9a8; }  /* warm orange */

.miniStickyTitle{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .7px;
  color: rgba(0,0,0,.72);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.miniStickyLink{
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2px;
  color: rgba(0,0,0,.80);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0,0,0,.35);
  padding-bottom: 2px;
}
.miniStickyLink:hover{
  border-bottom-style: solid;
}

/* mini tape (different alignment + angle) */
.miniTape{
  position: absolute;
  top: -10px;
  width: 74px;
  height: 20px;
  background: #ffd0de;
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: 0 2px 0 rgba(0,0,0,.18);
  border-radius: 0;
  z-index: 3;
}
.miniTape::after{
  content:"";
  position:absolute;
  inset:0;
  opacity:.28;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 6px,
    rgba(0,0,0,.12) 6px 7px
  );
}

.miniTape--left{
  left: 12px;
  transform: rotate(-6deg);
}
.miniTape--right{
  right: 12px;
  transform: rotate(6deg);
}

/* responsive */
@media (max-width: 900px){
  .contactStickies{
    grid-template-columns: 1fr;
  }
}

/* Wrap so we can position mini stickies outside the yellow sticky */
.stickyWrap{
  position: relative;
  width: 95%;
  margin-top: 35px; /* matches your original .sticky spacing */
}

/* Keep your existing .sticky styles as-is, but remove its margin-top so wrap controls spacing */
.stickyWrap .sticky{
  margin-top: 0;
  width: 100%;
}

/* --- Mini stickies OUTSIDE --- */
.contactStickies--outside{
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;            /* how far outside the yellow sticky */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 10px;          /* gives same inset feel */
  pointer-events: auto;
}

/* Make the whole sticky clickable */
.miniSticky{
  position: relative;
  display: block;
  padding: 16px 12px 12px;
  border: 1px solid rgba(0,0,0,.18);
  box-shadow:
    0 2px 0 rgba(0,0,0,.18),
    0 14px 30px rgba(0,0,0,.12);
  border-radius: 0;
  text-decoration: none;
}

/* Classic sticky colors */
.miniSticky--insta{ background: #b7f3c5; } /* mint */
.miniSticky--email{ background: #ffd9a8; } /* warm orange */

/* Icon + title row */
.miniRow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}


.miniIcon{
  width: 16px;
  height: 16px;
  fill: rgba(0,0,0,.72);
}

.miniStickyTitle{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .7px;
  color: rgba(0,0,0,.72);
  text-transform: uppercase;
  margin-top: 7px;
}

.miniStickyLink{
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2px;
  color: rgba(0,0,0,.80);
  border-bottom: 1px dashed rgba(0,0,0,.35);
  padding-bottom: 2px;
}

.miniSticky:hover{
  transform: translateY(-1px);
}
.miniSticky:hover .miniStickyLink{
  border-bottom-style: solid;
}

/* Mini tape */
.miniTape{
  position: absolute;
  top: -10px;
  width: 74px;
  height: 20px;
  background: #ffd0de;
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: 0 2px 0 rgba(0,0,0,.18);
  border-radius: 0;
  z-index: 3;
}
.miniTape::after{
  content:"";
  position:absolute;
  inset:0;
  opacity:.28;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 6px,
    rgba(0,0,0,.12) 6px 7px
  );
}
.miniTape--left{ left: 12px; transform: rotate(-6deg); }
.miniTape--right{ right: 12px; transform: rotate(6deg); }

/* Give space under the yellow sticky so the outside stickies don't overlap next content */
.stickyWrap{
  padding-bottom: 70px; /* adjust if you want more/less breathing room */
}

/* Responsive */
@media (max-width: 900px){
  .contactStickies--outside{
    position: static;   /* stack normally on mobile */
    margin-top: 12px;
    padding: 0;
    grid-template-columns: 1fr;
  }
  .stickyWrap{
    padding-bottom: 0;
  }
}

/* PROJECTS PAGE */
.projectsHead{
  margin-bottom: 18px;
}

.pSection{
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,.12);
}

.pSectionHead{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pSectionTitle{
  margin: 0;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .9px;
  color: rgba(0,0,0,.78);
  text-transform: uppercase;
}

.pSectionLead{
  margin: 0;
  font-size: 12px;
  color: rgba(0,0,0,.58);
}

.pGrid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pCard{
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: var(--shadowUI);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transform: rotate(0deg);
}

.pCard:hover{
  transform: translateY(-2px);
}

.pThumb{
  position: relative;
  aspect-ratio: 16 / 9;
  background: #ddd;
  overflow: hidden;
}

.pThumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pBadge{
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #0b1a15;
  color: #fff;
  border: 1px solid rgba(0,0,0,.20);
  box-shadow: 0 2px 0 rgba(0,0,0,.22);
}

.pBody{
  padding: 12px;
}

.pTitle{
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .3px;
  color: rgba(0,0,0,.80);
}

.pMeta{
  margin-top: 6px;
  font-size: 11.5px;
  color: rgba(0,0,0,.60);
  line-height: 1.5;
}

@media (max-width: 900px){
  .pGrid{
    grid-template-columns: 1fr;
  }
}

/************* PROJECTS UPDATES: BIG TITLES + BINDER TABS + OVERLAY *************/

html{ scroll-behavior: smooth; }
.pSection{ scroll-margin-top: 26px; }

/* Bigger category titles */
.pSectionTitle{
  font-size: 22px;
  letter-spacing: 1px;
  font-weight: 900;
  text-transform: uppercase;
}

/* Project cards as buttons (remove button default styles) */
button.pCard{
  appearance: none;
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(255,255,255,.55);
  padding: 0;
  cursor: pointer;
  text-align: left;
}
button.pCard:focus{
  outline: 2px solid rgba(11,26,21,.35);
  outline-offset: 3px;
}

/* OVERLAY MODAL */
.overlay{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}
.overlay.isOpen{ display: block; }

.overlayBackdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.overlayCard{
  width: min(860px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  background: linear-gradient(180deg, var(--paper), var(--paper2));
  border: 1px solid rgba(0,0,0,.22);
  box-shadow: var(--shadowPaper);
  border-radius: 18px;
}

.overlayClose{
  position: absolute;
  right: 12px;
  top: 12px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.2);
  background: #ffffff;
  box-shadow: var(--shadowUI);
  cursor: pointer;
  font-weight: 900;
}

.overlayMedia{
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.overlayMedia img{
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.overlayBadge{
  position: absolute;
  left: 14px;
  top: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #0b1a15;
  color: #fff;
  border: 1px solid rgba(0,0,0,.20);
  box-shadow: 0 2px 0 rgba(0,0,0,.22);
}

.overlayBody{ padding: 16px; }

.overlayTitle{
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .4px;
  color: rgba(0,0,0,.85);
}

.overlayMeta{
  margin: 8px 0 14px;
  font-size: 12.5px;
  color: rgba(0,0,0,.62);
}

.overlayGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.overlayBox{
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  padding: 12px;
}

.overlayLabel{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(0,0,0,.60);
  margin-bottom: 6px;
}

.overlayText{
  font-size: 12.5px;
  color: rgba(0,0,0,.78);
  line-height: 1.6;
}

.overlayDesc{
  font-size: 12.5px;
  color: rgba(0,0,0,.75);
  line-height: 1.7;
}

@media (max-width: 900px){
  .overlayMedia img{ height: 220px; }
  .overlayGrid{ grid-template-columns: 1fr; }
}

/* FOLDER TABS (under hero text) */

.folderTabs{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.folderTab{
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;
  padding: 10px 16px;
  border-radius: 999px;

  background: #ffffff;
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: var(--shadowUI);
  color: rgba(0,0,0,.78);

  transition: all .15s ease;
}

/* subtle folder color accents */
.folderTab:nth-child(1){ background:#e8f8e1; }
.folderTab:nth-child(2){ background:#fff0d9; }
.folderTab:nth-child(3){ background:#e6f5ff; }
.folderTab:nth-child(4){ background:#ffe8f0; }
.folderTab:nth-child(5){ background:#fbf2b6; }

.folderTab:hover{
  transform: translateY(-2px);
  background:#ffffff;
}

/* OVERLAY */
.overlay{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.overlay.isOpen{
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlayBackdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

/* CARD */
.overlayCard{
  position: relative;
  width: min(860px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;

  background: linear-gradient(180deg, var(--paper), var(--paper2));
  border: 1px solid rgba(0,0,0,.22);
  box-shadow: var(--shadowPaper);
  border-radius: 18px;
  z-index: 2;
}

/* CLOSE BUTTON */
.overlayClose{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.2);
  background: #ffffff;
  box-shadow: var(--shadowUI);
  cursor: pointer;
  font-weight: 900;
  z-index: 5;
}
/* OVERLAY */
.overlay{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  padding: 20px;                 /* gives breathing room on edges */
}

.overlay.isOpen{
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlayBackdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

/* CARD */
.overlayCard{
  position: relative;
  width: min(820px, 100%);
  max-height: min(720px, calc(100vh - 40px)); /* stops it from getting too tall */
  overflow: hidden;                            /* important */
  display: grid;
  grid-template-rows: auto 1fr;                /* media then body */

  background: linear-gradient(180deg, var(--paper), var(--paper2));
  border: 1px solid rgba(0,0,0,.22);
  box-shadow: var(--shadowPaper);
  border-radius: 18px;

  z-index: 2;
}
.overlayMedia{
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,.12);
  height: 260px;          /* fixed height for the media area */
  overflow: hidden;
}

.overlayMedia img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.overlayBody{
  padding: 16px;
  overflow: auto;         /* scroll only the body area */
}

/* ================= OVERLAY ================= */

.overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.overlay.isOpen{
  display: flex;
}

.overlayBackdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

/* CARD */
.overlayCard{
  position: relative;
  width: min(820px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  background: linear-gradient(180deg, var(--paper), var(--paper2));
  border: 1px solid rgba(0,0,0,.22);
  box-shadow: var(--shadowPaper);
  border-radius: 18px;

  z-index: 2;
}

/* IMAGE AREA */
.overlayMedia{
  position: relative;
  height: 260px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.overlayMedia img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* BODY */
.overlayBody{
  padding: 18px;
  overflow-y: auto;
}

/* CLOSE BUTTON */
.overlayClose{
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.2);
  background: #ffffff;
  box-shadow: var(--shadowUI);
  cursor: pointer;
  font-weight: 900;
  z-index: 5;
}

/* ================= MOBILE FIXES (HOME PAGE) ================= */
@media (max-width: 900px){

  /* overall spacing */
  .scene{ padding: 16px 12px 28px; }
  .wrap{ width: 100%; }

  /* header becomes stacked and centered-ish */
  .topline{
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: start;
  }
  .topnav{
    justify-content: flex-start;
    gap: 8px;
  }
  .miniBtn{
    font-size: 11px;
    padding: 8px 10px;
  }

  /* tape position for smaller screens */
  .tape{
    top: 62px;
    margin-top: 15px;
  }

  /* paper padding tighter */
  .paper{ padding: 8px; border-radius: 18px; margin-top: 30px; }
  .paper__inner{ padding: 14px; }

  /* HERO: stack + make polaroid full width */
  .heroGrid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .idbox{
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
    order: 2; /* put polaroid after text */
  }

  .photo{
    height: 320px; /* nicer on mobile */
  }

  /* sticky should be full width */
  .sticky{
    width: 100%;
  }

  /* CTA buttons should wrap nicely */
  .ctaRow{
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .btn{
    width: 100%;
    text-align: center;
  }

  /* hide decorative side tabs on mobile */
  .tabs{ display: none; }

  /* ABOUT: remove the negative margin that breaks mobile */
  .polaroid{ margin-top: 0 !important; }

  /* About cards stack cleanly */
  .subWrap,
  .subWrap--right{
    grid-template-columns: 1fr;
    justify-content: start;
    gap: 12px;
  }

  /* make polaroids responsive */
  .polaroid--mini{
    width: 100%;
  }
  .pImg{
    height: 240px;
  }

  /* make text boxes full width */
  .subRow{
    width: 100%;
    max-width: none;
  }

  /* section padding a bit smaller */
  .sec{ padding: 18px; }

  /* remove those <br><br><br><br> effects on mobile (keep content tight) */
  .secHead--big br{ display: none; }
}

.secHead--big{ padding-bottom: 18px; }

@media (max-width: 900px){

  /* stack everything */
  .subWrap,
  .subWrap--right{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 🔥 Flip the LEFT rows only */
  .subWrap--left .subRow{ order: 0; }     /* text first */
  .subWrap--left .polaroid{ order: 1; }   /* image second */

  /* remove desktop spacing that breaks mobile */
  .polaroid{ margin-top: 0 !important; }
  .miniSticky--email{ margin-top: 20px; }
}

.pThumb video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Overlay video sizing fix ===== */
.overlayMedia{
  position: relative;
  height: 260px;          /* keep same height as your image area */
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,.12);
}

/* make BOTH image and video behave the same */
.overlayMedia img,
.overlayMedia video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;      /* fills area nicely */
}

/* ===== FULLSCREEN STYLE OVERLAY MEDIA ===== */

.overlayCard{
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

/* Media takes full width and expands */
.overlayMedia{
  position: relative;
  width: 100%;
  height: 60vh; /* bigger visual impact */
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,.12);
}

/* Make BOTH image and video fully fill */
.overlayMedia img,
.overlayMedia video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* fills entire space */
}

.carousel{
  position: relative;
  overflow: hidden;
}

.carousel img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: autoSlide 9s infinite;
}

.carousel img:nth-child(1){ animation-delay: 0s; }
.carousel img:nth-child(2){ animation-delay: 3s; }
.carousel img:nth-child(3){ animation-delay: 6s; }

@keyframes autoSlide{
  0%{ opacity:0; }
  5%{ opacity:1; }
  30%{ opacity:1; }
  35%{ opacity:0; }
  100%{ opacity:0; }
}

.overlayCarousel{
  position: relative;
  width: 100%;
  height: 100%;
}

.overlayCarousel img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s ease;
}

.overlayCarousel img.active{
  opacity: 1;
}

/* arrows */
.ovNav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.5);
  color: white;
  font-size: 22px;
  cursor: pointer;
  z-index: 5;
}

.ovPrev{ left: 12px; }
.ovNext{ right: 12px; }

/* ===== OVERLAY CAROUSEL ===== */
.overlayMedia{
  position: relative; /* needed for absolute arrows */
}

/* carousel fills the media area */
.overlayCarousel{
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* all images hidden by default */
.overlayCarousel img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* change to contain if you want no crop */
  display: none;
}

/* only active shows */
.overlayCarousel img.isActive{
  display: block;
}

/* ===== OVERLAY ARROWS (center the icon) ===== */
.ovNav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  border-radius: 999px;

  padding: 0;
  border: none;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  line-height: 1;
  font-weight: 900;

  background: rgba(0,0,0,.45);
  color: #fff;
  cursor: pointer;
  z-index: 10;
}

.ovPrev{ left: 14px; }
.ovNext{ right: 14px; }

.ovNav:active{
  transform: translateY(-50%) scale(.98);
}


/* ===== OVERLAY CAROUSEL (FINAL OVERRIDE) ===== */
.overlayMedia{ position: relative; }

.overlayCarousel{
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: block; /* JS can still show/hide, but this prevents weird defaults */
}

/* all images stacked */
.overlayCarousel img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;        /* don't use display none */
  opacity: 0;
  transition: opacity .35s ease;
}

/* support BOTH class names */
.overlayCarousel img.isActive,
.overlayCarousel img.active{
  opacity: 1;
  z-index: 2;
}

/* arrows always above */
.ovNav{
  z-index: 20;
}


/* ===== HOME CARD CAROUSEL: 2 IMAGES ONLY (fix blank gap) ===== */
.carousel--2 img{
  animation: autoSlide2 6s infinite;
}

.carousel--2 img:nth-child(1){ animation-delay: 0s; }
.carousel--2 img:nth-child(2){ animation-delay: 3s; }

@keyframes autoSlide2{
  0%{ opacity:0; }
  5%{ opacity:1; }
  45%{ opacity:1; }
  50%{ opacity:0; }
  100%{ opacity:0; }
}
