/* ===== Think Studio '98 ===== */

:root {
  --gray: #c0c0c0;
  --dark: #808080;
  --navy: #000080;
  --teal: #008080;
  --hot: #ff00ff;
  --lime: #00ff00;
  --yellow: #ffff00;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 16px;
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
  color: #fff;
  background-color: #000;
  /* tiled starfield */
  background-image:
    radial-gradient(1px 1px at 10px 20px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 60px 80px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 110px 40px, #ff0 50%, transparent 51%),
    radial-gradient(1px 1px at 150px 130px, #0ff 50%, transparent 51%),
    radial-gradient(1px 1px at 30px 150px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 90px 170px, #fff 50%, transparent 51%);
  background-size: 180px 180px;
  cursor: crosshair;
  overflow-x: hidden;
}

a { color: var(--yellow); }
a:visited { color: var(--hot); }
a:hover { color: var(--lime); background: var(--navy); }

#page {
  max-width: 980px;
  margin: 0 auto;
  border: 4px ridge var(--gray);
  background: rgba(0, 0, 40, 0.85);
  padding: 12px;
}

.center { text-align: center; }
.small { font-size: 12px; }

/* ===== Header ===== */
.header { border-bottom: 3px double var(--yellow); margin-bottom: 8px; }
.logo { margin: 0; font-size: clamp(40px, 9vw, 84px); font-family: Impact, "Arial Black", sans-serif; letter-spacing: 4px; }
.rainbow {
  background: linear-gradient(90deg, red, orange, yellow, lime, cyan, blue, magenta, red);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow 3s linear infinite;
  text-shadow: none;
  filter: drop-shadow(3px 3px 0 #000080);
}
.logo-studio { font-size: 0.4em; color: var(--lime); font-family: "Courier New", monospace; }
.tagline { margin: 0 0 8px; color: var(--yellow); font-style: italic; }
.badge-cell { text-align: right; vertical-align: middle; width: 110px; }
.new-badge {
  display: inline-block;
  background: red;
  color: var(--yellow);
  font-family: Impact, sans-serif;
  font-size: 26px;
  padding: 14px 10px;
  border-radius: 50%;
  transform: rotate(-15deg);
  animation: pulse 0.8s ease-in-out infinite alternate;
  border: 3px dashed var(--yellow);
}

@keyframes rainbow { to { background-position: 200% 0; } }
@keyframes pulse { to { transform: rotate(-15deg) scale(1.15); } }

/* ===== Marquee ===== */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: var(--navy);
  border: 2px inset var(--gray);
  color: var(--lime);
  font-family: "Courier New", monospace;
  font-weight: bold;
  padding: 4px 0;
}
.marquee-inner {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 22s linear infinite;
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ===== Win95 buttons ===== */
.btn95 {
  display: inline-block;
  background: var(--gray);
  color: #000 !important;
  font-family: "MS Sans Serif", Tahoma, Geneva, sans-serif;
  font-size: 14px;
  padding: 5px 12px;
  text-decoration: none;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  box-shadow: inset -1px -1px 0 var(--dark), inset 1px 1px 0 #dfdfdf;
  cursor: pointer;
}
.btn95:hover { background: #d4d4d4; }
.btn95:active {
  border-color: #404040 #fff #fff #404040;
  box-shadow: inset 1px 1px 0 var(--dark);
}
.btn95.big { font-size: 18px; font-weight: bold; padding: 8px 18px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 10px 0;
}

/* ===== Thinkamp anthem player ===== */
.player {
  max-width: 560px;
  margin: 0 auto 14px;
  background: linear-gradient(180deg, #4a4a5e, #23232f);
  border: 2px solid;
  border-color: #8a8aa8 #111 #111 #8a8aa8;
  box-shadow: 4px 4px 0 #000, 0 0 18px rgba(0, 255, 0, 0.35);
  font-family: "Courier New", monospace;
}
.player-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  background: repeating-linear-gradient(0deg, #c8a000 0 2px, #6b5400 2px 4px);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  padding: 2px 6px;
  text-shadow: 1px 1px 0 #000;
}
.player-hint { color: var(--yellow); }
.player-body { display: flex; gap: 10px; padding: 8px; flex-wrap: wrap; }
.player-screen {
  flex: 1 1 260px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "time viz" "track track" "meta meta";
  gap: 4px 8px;
  background: #000;
  border: 2px inset #555;
  padding: 6px;
  color: var(--lime);
  min-width: 0;
}
.player-time { grid-area: time; font-size: 28px; font-weight: bold; text-shadow: 0 0 6px var(--lime); }
.player-viz { grid-area: viz; width: 100%; height: 40px; }
.player-track {
  grid-area: track;
  overflow: hidden;
  white-space: nowrap;
  background: #001a00;
  padding: 2px 0;
  font-size: 13px;
}
.player-track span { display: inline-block; padding-left: 100%; animation: marquee 12s linear infinite; }
.player-meta { grid-area: meta; display: flex; gap: 8px; font-size: 11px; }
.player-meta span { border: 1px solid #0a0; padding: 0 4px; }
#p-state.playing { color: #000; background: var(--lime); }

.player-controls { flex: 1 1 200px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.player-buttons { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.p-btn {
  width: 38px;
  height: 30px;
  background: var(--gray);
  color: #000;
  font-size: 14px;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  cursor: pointer;
  padding: 0;
}
.p-btn:active, .p-btn[aria-pressed="true"] { border-color: #404040 #fff #fff #404040; background: #a8a8a8; }
.p-vol { display: flex; align-items: center; gap: 4px; color: var(--yellow); font-size: 11px; font-weight: bold; margin-left: auto; }
.p-vol input { width: 70px; }
.player input[type="range"] { padding: 0; border: 0; background: transparent; accent-color: var(--lime); }
.p-seek { width: 100%; }

/* ===== Layout ===== */
.layout { display: flex; gap: 12px; align-items: flex-start; }
.sidebar { width: 200px; flex-shrink: 0; }
.main { flex: 1; min-width: 0; }

@media (max-width: 720px) {
  body { padding: 8px; }
  .layout { flex-direction: column; }
  .sidebar { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .sidebar .box { margin: 0; }
  .badge-cell { display: none; }
}

/* ===== Sidebar boxes ===== */
.box {
  border: 3px outset var(--gray);
  background: var(--teal);
  margin-bottom: 10px;
  padding: 8px;
  font-size: 14px;
}
.box-title {
  background: var(--navy);
  color: var(--yellow);
  font-weight: bold;
  text-align: center;
  margin: -8px -8px 8px;
  padding: 3px;
  font-size: 13px;
}
.links { margin: 0; padding-left: 18px; list-style: square; }
.links li { margin: 4px 0; }

.counter {
  display: inline-block;
  font-family: "Courier New", monospace;
  font-size: 22px;
  letter-spacing: 3px;
  background: #000;
  color: var(--lime);
  padding: 2px 6px;
  border: 2px inset var(--gray);
}
.lcd {
  font-family: "Courier New", monospace;
  background: #001a00;
  color: var(--lime);
  font-size: 18px;
  padding: 3px;
  border: 2px inset var(--gray);
}
.construction span {
  display: block;
  background: var(--yellow);
  color: #000;
  font-weight: bold;
  font-size: 12px;
  padding: 4px 0;
}
.stripes {
  height: 10px;
  background: repeating-linear-gradient(45deg, #000 0 10px, var(--yellow) 10px 20px);
  animation: stripes 1s linear infinite;
  background-size: 28px 28px;
}
@keyframes stripes { to { background-position: 28px 0; } }
.netscape { color: var(--yellow); }

/* ===== Win95 windows ===== */
.window {
  background: var(--gray);
  color: #000;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  box-shadow: 4px 4px 0 #000;
  margin-bottom: 14px;
  font-family: "MS Sans Serif", Tahoma, Geneva, sans-serif;
}
.titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, var(--navy), #1084d0);
  color: #fff;
  font-weight: bold;
  padding: 3px 4px;
  font-size: 14px;
}
.tb-btns b {
  display: inline-block;
  width: 18px;
  height: 16px;
  margin-left: 2px;
  background: var(--gray);
  color: #000;
  text-align: center;
  line-height: 14px;
  font-size: 12px;
  border: 1px solid;
  border-color: #fff #404040 #404040 #fff;
  cursor: pointer;
}
.window-body { padding: 14px; }
.window.minimized .window-body { display: none; }
.window.shake { animation: shake 0.4s; }
@keyframes shake {
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.hero h2 {
  font-family: "Times New Roman", serif;
  font-size: clamp(24px, 4vw, 36px);
  color: var(--navy);
  margin-top: 0;
  text-align: center;
}
.hero p { font-size: 16px; line-height: 1.5; }
.gif-spin { width: 40px; height: 40px; float: left; margin: 0 10px 4px 0; animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hot { color: red; font-weight: bold; }
.blink-slow { animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ===== Sections ===== */
.rainbow-hr {
  border: 0;
  height: 6px;
  margin: 18px 0;
  background: linear-gradient(90deg, red, orange, yellow, lime, cyan, blue, magenta);
}
.section-title {
  text-align: center;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(24px, 4vw, 34px);
  color: var(--yellow);
  text-shadow: 3px 3px 0 red, 6px 6px 0 var(--navy);
  letter-spacing: 2px;
  margin: 8px 0 14px;
}
.fire { display: inline-block; animation: pulse2 0.5s infinite alternate; }
@keyframes pulse2 { to { transform: scale(1.3); } }

.services { width: 100%; table-layout: fixed; }
.service {
  vertical-align: top;
  background: #fff;
  color: #000;
  border: 4px ridge var(--hot);
  padding: 10px;
  font-family: "Times New Roman", serif;
}
.service h3 {
  margin: 4px 0;
  text-align: center;
  color: var(--navy);
  font-size: 22px;
  text-decoration: underline;
}
.service-icon { font-size: 40px; text-align: center; }
.service ul { padding-left: 18px; margin: 6px 0 0; list-style-type: "» "; }
@media (max-width: 720px) {
  .services, .services tbody, .services tr, .services td { display: block; width: 100%; }
  .service { margin-bottom: 10px; }
}

.work-list { display: grid; gap: 10px; }
.work {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #000;
  border: 2px dashed var(--lime);
  padding: 10px;
  font-family: "Courier New", monospace;
}
.work h3 { margin: 4px 0; color: var(--lime); }
.work p { margin: 0; }
.work-thumb {
  width: 110px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Impact, sans-serif;
  font-size: 18px;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  border: 3px outset var(--gray);
}
.t1 { background: repeating-linear-gradient(45deg, #c00 0 8px, #f60 8px 16px); }
.t2 { background: repeating-radial-gradient(circle, #036 0 6px, #09c 6px 12px); }
.t3 { background: repeating-linear-gradient(-45deg, #060 0 8px, #0c6 8px 16px); }
.tag {
  background: var(--hot);
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  font-weight: bold;
}

.sectors { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sectors span {
  background: var(--navy);
  border: 2px outset var(--teal);
  padding: 6px 10px;
  color: #0ff;
  font-weight: bold;
  transition: transform 0.1s;
}
.sectors span:hover { transform: rotate(-3deg) scale(1.08); background: var(--hot); color: #fff; }

/* ===== Forms ===== */
.form95 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form95 label { display: flex; flex-direction: column; font-size: 14px; gap: 3px; }
.form95 .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form95 { grid-template-columns: 1fr; } }

input, select, textarea {
  font-family: "Courier New", monospace;
  font-size: 14px;
  padding: 4px;
  background: #fff;
  color: #000;
  border: 2px solid;
  border-color: #404040 #fff #fff #404040;
  width: 100%;
}
textarea { resize: vertical; }

.progress p { margin: 0 0 8px; }
.bar { height: 22px; border: 2px inset var(--gray); background: #fff; padding: 2px; }
.bar-fill {
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, var(--navy) 0 12px, transparent 12px 15px);
  transition: width 0.2s steps(4);
}

.offices {
  background: #000;
  border-color: var(--yellow);
  font-family: "Courier New", monospace;
  border-collapse: separate;
}
.offices th { background: red; color: var(--yellow); font-family: Impact, sans-serif; font-size: 20px; letter-spacing: 2px; }
.offices td { vertical-align: top; line-height: 1.5; }

.gb-form { display: flex; gap: 6px; flex-wrap: wrap; }
.gb-form input { flex: 1; min-width: 140px; width: auto; }
.gb-list { list-style: none; padding: 0; margin: 10px 0 0; max-height: 220px; overflow-y: auto; }
.gb-list li { background: #fff; border: 1px solid var(--dark); padding: 6px; margin-bottom: 5px; font-size: 14px; }
.gb-list b { color: var(--navy); }
.gb-list time { float: right; color: var(--dark); font-size: 11px; }

/* ===== Footer ===== */
.footer { text-align: center; margin-top: 18px; border-top: 3px double var(--yellow); padding-top: 10px; }
.webring {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: #400040;
  border: 2px ridge var(--hot);
  padding: 8px;
}

.sound-btn { position: fixed; right: 10px; bottom: 10px; z-index: 50; font-size: 12px; }

/* ===== Cursor trail sparkles ===== */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 100;
  font-size: 14px;
  animation: sparkle 0.8s forwards;
}
@keyframes sparkle {
  to { transform: translateY(24px) scale(0.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee-inner { padding-left: 0; }
}
