﻿/* ===== layout.css ===== */

/* Work area + app window */
.main-workarea{
  position: relative;
  max-width: 720px;               /* smaller center window */
  height: calc(100vh - 160px);    /* topbar + taskbar */
  margin: 20px auto 664px;
  transform : translateX(5%);      /* subtle right shift*/
}

.window.app{
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 0;
  background: var(--panel);
  font-family: 'LeviWindows', 'Press Start 2P', monospace;
  font-size: 17px;       
  font-weight: 500;
  letter-spacing: 0.1px;
  color: var(--text);
}

.window.app .content{
  padding:1rem;
  overflow:auto;
  height:100%;
}

/* Window chrome */
.window{
  position:relative;
  max-width:700px;
  margin:1.2rem auto;
  background:var(--panel);
  border:3px solid var(--frame);
  border-radius:0;
  overflow:hidden;
  box-shadow:6px 6px 0 rgba(0,0,0,.45);
}

.window::before {
  content: '';
  position: absolute;
  inset: -3px;                         /* sit halfway across the border */
  border: 5px solid transparent;
  border-top-color: rgba(255,255,255,.25);   /* highlight */
  border-left-color: rgba(255,255,255,.15);
  border-right-color: rgba(0,0,0,.35);       /* shadow strip */
  border-bottom-color: rgba(0,0,0,.45);
  pointer-events: none;
} 

.window.app.closed{
  display:none;
}

.window.app.minimized{
  max-height:38px;
  overflow:hidden;
}

.window.app.minimized .content{
  display:none;
}

.window.app.maximized {
  position: fixed;
  inset: 40px 32px 48px 32px;  /* top, right, bottom, left offsets */
  max-width: none;
  width: auto;
  height: auto;
  margin: 0;
  z-index: 80;
}

.window.app.maximized .content{
  flex:1;
}

 .titlebar{
  display:flex; align-items:center;
  background-color: var(--border);
  border-bottom:1px solid var(--tab-bot);
  height:30px; padding:0 .4rem;
}

.titlebar .title{
  margin-left:-3px; margin-right:auto;      
  font-weight:600; white-space:nowrap;
  letter-spacing: 0.8px;
  font-size: 15px;
  color: rgb(234, 223, 241);
} 

.win-controls{
  display:flex;
  gap:2px;
  margin-left:auto;
  margin-right: -5px;
  padding:1px;
}

.win-btn{
  width:28px;
  height:22px;
  line-height:20px;
  font:900 14px/1 'LeviWindows', monospace;
  color: #6e6e6e;
  background:#d7d7d7;
  border:2px solid;
  border-color:#f8f8f8 #4a4a4a #4a4a4a #f8f8f8;
  border-radius:0;
  box-shadow:none;
  image-rendering:pixelated;
  cursor:url(https://cur.cursors-4u.net/anime/ani-10/ani977.png) 2 2, pointer;
}

.win-btn:hover{
  background:#c9c9c9;
}

.win-btn:active{
  border-color:#4a4a4a #f8f8f8 #f8f8f8 #4a4a4a;
  background:#bdbdbd;
}

.win-btn.close:active{
  border-color:#5e0a12 #ffe0e5 #ffe0e5 #5e0a12;
  background:#d2949c;
}

/* Topbar + brand + ticker */

.dock{ display:none; }

.ticker{ position:relative; overflow:hidden; width:360px; height:21px; }
.ticker__track{
  position:absolute; white-space:nowrap; animation:marquee 16s linear infinite; opacity:.95;
}

@keyframes marquee{
  from{ transform:translateX(0); }
  to  { transform:translateX(-50%); }
}

/* Sidebar icon labels (make larger + easier to read) */
.sidebar .side-label {
  font-family: 'LeviWindows', monospace;
  font-size: 17px;       
  color: var(--text);
  text-align: center;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.4);

}

.ui-pixel{ font-family: 'LeviWindows', 'Press Start 2P', monospace;}
.terminal, pre, code{ font-family:'VT323','Fira Code',monospace; font-size:18px; }

.hero-cursive {
  font-family: "AdvinePixel", "Monotype Corsiva", serif;
  font-size: clamp(3rem, 4.6vw, 3.1rem);
  letter-spacing: 0.05rem;
  text-align: left;
  color: var(--accent);
  text-shadow: 1px 1px 0 #3e012e;
}


