body {
    background-color: #f5f0bc;
    font-family: Tahoma, sans-serif;
    color: #0f0301;
    
}
.topbar{
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background-color: #f5f0bc;
    border-bottom:#0f0301 solid 1px;
    font-size: 0.85rem;
    text-transform: uppercase;
}
.topbar a {
    color: inherit;
    text-decoration: none;
}
.topbar a:hover {
    text-decoration: underline;
}
.topbar a:first-child {
    justify-self: start; /* Locks INSTAGRAM strictly to the left edge */
}
.topbar a:last-child {
    justify-self: end;   /* Locks CONTACT strictly to the right edge */
} 
.topbar .center {
    justify-self: center;
    animation: bob 1.8s ease-in-out infinite;
}  
@keyframes bob {
        0%, 100% { transform: translateY(0);}
        50% { transform: translateY(-3px); } 
    } 
.topbar .right {
    justify-self: end;
}
.hero { padding: 0.5vw 1rem 0; }
.fit {
    display: inline-block;
    margin: 0;
    white-space: nowrap;
    font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1.1;
}
.about-me {
    padding: 0.5vw 1rem;
    text-align: justify;
    text-justify: inter-word;
    font-size: clamp(1rem, 0.95rem + 0.35vw, 1.35rem);
    line-height: 1.4;
}
.contact-info {
    padding: 0.5vw 1rem;
    text-align: center;
    text-justify: inter-word;
    font-size: clamp(1rem, 0.95rem + 0.35vw, 1.35rem);
    line-height: 1.4;
}
/* ---------- cabinet ---------- */
.cabinet {
    --paper: #f5f0bc;               /* same as your page background */
    --ink: #0f0301;                 /* same as your text color */
    --tab-h: 34px;
    /* closed folder height: splits one screen evenly between all folders.
       --n is set by script.js (number of folders) */
    --strip: max(calc(var(--tab-h) + 10px), calc((100svh - var(--tab-h)) / var(--n, 8)));
 
    margin: 2rem 1rem 0;            /* same 1rem side margin as the rest of the page */
    padding-top: var(--tab-h);      /* room for the first tab */
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: 15px;
    line-height: 1.6;
}
.cabinet, .cabinet * { box-sizing: border-box; }
 
.folder {
    position: relative;
    min-height: var(--strip);
    background: var(--paper);
    border-top: 1px solid var(--ink);
    border-left: 1px solid var(--ink);
    border-right: 1px solid var(--ink);
}
.folder:last-child {
    border-bottom: 1px solid var(--ink);
    border-radius: 0 0 24px 24px;
}
 
.tab {
    position: absolute;
    top: calc(var(--tab-h) * -1);
    height: calc(var(--tab-h) + 1px);
    padding: 0 26px;
    display: flex;
    gap: 3.5rem;
    align-items: center;
    font: inherit;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--ink);
    border-bottom: none;
    border-radius: 18px 18px 0 0;
}
.folder.left  .tab { left: 28px; }
.folder.right .tab { right: 28px; }
.tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
 
/* the body: closed = 0 tall, hovered = grows to fit its content */
.body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .45s ease;
}
.folder:hover .body,
.folder:has(:focus-visible) .body { grid-template-rows: 1fr; }
.clip { overflow: hidden; min-height: 0; }
.content { padding: 28px 32px 0; }
.content h2 { font-size: 1rem; font-weight: 500; margin: 0 0 1rem; }
.content p { margin: 0 0 1rem; max-width: 62ch; }
/* bottom room so the next folder's tab never covers text */
.content::after { content: ""; display: block; height: var(--tab-h); }
 
@media (prefers-reduced-motion: reduce) {
    .body { transition: none; }
}
@media (max-width: 520px) {
    .tab { padding: 0 16px; gap: 1.5rem; font-size: 13px; }
    .folder.left .tab { left: 12px; }
    .folder.right .tab { right: 12px; }
    .content { padding: 24px 20px 0; }
}
.float-zone {
  position: fixed;
  inset: 0;                 /* top/right/bottom/left all 0 = full screen */
  overflow: hidden;
  pointer-events: none;     /* so it doesn't block clicks on your page content */
  z-index: 1;
}

.float-link {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;     /* but the links themselves stay clickable */
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  white-space: nowrap;
}
.float-email { animation: roam-a 28s ease-in-out infinite; }
.float-insta { animation: roam-b 34s ease-in-out infinite; } 
/* the -Xvw/-Xvh values are how far across the screen it travels */
 @keyframes roam-a {
   0%   { transform: translate(8vw, 12vh) rotate(-2deg); }
   20%  { transform: translate(60vw, 20vh) rotate(2deg); }
   40%  { transform: translate(70vw, 70vh) rotate(-1deg); }
   60%  { transform: translate(25vw, 80vh) rotate(2deg); }
   80%  { transform: translate(10vw, 45vh) rotate(-2deg); }
   100% { transform: translate(8vw, 12vh) rotate(-2deg); }
 }

 @keyframes roam-b {
   0%   { transform: translate(65vw, 75vh) rotate(2deg); }
   20%  { transform: translate(20vw, 60vh) rotate(-2deg); }
   40%  { transform: translate(5vw, 15vh) rotate(1deg); }
   60%  { transform: translate(45vw, 8vh) rotate(-2deg); }
   80%  { transform: translate(75vw, 35vh) rotate(2deg); }
   100% { transform: translate(65vw, 75vh) rotate(2deg); }
 }

 .float-link:hover {
   animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .float-zone { position: static; pointer-events: auto; }
  .float-link { animation: none; position: static; display: inline-block; margin: 0.5rem; }
}