/* Terminal look */
pre.terminal{
  background:#0b1c1c; color:#bff3c9; border:1px solid var(--border);
  border-radius:.5rem; padding:.9rem; overflow:auto; position:relative;
  box-shadow: inset 0 0 0 1px #082a22;
  text-shadow: 0 0 2px rgba(122, 218, 165, .35);
}
.prompt{ color:var(--accent-2); }
code.kbd{ background:#0e1515; padding:.15rem .35rem; border-radius:.3rem; border:1px solid var(--border); }

/* Typography bits */
h1,h2,h3{ margin:.2rem 0 .6rem 0; }
h1{ font-size:1.8rem; }
h2{ font-size:1.35rem; color:var(--accent-2); }
h3{ font-size:1.08rem; color:var(--link); }
p{ margin:.3rem 0 .9rem; }

/* Grid + cards */
.grid{ display:grid; gap:.9rem; }
@media (min-width:820px){ .grid.cols-2{ grid-template-columns:1fr 1fr; } }

.card{
  border:1px solid var(--border); border-radius:.5rem; padding:.9rem;
  background:linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: inset 0 0 0 1px var(--frame);
}

.about-card{
  padding:0;
  border:3px solid var(--accent-2);
  border-radius:0;
  box-shadow:6px 6px 0 rgba(0,0,0,.45);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.03),
      rgba(255,255,255,.03) 1px,
      rgba(0,0,0,.03) 1px,
      rgba(0,0,0,.03) 2px
    ),
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 70%, black), color-mix(in srgb, var(--panel-2) 75%, black));
}

.about-card::before{
  content:"";
  position:absolute;
  inset:2px;
  border:2px solid;
  border-color: rgba(255,255,255,.45) rgba(0,0,0,.45) rgba(0,0,0,.55) rgba(255,255,255,.35);
  pointer-events:none;
}

.about-card__header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:.5rem .8rem;
  background:linear-gradient(90deg, rgba(255,255,255,.4), rgba(255,255,255,0));
  border-bottom:3px solid var(--accent-2);
  font-family:'LeviWindows','Press Start 2P',monospace;
  text-transform:uppercase;
  letter-spacing:.08rem;
  color:var(--accent-2);
}

.about-card__badge{
  padding:.1rem .4rem;
  border:2px solid var(--border);
  background:var(--panel);
  box-shadow:2px 2px 0 rgba(0,0,0,.4);
}

.profile-pic-wrap{
  float:right;
  width:155px;
  margin: -60px 0 1rem 1rem;
  padding:.4rem;
  background:color-mix(in srgb, #cbd4ff 65%, var(--panel));
  border:3px solid #fff;
  outline:2px solid #0d0b18;
  box-shadow:10px 10px 0 rgba(0,0,0,.45);
  transform:rotate(0deg);
}

.profile-pic-wrap img{
  width:100%;
  display:block;
  border:2px solid var(--frame);
  border-radius:0;
}

.about-panel{
  border:2px solid color-mix(in srgb, var(--accent-2) 60%, black);
  padding:.9rem;
  margin:0 .9rem .9rem;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.03),
      rgba(255,255,255,.03) 1px,
      rgba(0,0,0,.03) 1px,
      rgba(0,0,0,.03) 2px
    ),
    color-mix(in srgb, var(--panel) 70%, var(--panel-2));
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,.35),
    inset -1px -1px 0 rgba(0,0,0,.35),
    4px 4px 0 rgba(0,0,0,.35);
}

.about-panel h3{
  margin:.1rem 0 .5rem;
  font-family:'LeviWindows','Press Start 2P',monospace;
  font-size:.9rem;
  letter-spacing:.08rem;
  text-transform:uppercase;
  color:var(--accent-2);
  background:none;
  padding:0;
  border:none;
  display:inline-block;
  text-shadow:1px 1px 0 rgba(0,0,0,.35);
}

.about-list{
  margin:.4rem 0 0;
  padding-left:1.2rem;
  list-style:square;
}

.about-status{
  margin:0 .9rem 1rem;
  padding:.4rem .6rem;
  border:2px dashed rgba(255,255,255,.5);
  font-family:'VT323','Fira Code',monospace;
  background:rgba(0,0,0,.15);
}



.pill{
  display:inline-block;
  padding:.12rem .45rem;
  border:1px solid var(--border);
  border-radius:999px;
  margin-right:0;
  font-size:.8rem;
  color:var(--muted);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.28),
    rgba(255,255,255,0) 55%
  );
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,.45),
    inset -1px -1px 0 rgba(0,0,0,.25);
}

/* Sidebar */
.sidebar{ position:fixed; left:20px; top:50px; z-index:60; display:flex; flex-direction:column; gap:.6rem; align-items:center; width:116px}
.side-icon{ width:65px; display:flex; flex-direction:column; align-items:center; text-decoration:none; background:transparent; border:0; }
.side-icon .imgwrap{ width:65px; height:65px; display:flex; align-items:center; justify-content:center; }
.side-icon .imgwrap img{ max-width:75%; max-height:75%; image-rendering:pixelated; }
.side-label{ margin-top:.1rem; font-size:.62rem; color:var(--text); text-align:center; opacity:.95; }

/* Active sidebar state */
.side-icon.active .side-label{ text-decoration:underline; }
.side-icon.active .imgwrap{ outline:2px solid var(--link); outline-offset:2px; }

/* Background */

.decor{ z-index:0; opacity:.95; }

.bg-window{
  position:absolute;
  border-radius:0;
  opacity:1;                          
  filter: saturate(0.95);
}

.bg-window--cd .bg-body{
  position: relative;
}

.cd-player__button{
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cd-player__button::after{
  content: "PLAY";
  position: absolute;
  right: 14%;
  bottom: 18%;
  padding: 2px 6px;
  font: 700 12px/1 'LeviWindows','Press Start 2P',monospace;
  color: #0b3b3e;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.4);
  box-shadow: 1px 1px 0 rgba(0,0,0,.35);
}

.bg-window--cd.is-playing .cd-player__button::after{
  content: "PAUSE";
}

/* Taskbar */
.taskbar{
  position:fixed; left:0; right:0; bottom:0; height:34px;
  display:flex; align-items:center; gap:.5rem; padding:0 0.5rem;
  background: #c0c0c0;
  border-bottom:4px solid #4b4b4b;
  border-top:2px solid #dfdfdf;
  box-shadow:
    inset 0 1px 0 #ffffff,   /* top inner highlight */
    inset 0 -1px 0 #808080,  /* bottom shadow */
    0 -2px 0 #404040;        /* outer dark edge */

  font-family: 'LeviWindows';
  color: #000;
}

.taskbar .start {
  all: unset;                     /* reset inherited props */
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: 1px 9px;
  height: 20px;
  cursor: url(https://cur.cursors-4u.net/anime/ani-10/ani977.png) 2 2, pointer;

  background: linear-gradient(#e8e8e8, #bcbcbc);
  border: 2px solid;
  border-color: #ffffff #404040 #404040 #ffffff; /* raised bevel */
  box-shadow:
    inset 1px 1px 0 #dfdfdf,
    inset -1px -1px 0 #a0a0a0;
  color: #000;
  font: 800 14px/1 'LeviWindows', system-ui, sans-serif; /* smaller than top/bottom bars */
}


/* depress effect when pressed */
.taskbar .start:active {
  border-color: #404040 #ffffff #ffffff #404040; /* inverted bevel */
  box-shadow:
    inset -1px -1px 0 #dfdfdf,
    inset 1px 1px 0 #a0a0a0;
}

/* kill the global focus outline just for Start */
.taskbar .start:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -2px;
}

/* Clock area */
.tray {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  padding: 1px 8px;
}

.clock {
  font-size: 13px;
  font-weight: 500;
  font-family: 'LeviWindows', monospace;
  color: #000;
}

.task-items{ display:flex; gap:.4rem; flex:1; }

.taskbar .taskbar-toggle{
  margin-left:.4rem;
  background:#f0f0f0;
  border:2px solid;
  border-color:#e8e9ea #5a5a5a #5a5a5a #ffffff;
  padding:3px 10px;
  font:600 13px/1 'LeviWindows', system-ui;
  color:#1b1b1b;
  cursor:url(https://cur.cursors-4u.net/anime/ani-10/ani977.png) 2 2, pointer;
  border-radius:0;
}

.taskbar .taskbar-toggle:active{
  border-color:#5a5a5a #f0f0f0 #ffffff #5a5a5a;
}

.taskbar .taskbar-toggle[aria-pressed="true"]{
  background:#d6e2d8;
  border-color:#5a5a5a #534d4d #ffffff #5a5a5a;
  box-shadow:
    inset -1px -1px 0 #efefef,
    inset 1px 1px 0 #8a8a8a;
  cursor:url(https://cur.cursors-4u.net/anime/ani-10/ani977.png) 2 2, pointer;
}

/* task item "button" look */
.task-items .task {
  background: #8aa0ca;
  color: #f3e9ff;
  border: 2px solid #2a3e7a;
  box-shadow:
    inset -1px -1px 0 rgba(255,255,255,.18),
    inset 1px 1px 0 rgba(0,0,0,.15);
  padding: 3px 10px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  font: 500 14px/1 'LeviWindows', system-ui, sans-serif;
  cursor:url(https://cur.cursors-4u.net/anime/ani-10/ani977.png) 2 2, pointer;

}

.task-items .task.minimized{
  background: linear-gradient(#f6f6f6,#d8d8d8);
  color:#1e1e1e;
  border-color:#ffffff #5a5a5a #5a5a5a #ffffff;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -1px -1px 0 #979797;
  cursor:pointer;
}

.task-items .task.hidden{
  display:none;
}

/* Template nodes are never displayed in routed mode */
.template{ display:none !important; }

.intro-blurb__headline {
  display: block;
  text-align: center;
}

.course-list {
  list-style: none;
  padding-left: 0;
  margin-top: .5rem;
  font-size: .85rem;
}

.course-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: .35rem;
}

.term-badge {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: .65rem;
  color: var(--accent-2);
  white-space: nowrap;
  box-shadow:
    inset 0 0 0 1px var(--frame),
    1px 1px 0 rgba(0,0,0,.3);
  text-transform: lowercase;
  opacity: .99;
}


@media (max-width: 640px) {
  .profile-pic-wrap {
    float: none;
    width: min(70vw, 160px);
    margin: 0 auto var(--space-3);
  }
}


/* ===== Education window: retro report card ===== */

.edu-card {
  max-width: 780px;
  margin: 0 auto 1rem;
  border: 3px solid var(--accent-2);
  box-shadow:
    0 0 0 2px color-mix(in srgb, #ffffff 60%, var(--accent-2)),
    6px 6px 0 rgba(0,0,0,.45);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--panel) 60%, rgb(124, 194, 232)),
    color-mix(in srgb, var(--panel-2) 50%, rgb(84, 169, 192))
  );
}

/* top strip like a system banner */
.edu-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .35rem .7rem;
  background: linear-gradient(180deg,
    rgba(255,255,255,.6),
    rgba(255,255,255,.15) 55%,
    rgba(0,0,0,.12)
  );
  border-bottom: 3px solid var(--accent-2);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #1a1227;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.edu-header .edu-label {
  padding: .1rem .4rem;
  border: 2px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0));
  box-shadow: 2px 2px 0 rgba(0,0,0,.35);
  color: var(--text);
}

.edu-header .edu-title {
  flex: 1;
}

.edu-header .edu-tag {
  font-size: .65rem;
  opacity: .9;
}

/* body: two columns, main + sidebar */
.edu-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr);
  gap: 1rem;
  padding: .9rem .9rem .7rem;
  border-top: 1px solid rgba(255,255,255,.35);
  border-bottom: 1px solid rgba(0,0,0,.25);
}

.edu-main p {
  margin: .25rem 0 .50rem;
  font-size: .95rem;
}

.edu-side {
  padding: .65rem .7rem .5rem;
  border: 2px solid color-mix(in srgb, var(--accent-2) 55%, black);
  background: linear-gradient(180deg,
    rgba(255,255,255,.35),
    rgba(255,255,255,.08) 50%,
    rgba(0,0,0,.12)
  );
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,.5),
    inset -1px -1px 0 rgba(0,0,0,.35),
    4px 4px 0 rgba(0,0,0,.35);
}

.edu-side h3 {
  margin: 0 0 .4rem;
  font-size: .88rem;
  color: var(--xp-shadow);
  text-shadow: 0.5px 0.5px var(--accent-2);
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px dotted rgba(0,0,0,.35);
  padding-bottom: .2rem;
}

.u-initial{
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* reuse course list but tighten slightly */
.edu-side .course-list li {
  margin-bottom: .3rem;
}

.edu-footer-note {
  margin-top: .4rem;
  font-size: .8rem;
  color: var(--muted);
}

/* footer strip */
.edu-footer {
  padding: .25rem .7rem .35rem;
  border-top: 2px solid color-mix(in srgb, var(--accent-2) 60%, black);
  background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(0,0,0,.2));
  font-size: .75rem;
  color: color-mix(in srgb, var(--text) 85%, white);
  text-align: right;
}

/* stack nicely on mobile */
@media (max-width: 720px) {
  .edu-body {
    grid-template-columns: 1fr;
  }
}

/* === PROJECTS: 90s two-column ad cards ================= */

/* 2-column grid like the Sony portal */
.project-stack{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 880px){
  .project-stack{
    grid-template-columns: 1fr;
  }
}

/* Base panel */
.project-panel{
  position: relative;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  overflow: hidden;
  --panel-bg: color-mix(in srgb, var(--panel) 70%, white);
  --panel-bar: color-mix(in srgb, var(--accent) 80%, var(--panel));

  border-radius: 0;
  border: 3px solid var(--frame);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.03),
      rgba(255,255,255,.03) 1px,
      rgba(0,0,0,.03) 1px,
      rgba(0,0,0,.03) 2px
    ),
    var(--panel-bg);
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,.45),
    inset -2px -2px 0 rgba(0,0,0,.45),
    0 0 0 2px #ffffff,
    4px 4px 0 rgba(0,0,0,.7);
}

/* extra inner bezel edge */
.project-panel::before{
  content:"";
  position:absolute;
  inset:2px;
  border:2px solid;
  border-color: rgba(255,255,255,.55) rgba(0,0,0,.45) rgba(0,0,0,.6) rgba(255,255,255,.35);
  pointer-events:none;
}

/* inner highlight edge */
.project-panel::after{
  content:"";
  position:absolute;
  inset:0;
  border:1px solid rgba(255,255,255,.18);
  pointer-events:none;
}

.project-panel .panel-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:.45rem .7rem;
  background: var(--panel-bar);
  color:#000;
  border-bottom:2px solid rgba(0,0,0,.6);
  letter-spacing:.08em;
  font-family:'LeviWindows','Press Start 2P',monospace;
}

.panel-header h3{
  margin:0;
  font-size:1rem;
  font-weight:800;
  text-shadow: 1px 1px 0 rgba(0,0,0,.3);
  color:var(--accent-2);
  text-decoration:none;
}

.panel-tag{
  font-size:.75rem;
}

/* body: text + small thumbnail */
.panel-body{
  display:flex;
  align-items:flex-start;
  padding:.8em;
  font-weight: 560;
}

.panel-copy{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
}

.panel-meta{
  display:flex;
  flex-wrap:wrap;
  gap:.35rem .45rem;
}

.panel-links{
  display:flex;
  flex-wrap:wrap;
  gap:.35rem .55rem;
  margin-top:.6rem;
  align-items:center;
}


/* thumbnail block */
.panel-art img,
.panel-art__placeholder{
  width:120px;
  height:120px;
  border-radius:0;
  border:3px solid #fff;
  box-shadow:3px 3px 0 rgba(0,0,0,.7);
  background:var(--panel);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.1rem;
}

.panel-art{
  flex: 0 0 120px;
}

.panel-art img{
  display:block;
  object-fit: cover;
  object-position: center;
}

.project-panel:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 2px #ffffff,
    5px 5px 0 rgba(0,0,0,.75);
}

.panel-more-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color:var(--xp-links-text);
  font-weight: 700;
  font-size: .90rem;
  font-family: inherit;
  cursor: url(https://cur.cursors-4u.net/anime/ani-10/ani977.png) 2 2, pointer;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--panel-bg, var(--panel)) 82%, white),
    color-mix(in srgb, var(--panel-bg, var(--panel)) 70%, black)
  );
  border:2px solid;
  border-color: rgba(255,255,255,.75) rgba(0,0,0,.5) rgba(0,0,0,.6) rgba(255,255,255,.6);
  padding: .3rem .7rem;
  transition: border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease, opacity 0.15s ease;
  text-decoration:none;
}

.panel-more-link:hover {
  border-color: var(--link);
  color: var(--link);
  box-shadow: 3px 3px 0 rgba(0,0,0,.45);
}

.panel-more-link:active{
  transform: translateY(1px);
  border-color: rgba(0,0,0,.6) rgba(255,255,255,.75) rgba(255,255,255,.75) rgba(0,0,0,.6);
  box-shadow: 1px 1px 0 rgba(0,0,0,.35);
}

.project-panel.theme-mint{
  --panel-bg: color-mix(in srgb, var(--proj-mint-bg) 50%, var(--panel));
  --panel-bar: color-mix(in srgb, var(--proj-mint-bar) 70%, white);
}

.project-panel.theme-rose{
  --panel-bg: color-mix(in srgb, var(--proj-rose-bg) 55%, var(--panel-2));
  --panel-bar: color-mix(in srgb, var(--proj-rose-bar) 75%, white);
}

.project-panel.theme-lime{
  --panel-bg: color-mix(in srgb, var(--proj-lime-bg) 55%, var(--panel));
  --panel-bar: color-mix(in srgb, var(--proj-lime-bar) 75%, white);
}

.project-panel.theme-amber{
  --panel-bg: color-mix(in srgb, var(--proj-amber-bg) 55%, var(--panel));
  --panel-bar: color-mix(in srgb, var(--proj-amber-bar) 80%, white);
}

.project-panel.theme-lilac{
  --panel-bg: color-mix(in srgb, var(--proj-lilac-bg) 60%, var(--panel-2));
  --panel-bar: color-mix(in srgb, var(--proj-lilac-bar) 80%, white);
}

.project-panel.theme-cyan{
  --panel-bg: color-mix(in srgb, var(--proj-cyan-bg) 55%, var(--panel));
  --panel-bar: color-mix(in srgb, var(--proj-cyan-bar) 80%, white);
}

/* mobile tweak: stack image above text */
@media (max-width: 720px){
  .panel-body{
    flex-direction:column;
  }
  .panel-art{
    order:-1;
    align-self:center;
  }
}

/* ===== PROJECT MODAL WINDOW ===== */

.project-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.project-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.project-modal {
  position: relative;
  max-width: 800px;
  max-height: 85vh;
  width: 100%;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.03),
      rgba(255,255,255,.03) 1px,
      rgba(0,0,0,.03) 1px,
      rgba(0,0,0,.03) 2px
    ),
    color-mix(in srgb, var(--modal-bg, var(--panel)) 95%, black);
  border: 3px solid var(--frame);
  box-shadow: 
    inset 2px 2px 0 rgba(255,255,255,.35),
    inset -2px -2px 0 rgba(0,0,0,.45),
    0 0 0 2px rgba(255,255,255,.3),
    8px 8px 0 rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.project-modal::before{
  content:"";
  position:absolute;
  inset:2px;
  border:2px solid;
  border-color: rgba(255,255,255,.55) rgba(0,0,0,.45) rgba(0,0,0,.6) rgba(255,255,255,.35);
  pointer-events:none;
}

.project-modal-overlay.active .project-modal {
  transform: scale(1);
}

/* Modal titlebar */
.project-modal__titlebar {
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--modal-bar, var(--border)) 95%, black);
  border-bottom: 1px solid var(--tab-bot);
  height: 30px;
  padding: 0 .4rem;
}

.project-modal__title {
  margin-left: -3px;
  margin-right: auto;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.8px;
  font-size: 15px;
  color: rgb(234, 223, 241);
  font-family: 'LeviWindows', 'Press Start 2P', monospace;
}

.project-modal__close {
  width: 28px;
  height: 20px;
  line-height: 20px;
  font: 900 14px/1 'LeviWindows', monospace;
  color: #6e6e6e;
  background: #d7d7d7;
  border: 2px solid;
  border-color: #f8f8f8 #4a4a4a #4a4a4a #f8f8f8;
  border-radius: 0;
  cursor: url(https://cur.cursors-4u.net/anime/ani-10/ani977.png) 2 2, pointer;
}

.project-modal__close:hover {
  background: #c9c9c9;
}

.project-modal__close:active {
  border-color: #5e0a12 #ffe0e5 #ffe0e5 #5e0a12;
  background: #d2949c;
}

/* Modal content area */
.project-modal__content {
  padding: .7rem;
  overflow-y: auto;
  flex: 1;
  font-size: .97rem;
  font-family:'LeviWindows','Press Start 2P',monospace;
}

/* Modal header section */
.modal-project-header {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.modal-project-image {
  flex: 0 0 280px;
}

.modal-project-image img {
  width: 280px;
  height: 280px;
  border: 3px solid #fff;
  box-shadow: 4px 4px 0 rgba(0,0,0,.5);
  background: var(--panel-2);
}

.modal-project-tagline {
  margin: .4rem 0;
  font-size: .95 rem;
  color: var(--text);
  line-height: 1.5;
}

.modal-scroll-hint {
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px dashed rgba(255, 255, 255, .15);
  font-size: .85rem;
  font-style:italic;
  color: rgba(255, 255, 255, .7);
  text-align:center;
}

.modal-project-meta {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: .8rem;
}

.modal-project-info h2{
  font-family:'VT323','Fira Code',monospace;
}

.modal-meta-badge {
  padding: .2rem .6rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: .8rem;
  color: var(--muted);
}

/* Modal body sections */
.modal-section {
  margin-bottom: 1.5rem;
}

.modal-section h3 {
  margin: 0 0 .4rem;
  font-size: 1.07rem;
  color: var(--accent-2);
  text-transform: none;
  letter-spacing: .05em;
  text-shadow: #082a22;
  font-family:'VT323','Fira Code',monospace;
}

.modal-section p {
  margin: .4rem 0;
  line-height: 1.55;
}

.modal-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.modal-tech-stack .pill {
  background: var(--panel-2);
  border-color: var(--accent);
  color: var(--text);
}

/* Modal links */
.modal-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--border);
  font: inherit;
}

.modal-links.modal-links--inline{
  flex-direction: row;
  flex-wrap: wrap;
  gap: .6rem .7rem;
  padding-top: .7rem;
  border-top: none;
  justify-content: center;
}

.modal-links-header {
  font-size: .9rem;
  color: var(--accent);
  letter-spacing: .08em;
  font-family: 'VT323','Fira Code', monospace;
  margin-bottom: .4rem;
}

.modal-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .3rem .9rem;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.38),
    rgba(255,255,255,.18) 45%,
    rgba(255,255,255,.04)
  );
  border: 1px solid rgba(23, 65, 140, .55);
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  font-size: .82rem;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    inset 0 -1px 0 rgba(0,0,0,.15);
  transition: border-color 0.12s ease, color 0.12s ease, opacity 0.15s ease;
  min-width: 80%;
}

.modal-link-btn:hover {
  border-color: var(--link);
  color: var(--link);
}

.modal-link-btn:active {
  border-color: rgba(23, 65, 140, .85);
}

/* Embedded media (slides/videos) */
.modal-embed {
  margin-bottom: 1.5rem;
  border: 3px solid var(--frame);
  box-shadow: 4px 4px 0 rgba(0,0,0,.5);
}

.modal-embed h3 {
  margin: 0;
  padding: 0.5rem .8rem;
  background: var(--border);
  font-size: .9rem;
  color: var(--link);
  font-family:'VT323','Fira Code',monospace;
  border-bottom: 2px solid var(--frame);
}

.modal-embed iframe {
  width: 100%;
  height: 400px;
  display: block;
  border: none;
}

/* Mobile responsive */
@media (max-width: 720px) {
  .project-modal {
    max-width: 95vw;
  }
  
  .modal-project-header {
    flex-direction: column;
  }
  
  .modal-project-image {
    flex: none;
    align-self: center;
  }
  
  .modal-project-image img {
    width: 160px;
    height: 160px;
  }

  .modal-embed iframe {
    height: 250px;
  }
}
/* ===== Experience "blog" log ===== */

.xp-log {
  max-width: 720px;
  margin: 0 auto;
}

.xp-entry {
  margin-bottom: 1.1rem;
  border: 2px solid var(--xp-border);
  box-shadow:
    0 0 0 1px var(--xp-border-inner),
    0 3px 0 0 var(--xp-shadow);
}

/* header bar like old blogspot */
.xp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .25rem .5rem;
  background: linear-gradient(180deg, var(--xp-header-start), var(--xp-header-end));
  color: var(--xp-header-text);
  font-size: 10px;
  text-transform: none;
}


.xp-header .xp-title {
  margin-left: .75rem;
  flex: 1;
  text-align: right;
  font-weight: 700;
  font-size: 0.80rem;
}

/* body = soft pink post area */
.xp-body {
  padding: .7rem .8rem .6rem;
  background: var(--xp-body-bg);
  color: var(--xp-body-text);
  font-size: .9rem;
}

.xp-body p {
  margin: 0 0 .35rem;
}

/* inline mini-links row */
.xp-links {
  margin-top: .5rem;
  font-size: .8rem;
  color: var(--xp-links-text);
}

.xp-links a {
  color: var(--xp-links-link);
  text-decoration: underline;
}

.xp-links span {
  font-style: italic;
}

/* footer line like "posted by Soph at 8:21AM" */
.xp-meta {
  padding: .2rem .5rem .3rem;
  background: var(--xp-meta-bg);
  border-top: 1px solid var(--xp-meta-border);
  color: var(--xp-meta-text);
  font-size: 9px;
  text-align: right;
}

/* Contact card styling */


.contact-splat-note {
  text-align: center;
  font-size: .95rem;
  color: #fff;
  margin-top: -0.3rem;
  margin-bottom: var(--space-3);
}

.contact-fallback {
  text-align: center;
  color: color-mix(in srgb, var(--text) 80%, white);
  margin-bottom: var(--space-4);
}

.contact-fallback a {
  color: var(--link);
}

.contact-tagline {
  font-size: 0.9rem;
  color: #fff;
  margin-top: 0;
  margin-bottom: var(--space-3);
}

.contact-card {
  /* let the orbit float, not sit in a beveled card */
  border: none;
  box-shadow: none;
  background: none;
}

/* main orbit area */
.contact-orbit {
  position: relative;
  width: min(440px, 80vw);
  aspect-ratio: 4 / 3;
  margin: 0 auto var(--space-4);
  border-radius:60%;
  background:
    radial-gradient(circle at 60% 0%, rgba(255, 255, 255, 0.452), transparent 55%),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,.35), transparent 60%);
  overflow: visible;
}

/* grey orbital paths */
/* existing */
.contact-orbit__rings .ring {
  position: absolute;
  inset: 14% 4%;
  border-radius: 50%;
  border: 2px solid rgba(120,120,120,.12);
  transform: scaleX(1.45);
}

.contact-orbit__rings .ring-two {
  inset: 22% 10%;
  border-color: rgba(120, 120, 120, 0.212);
  transform: scaleX(1.55) rotate(8deg);
}

/* new: extra asymmetrical rings */
.contact-orbit__rings .ring-three {
  inset: 32% 14%;
  border-radius: 50%;
  border: 1px solid rgba(120, 120, 120, 0.231);
  transform: scaleX(1.2) rotate(-9deg);
}

/* new: “starry” ring */
.contact-orbit__rings .ring-four {
  inset: 23% 18%;
  border-radius: 50%;
  border: 1px solid;      /* no visible border */
  transform: scaleX(1.6) rotate(17deg);
}

/* sprinkle faint stars along that fourth ring */
.contact-orbit__rings .ring-stars {
  background:
    radial-gradient(circle at 5% 30%,   rgba(255,255,255,.75) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 10%,  rgba(255,255,255,.6)  0 2px, transparent 3px),
    radial-gradient(circle at 72% 40%,  rgba(255,255,255,.7)  0 2px, transparent 3px),
    radial-gradient(circle at 20% 78%,  rgba(255,255,255,.5)  0 2px, transparent 3px),
    radial-gradient(circle at 83% 75%,  rgba(255,255,255,.55) 0 2px, transparent 3px);
  opacity: .35;
  mix-blend-mode: screen;
}

/* center “what’s new” style label */
.contact-core--orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  padding: .2rem .5rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.contact-core__title {
  font-size: 1.5rem;
  letter-spacing: .18em;
  text-transform: lowercase;
  color: rgba(125, 119, 119, 0.9);
  text-shadow: 0 1px 0 rgba(234, 229, 229, 0.752);
}

/* circular “planet” buttons */
.contact-node {
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  text-decoration: none;
  color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'LeviWindows','Press Start 2P',monospace;
  transition: transform .18s ease-out, box-shadow .18s ease-out;
}

.contact-node__icon img {
  width: 46px;
  height: 46px;
  background:
    radial-gradient(circle at 35% 20%, rgba(255,255,255,.95), rgba(255,255,255,0) 45%),
    linear-gradient(160deg, #f4f7fb, #c9d3e2 45%, #aab5c6 75%, #e9edf5);
  padding: 6px;
  border-radius: 10px;
  border: 2px solid rgba(60, 72, 96, .35);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,.7),
    inset -1px -1px 0 rgba(0,0,0,.18),
    3px 3px 0 rgba(0,0,0,.4);
  translate: 0% 0%;
}

.contact-node__label {
  margin-top: .2rem;
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: lowercase;
}

.contact-node:hover {
  transform:  scale(1.09);
  box-shadow: 6px 6px 0 rgba(0,0,0,.55);
}

/* positions around the orbit (tweak to taste) */
.contact-node--email   { top: 1%;  left: 35%; }
.contact-node--github  { top: 24%; right: 4%; }
.contact-node--linkedin{ bottom: 4%; left: 60%; }
.contact-node--resume  { bottom: 10%; left: 14%; }

/* keep your mobile stack behaviour */
@media (max-width: 620px) {
  .contact-orbit {
    width: 90%;
    max-width: 320px;
    aspect-ratio: auto;
    padding: 2rem 1rem 1rem;
  }

  .contact-orbit__rings .ring,
  .contact-orbit__rings .ring-two {
    display: none;  /* cleaner on tiny screens */
  }

  .contact-core--orbit {
    position: static;
    transform: none;
    margin: 0 auto 1rem;
  }
  
  .contact-core__title {
    font-size: 1.5rem;
    text-align: center;
    display: block;
  }

  .contact-node {
    position: static;
    margin: .4rem auto;
    transform: none !important;
  }
}


/* ===== Mobile fixes (append at end) ===== */
@media (max-width: 825px){

  /* Dock the sidebar at the bottom (above taskbar) */
  .sidebar{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 30px;
    top: auto;                 /* <-- important: cancel desktop top:70px */
    z-index: 65;

    display: flex;
    flex-direction: row;
    justify-content: normal-around;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;

  }

  /* Icon sizing & readability */
  .side-icon .imgwrap{ width: 40px; height: 40px; }
  .side-label{
    display: none;            /* hide labels on phones; keeps it clean */
  }

  /* App window sizing so content isnâ€™t hidden and is a bit shorter */
  .main-workarea{
    max-width: 90%;
    max-height: 80%;
    height: calc(100vh - 170px); 
    margin: 10px auto 30px;
    padding: 0 8px;
    align-content: center;
  }

  .window,
  .window.app{
    max-width: 100%;
    border-radius: 0;
  }

  .window.app .content{
    -webkit-overflow-scrolling: touch;
  }
}

/* Optional: smaller/darker labels for tablet where they still show */
@media (min-width: 821px) and (max-width: 1100px){
  .side-label{ font-size:.68rem; color:#212958; }
}





