/* ============================================================
   ModularToadAudio — style.css
   Windows 98 / Pixel-Art Aesthetic
   Modular, responsive, GitHub Pages-ready
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700&family=Oxanium:wght@500;600;700;800&display=swap');

/* ── CSS CUSTOM PROPERTIES ─────────────────────────────────── */
 :root {
  --gray:        #111935;
  --gray-light:  #1a2750;
  --gray-dark:   #425591;
  --gray-darker: #070d20;
  --white:       #ffffff;
  --black:       #050913;

  --text-primary: #d8e4ff;
  --text-bright:  #f4f8ff;
  --text-muted:   #bccaf0;

  --titlebar-active:   linear-gradient(to right, #0a2f8f 0%, #31b0ff 100%);
  --titlebar-inactive: linear-gradient(to right, #1a2a4a 0%, #253b69 100%);

  --toad-darkest: #0c1a3f;
  --toad-dark:    #1b3d8f;
  --toad-mid:     #2d58be;
  --toad-green:   #3973d4;
  --toad-light:   #6ed6ff;
  --toad-pale:    #c8f2ff;
  --toad-accent:  #a8e5ff;

  --amber:        #d2861a;
  --amber-bright: #f2b33a;

  --bdr-lt: #d9e1f5;
  --bdr-dk: #0a1126;
  --bdr-xx: #04070f;

  --font-pixel: 'Oxanium', 'Segoe UI', sans-serif;
  --font-body:  'Exo 2', 'Segoe UI', Tahoma, Arial, sans-serif;
  --font-heavy: 'Oxanium', 'Arial Black', sans-serif;

  --nav-h:  0px;
  --task-h: 0px;
  --sidebar-w: 108px;

  --ps2-glow-bright: rgba(100, 220, 255, 0.85);
  --ps2-glow-mid:    rgba(70, 170, 255, 0.5);
  --ps2-glow-dim:    rgba(40, 110, 220, 0.24);
}

.desktop-icon-emoji[data-icon-key="contact"],
.titlebar-icon[data-icon-key="contact"] {
  border-color: #5cff88;
  background: linear-gradient(140deg, #114625, #1a7b3a);
}
.desktop-icon-emoji[data-icon-key="about"],
.titlebar-icon[data-icon-key="about"] {
  border-color: #60f8ff;
  background: linear-gradient(140deg, #0f4161, #177ea4);
}
.desktop-icon-emoji[data-icon-key="pricing"],
.titlebar-icon[data-icon-key="pricing"] {
  border-color: #ffe56a;
  background: linear-gradient(140deg, #665508, #b28a18);
}
.desktop-icon-emoji[data-icon-key="portfolio"],
.titlebar-icon[data-icon-key="portfolio"] {
  border-color: #f07cff;
  background: linear-gradient(140deg, #5d2474, #9f3bc8);
}
.desktop-icon-emoji[data-icon-key="services"],
.titlebar-icon[data-icon-key="services"] {
  border-color: #d7d7dd;
  background: linear-gradient(140deg, #666674, #9a9aa7);
}
.desktop-icon-emoji[data-icon-key="contact"] .desktop-icon-image,
.titlebar-icon[data-icon-key="contact"] .titlebar-icon-image {
  filter: hue-rotate(98deg) saturate(1.25);
}
.desktop-icon-emoji[data-icon-key="about"] .desktop-icon-image,
.titlebar-icon[data-icon-key="about"] .titlebar-icon-image {
  filter: hue-rotate(158deg) saturate(1.2);
}
.desktop-icon-emoji[data-icon-key="pricing"] .desktop-icon-image,
.titlebar-icon[data-icon-key="pricing"] .titlebar-icon-image {
  filter: hue-rotate(300deg) saturate(1.35) brightness(1.05);
}
.desktop-icon-emoji[data-icon-key="portfolio"] .desktop-icon-image,
.titlebar-icon[data-icon-key="portfolio"] .titlebar-icon-image {
  filter: hue-rotate(236deg) saturate(1.3);
}
.desktop-icon-emoji[data-icon-key="services"] .desktop-icon-image,
.titlebar-icon[data-icon-key="services"] .titlebar-icon-image {
  filter: saturate(0.15) brightness(1.15);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 13px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: #060d24;
  min-height: 100vh;
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

@keyframes heroRainbowShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

a { color: var(--toad-light); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--toad-pale); }
img, svg { display: block; max-width: 100%; }

/* ── DESKTOP SHELL ──────────────────────────────────────────── */
.desktop {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 14px;
  background-color: #060d24;
  position: relative;
}

/* Scanline CRT overlay — covers desktop area only, non-interactive */
.desktop::before {
  content: '';
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: var(--task-h);
  background: repeating-linear-gradient(
    0deg,
    transparent 0px, transparent 1px,
    rgba(0,0,0,.03) 1px, rgba(0,0,0,.03) 2px
  );
  pointer-events: none;
  z-index: 500;
}

/* Pixel-dither checkerboard grain */
.desktop::after {
  content: '';
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: var(--task-h);
  background-image:
    repeating-conic-gradient(rgba(0,0,0,.012) 0% 25%, transparent 0% 50%);
  background-size: 4px 4px;
  pointer-events: none;
  z-index: 499;
}

/* ── PS2 BIOS BACKGROUND CANVAS ─────────────────────────────── */
#bgCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .65;
}

/* ── DESKTOP ICONS (Win98 fixed-left shortcuts) ──────────────── */
.desktop-icons {
  position: sticky;
  top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 96px;
  min-width: 96px;
  max-height: calc(100dvh - 20px);
  padding: 8px 5px 12px;
  z-index: 550;
  overflow-y: auto;
  scrollbar-width: none;
  border: 2px solid;
  border-color: rgba(217, 225, 245, 0.85) rgba(10, 17, 38, 0.95) rgba(10, 17, 38, 0.95) rgba(217, 225, 245, 0.85);
  background: linear-gradient(180deg, rgba(7, 13, 32, 0.92), rgba(17, 25, 53, 0.96));
  box-shadow: 0 18px 34px rgba(4, 7, 15, 0.28), inset 0 1px 0 rgba(255,255,255,0.05);
}
.desktop-icons::-webkit-scrollbar { display: none; }

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 5px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: #fff;
  border: 1px solid transparent;
  user-select: none;
  border-radius: 8px;
}
.desktop-icon:hover {
  background: rgba(0, 0, 128, .52);
  border-color: rgba(255, 255, 255, .65);
  color: #fff;
  text-decoration: none;
}
.desktop-icon:hover .desktop-icon-emoji {
  box-shadow: 0 0 14px rgba(100, 200, 255, 0.55);
  filter: drop-shadow(0 0 4px rgba(100,200,255,.5));
}
.desktop-icon:active,
.desktop-icon.icon-active {
  background: rgba(0, 0, 128, .75);
  border-color: rgba(255, 255, 255, .9);
  color: #fff;
  text-decoration: none;
}
.desktop-icon-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 3px;
  border: 1px solid #8ad8ff;
  background: linear-gradient(140deg, #11245e, #1f4ba9);
  color: #f4fbff;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,.8));
  border-radius: 14px;
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', 'Apple Symbols', system-ui, sans-serif;
  box-shadow: 0 0 8px rgba(100,200,255,0.18);
  transition: box-shadow .15s, filter .15s;
}
.desktop-icon-label {
  font-family: var(--font-heavy);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #000, -1px 0 0 #000, 0 -1px 0 #000, 0 1px 0 #000;
  line-height: 1.2;
  word-break: break-word;
  max-width: 72px;
}
.desktop-icon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* ── NAVIGATION ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: var(--gray);
  border-bottom: 2px solid;
  border-color: var(--bdr-lt) var(--bdr-dk) var(--bdr-dk) var(--bdr-lt);
  box-shadow: 0 2px 4px rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 6px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heavy);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--toad-light);
  text-decoration: none;
  padding: 4px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}
.navbar-brand:hover { text-decoration: none; color: var(--toad-pale); }
.toad-icon { font-size: 20px; line-height: 1; }
.brand-logo-wrap {
  width: 30px;
  height: 30px;
  border: 1px solid #8ad8ff;
  border-radius: 8px;
  overflow: hidden;
  display: inline-flex;
  box-shadow: 0 0 12px rgba(100, 200, 255, 0.24);
}
.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-name { line-height: 1.3; }
.start-logo {
  width: 16px;
  height: 16px;
  object-fit: cover;
  border: 1px solid #8ad8ff;
  border-radius: 4px;
}

.nav-sep {
  width: 2px;
  height: 28px;
  background: var(--bdr-dk);
  border-right: 1px solid var(--bdr-lt);
  flex-shrink: 0;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  flex-wrap: nowrap;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--text-bright);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background .08s, color .08s;
}
.nav-item:hover,
.nav-item.active {
  background: var(--toad-mid);
  color: var(--white);
  text-decoration: none;
  border: 2px solid var(--toad-dark);
}
.nav-item:active { box-shadow: inset 1px 1px 2px rgba(0,0,0,.3); }
.nav-item-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  overflow: hidden;
  display: inline-flex;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(138, 216, 255, 0.4);
}
.nav-item-icon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-toggle {
  display: none;
  background: var(--gray);
  color: var(--text-bright);
  border: 2px solid;
  border-color: var(--bdr-lt) var(--bdr-dk) var(--bdr-dk) var(--bdr-lt);
  padding: 4px 10px;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}
.nav-toggle:active { border-color: var(--bdr-dk) var(--bdr-lt) var(--bdr-lt) var(--bdr-dk); }

/* ── WIN98 WINDOW ───────────────────────────────────────────── */
.window {
  background: var(--gray);
  border: 2px solid;
  border-color: var(--bdr-lt) var(--bdr-dk) var(--bdr-dk) var(--bdr-lt);
  box-shadow: 0 18px 44px rgba(4, 7, 15, 0.34), 2px 2px 0 var(--bdr-xx);
  border-radius: 8px;
}

.window-titlebar {
  background: var(--titlebar-active);
  color: var(--white);
  display: flex;
  align-items: center;
  padding: 5px 8px;
  gap: 8px;
  user-select: none;
  border-radius: 6px 6px 0 0;
}
.titlebar-icon { font-size: 14px; line-height: 1; }
.titlebar-title {
  flex: 1;
  font-size: 12px;
  font-family: var(--font-heavy);
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: bold;
  text-shadow: 1px 1px 0 rgba(0,0,0,.45);
}
.titlebar-icon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.titlebar-icon-thumb {
  padding: 2px;
}
.titlebar-buttons { display: flex; gap: 2px; }
.titlebar-btn {
  width: 18px; height: 16px;
  background: #c0c0c0;
  border: 1px solid;
  border-color: #ffffff #3a3a3a #3a3a3a #ffffff;
  font-size: 9px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #000;
  padding: 0;
}
.titlebar-btn:active { border-color: var(--bdr-dk) var(--bdr-lt) var(--bdr-lt) var(--bdr-dk); }
.titlebar-btn.close:hover { background: #ff4040; color: var(--white); }

.window-body { padding: 18px; color: var(--text-primary); }

/* ── PANELS ─────────────────────────────────────────────────── */
.panel-inset {
  border: 2px solid;
  border-color: var(--bdr-dk) var(--bdr-lt) var(--bdr-lt) var(--bdr-dk);
  background: #f4f8ff;
  padding: 20px;
  color: #1a2035;
}

.panel-raised {
  border: 2px solid;
  border-color: var(--bdr-lt) var(--bdr-dk) var(--bdr-dk) var(--bdr-lt);
  background: var(--gray-light);
  padding: 16px;
  color: var(--text-primary);
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  text-decoration: none;
  border: none;
  text-align: center;
  white-space: nowrap;
  transition: background .08s, transform .04s, box-shadow .04s;
  vertical-align: middle;
  border-radius: 999px;
}

.btn-primary {
  background: var(--toad-mid);
  color: var(--white);
  border: 2px solid;
  border-color: var(--toad-light) var(--toad-dark) var(--toad-dark) var(--toad-light);
  font-weight: bold;
  box-shadow: 2px 2px 0 var(--black);
}
.btn-primary:hover { background: var(--toad-light); color: var(--white); text-decoration: none; }
.btn-primary:active {
  border-color: var(--toad-dark) var(--toad-light) var(--toad-light) var(--toad-dark);
  transform: translate(1px,1px);
  box-shadow: none;
  text-decoration: none;
}

.btn-secondary {
  background: var(--gray-light);
  color: var(--text-bright);
  border: 2px solid;
  border-color: var(--bdr-lt) var(--bdr-dk) var(--bdr-dk) var(--bdr-lt);
  box-shadow: 0 18px 44px rgba(4, 7, 15, 0.34), 2px 2px 0 var(--bdr-xx);
  border-radius: 8px;
}
.btn-secondary:hover { background: var(--gray-dark); color: var(--white); text-decoration: none; }
.btn-secondary:active {
  border-color: var(--bdr-dk) var(--bdr-lt) var(--bdr-lt) var(--bdr-dk);
  transform: translate(1px,1px);
  box-shadow: none;
  text-decoration: none;
}

/* ── FORM ELEMENTS ──────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 6px;
  color: var(--toad-pale);
  letter-spacing: .02em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 9px 11px;
  font-family: var(--font-body);
  font-size: 13px;
  color: #1a2035;
  background: #eef3ff;
  border: 2px solid;
  border-color: #9ab0e0 #c8d6f5 #c8d6f5 #9ab0e0;
  border-radius: 4px;
  outline: none;
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--toad-mid);
  background: #f5f9ff;
  box-shadow: 0 0 0 3px rgba(45, 88, 190, 0.18);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: #8a9cbf;
  font-style: italic;
}
.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.55;
}

.form-file-label {
  display: inline-block;
  padding: 7px 14px;
  font-size: 12px;
  background: var(--gray);
  color: var(--toad-light);
  border: 2px solid;
  border-color: var(--bdr-lt) var(--bdr-dk) var(--bdr-dk) var(--bdr-lt);
  cursor: pointer;
  box-shadow: 1px 1px 0 var(--bdr-xx);
  border-radius: 4px;
  transition: background .1s, color .1s;
}
.form-file-label:hover { background: var(--toad-dark); color: var(--white); }
.form-file-input { display: none; }
.form-file-name { font-size: 11px; color: var(--text-muted); margin-top: 5px; }

/* ── FORM SUBMIT FEEDBACK ──────────────────────────────────── */
.form-success {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: #061a10;
  border: 2px solid var(--toad-light);
  border-radius: 4px;
  color: var(--toad-pale);
  font-size: 13px;
  line-height: 1.4;
  margin-top: 10px;
  animation: windowOpen .2s ease-out;
}
.form-success-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.form-success strong {
  display: block;
  font-size: 14px;
  color: var(--toad-light);
  margin-bottom: 4px;
}
.form-error-msg {
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 8px;
  padding: 8px 12px;
  background: #1a0808;
  border: 1px solid #cc3333;
  border-radius: 4px;
}

/* ── MAIN LAYOUT ────────────────────────────────────────────── */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 0 14px 14px 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.main-window {
  width: 100%;
  max-width: 1080px;
  margin: 0;
  animation: windowOpen .18s ease-out;
}

/* ── SECTIONS ───────────────────────────────────────────────── */
.section { margin-bottom: 22px; }

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(16px, 2vw, 23px);
  color: #6ef3ff;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1d7fa6;
  text-transform: uppercase;
  letter-spacing: .12em;
  line-height: 1.35;
  text-align: center;
  font-weight: 700;
}

/* ── WELCOME SECTION ────────────────────────────────────────── */
.welcome-block {
  background: linear-gradient(135deg, #0a1530 0%, #0e1d42 55%, #0a1530 100%);
  border: 2px solid;
  border-color: var(--toad-dark) var(--toad-darkest) var(--toad-darkest) var(--toad-dark);
  border-radius: 4px;
  overflow: hidden;
}
.welcome-header {
  display: flex;
  justify-content: center;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(100,170,255,0.15);
  background: rgba(0,0,0,0.2);
}
.welcome-header-text {
  font-family: var(--font-heavy);
  font-size: clamp(14px, 3vw, 20px);
  color: #6ef3ff;
  letter-spacing: .04em;
  text-shadow: 0 0 10px rgba(110,214,255,0.25);
  text-align: center;
}
.welcome-body {
  padding: 16px;
}
.welcome-body p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.welcome-body p:last-child { margin-bottom: 0; }
.welcome-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 4px;
}
.welcome-highlight-card {
  background: rgba(45, 88, 190, 0.12);
  border: 1px solid rgba(110, 214, 255, 0.2);
  border-radius: 4px;
  padding: 12px 10px;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.welcome-highlight-card:hover {
  border-color: rgba(110, 214, 255, 0.45);
  background: rgba(45, 88, 190, 0.22);
}
.welcome-highlight-label {
  font-size: 15px;
  font-weight: bold;
  color: #6ef3ff;
  display: block;
  margin-bottom: 3px;
  text-align: center;
}
.welcome-highlight-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── HERO WATER SHADER CANVAS ───────────────────────────────── */
#heroWater {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 36px 20px;
  background: linear-gradient(135deg, #050d2b 0%, var(--toad-darkest) 42%, #12306d 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.main-window { position: relative; }

/* scanline overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px, transparent 2px,
    rgba(0,0,0,.06) 2px, rgba(0,0,0,.06) 4px
  );
  pointer-events: none;
}

.hero-mascot {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.hero-mascot svg {
  width: 96px; height: 96px;
  image-rendering: pixelated;
  filter: drop-shadow(3px 3px 0 rgba(0,0,0,.55));
  animation: toadFloat 4s ease-in-out infinite;
}

/* ── NEW MASCOT: image with PS2 memory card effect ──────────── */
.hero-mascot-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
}
.hero-mascot-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  filter: drop-shadow(0 0 6px rgba(0,220,255,.35)) drop-shadow(3px 3px 0 rgba(0,0,0,.55));
  animation: toadFloat 4s ease-in-out infinite;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.hero-mascot-wrapper.poked .hero-mascot-img {
  animation: toadPoke 0.7s cubic-bezier(.36,.07,.19,.97) forwards;
}
/* PS2 memory-card shimmer sweep */
.mascot-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(0, 255, 200, 0.25) 50%,
    transparent 80%
  );
  background-size: 200% 200%;
  animation: ps2MascotShimmer 3.5s ease-in-out infinite;
  pointer-events: none;
  border-radius: 4px;
}
/* LED border pulse on mascot */
.hero-mascot-wrapper::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 5px;
  border: 1px solid rgba(0, 220, 255, 0.3);
  animation: mascotBorderPulse 3.5s ease-in-out infinite;
  pointer-events: none;
}

/* ── ABOUT PAGE MASCOT ──────────────────────────────────────── */
.about-mascot-img {
  width: 144px;
  height: 144px;
  object-fit: cover;
  border-radius: 16px;
  filter: drop-shadow(0 0 5px rgba(0,220,255,.25));
  display: block;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-heavy);
  font-size: clamp(22px, 7vw, 58px);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
  text-shadow:
    0 0 12px var(--ps2-glow-bright),
    0 0 32px var(--ps2-glow-mid),
    3px 3px 0 #041132,
    6px 6px 0 rgba(0,0,0,.45);
  line-height: 1.15;
  word-break: break-word;
  hyphens: auto;
  position: relative;
  z-index: 1;
  animation: heroTitleAnim 10s ease-in-out infinite;
  cursor: default;
}
.hero-title-rainbow {
  background: linear-gradient(
    90deg,
    #ff4d4d,
    #ffb84d,
    #fff34d,
    #58ff71,
    #4dc3ff,
    #7a5cff,
    #ff4dd2,
    #ff4d4d
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    heroTitleAnim 10s ease-in-out infinite,
    heroRainbowShift 18s linear infinite;
}

.hero-tagline {
  font-size: clamp(15px, 2vw, 21px);
  color: var(--toad-pale);
  margin-bottom: 26px;
  font-weight: 500;
  max-width: 760px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ── SERVICES GRID ──────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.service-card {
  padding: 14px;
  background: var(--gray-light);
  cursor: default;
  transition: background .1s, box-shadow .1s;
}
.service-card:hover { 
  background: var(--toad-darkest);
  box-shadow: inset 0 0 8px rgba(82, 183, 136, 0.12);
}

.service-card-icon {
  display: none;
}
.service-card-title {
  font-size: 19px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #6ef3ff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.service-card p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  text-align: center;
}

/* Full-width service detail rows */
.service-row {
  display: flex;
  gap: 14px;
  padding: 14px;
  margin-bottom: 10px;
  background: var(--gray-light);
  border: 2px solid;
  border-color: var(--bdr-lt) var(--bdr-dk) var(--bdr-dk) var(--bdr-lt);
  align-items: flex-start;
}
.service-row-icon { display: none; }
.service-row-body h3 {
  font-size: 19px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #6ef3ff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.service-row-body p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
}
.service-tags { margin-top: 6px; }

.tag-pill {
  display: inline-block;
  background: var(--toad-darkest);
  color: var(--toad-light);
  font-size: 12px;
  padding: 2px 8px;
  border: 1px solid var(--toad-dark);
  margin: 2px 2px 0 0;
}

/* ── PORTFOLIO GRID ─────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.portfolio-item { overflow: hidden; }
.portfolio-item .window-titlebar { font-size: 10px; }

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--black);
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── PRICING ─────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.pricing-card { overflow: hidden; }
.pricing-card.featured {
  border-color: var(--toad-light) var(--toad-dark) var(--toad-dark) var(--toad-light);
  box-shadow: 3px 3px 0 var(--toad-dark);
}

.pricing-card-header {
  background: var(--titlebar-active);
  color: var(--white);
  padding: 10px 14px;
  text-align: center;
}
.pricing-card.featured .pricing-card-header {
  background: linear-gradient(to right, var(--toad-dark), var(--toad-mid));
}
.pricing-card-header h3 {
  font-family: var(--font-pixel);
  font-size: 16px;
  line-height: 1.4;
}
.pricing-badge {
  display: inline-block;
  margin-top: 4px;
  background: #ff4040;
  color: var(--white);
  font-size: 12px;
  font-weight: bold;
  padding: 2px 10px;
  border: 1px solid #cc0000;
}

.pricing-card-body {
  padding: 18px;
  text-align: center;
  background: var(--gray-light);
  color: var(--text-primary);
}
.price-amount {
  font-family: var(--font-pixel);
  font-size: 24px;
  color: var(--toad-light);
  display: block;
  margin-bottom: 4px;
}
.price-period {
  font-size: 17px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 14px;
}
.price-strike {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 2px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 16px;
}
.pricing-features li {
  font-size: 18px;
  padding: 5px 0;
  border-bottom: 1px dotted var(--gray-dark);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
  color: var(--text-primary);
}
.pricing-features li::before { content: '▶'; color: var(--toad-light); font-size: 9px; flex-shrink: 0; margin-top: 2px; }

/* ── FAQ DETAILS ────────────────────────────────────────────── */
details {
  color: var(--text-primary);
}
details summary {
  color: var(--text-bright);
}

/* ── TESTIMONIALS ───────────────────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.testimonial-card {
  padding: 18px 16px 14px;
  background: var(--gray-light);
  border: 2px solid;
  border-color: var(--bdr-dk) var(--bdr-lt) var(--bdr-lt) var(--bdr-dk);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 52px;
  color: var(--toad-dark);
  position: absolute;
  top: -8px; left: 10px;
  line-height: 1;
}
.testimonial-text {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 8px;
  padding-top: 18px;
  color: var(--text-primary);
}
cite {
  font-size: 16px;
  font-style: italic;
  color: var(--toad-light);
}

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: start;
}

.contact-info-panel {
  padding: 16px;
  background: var(--gray-light);
  border: 2px solid;
  border-color: var(--bdr-lt) var(--bdr-dk) var(--bdr-dk) var(--bdr-lt);
}
.contact-info-panel h3 {
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--toad-light);
  margin-bottom: 16px;
  line-height: 1.4;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 17px;
  line-height: 1.65;
}
.contact-detail-icon { font-size: 18px; flex-shrink: 0; }
.contact-detail a { color: var(--toad-light); word-break: break-all; }

/* ── CTA BAND ────────────────────────────────────────────────── */
.cta-band {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(to right, var(--toad-dark), var(--toad-mid));
  color: var(--white);
  margin-top: 4px;
}
.cta-band h2 {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 2vw, 22px);
  margin-bottom: 10px;
  line-height: 1.4;
}
.cta-band p { font-size: 18px; margin-bottom: 18px; color: var(--toad-pale); }

/* ── ABOUT PAGE ──────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 20px;
}
.about-mascot { text-align: center; }
.about-mascot svg { width: 128px; height: 128px; image-rendering: pixelated; margin: 0 auto; }
.about-mascot-label { font-size: 10px; font-family: var(--font-pixel); color: var(--toad-light); margin-top: 6px; }

.about-text h2 {
  font-family: var(--font-pixel);
  font-size: clamp(17px, 2vw, 24px);
  color: var(--toad-light);
  margin-bottom: 12px;
  line-height: 1.4;
}
.about-text p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.value-card {
  padding: 14px;
  background: var(--gray-light);
  border: 2px solid;
  border-color: var(--bdr-lt) var(--bdr-dk) var(--bdr-dk) var(--bdr-lt);
  text-align: center;
}
.value-card-icon { font-size: 28px; margin-bottom: 8px; }
.value-card h4 { font-size: 16px; font-weight: bold; color: var(--toad-light); margin-bottom: 4px; }
.value-card p { font-size: 16px; color: var(--text-muted); line-height: 1.6; }

/* ── NOTICE BOXES ───────────────────────────────────────────── */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin: 12px 0;
  border: 2px solid;
  line-height: 1.65;
  color: var(--text-primary);
}
.notice a { color: var(--toad-light); }
.notice-info    { background: #0a1820; border-color: #1084d0; }
.notice-success { background: #081808; border-color: var(--toad-light); }
.notice-warning { background: #1c1408; border-color: var(--amber-bright); color: #e0c070; }
.notice-icon { font-size: 18px; flex-shrink: 0; }

/* ── TASKBAR ─────────────────────────────────────────────────── */
.taskbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--task-h);
  background: var(--gray);
  border-top: 2px solid;
  border-color: var(--bdr-lt) var(--bdr-dk) var(--bdr-dk) var(--bdr-lt);
  box-shadow: 0 -2px 4px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  padding: 4px 8px;
  gap: 6px;
  z-index: 1000;
}

.start-btn {
  background: var(--gray);
  color: var(--text-bright);
  border: 2px solid;
  border-color: var(--bdr-lt) var(--bdr-dk) var(--bdr-dk) var(--bdr-lt);
  padding: 3px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 1px 1px 0 var(--bdr-xx);
  white-space: nowrap;
}
.start-btn:hover { background: var(--toad-dark); color: var(--white); }
.start-btn:active {
  border-color: var(--bdr-dk) var(--bdr-lt) var(--bdr-lt) var(--bdr-dk);
  box-shadow: none;
}

.taskbar-sep {
  width: 2px; height: 28px;
  background: var(--bdr-dk);
  border-right: 1px solid var(--bdr-lt);
  flex-shrink: 0;
}

.taskbar-items { flex: 1; display: flex; gap: 4px; overflow: hidden; }
.taskbar-app {
  background: var(--gray-light);
  border: 2px solid;
  border-color: var(--bdr-dk) var(--bdr-lt) var(--bdr-lt) var(--bdr-dk);
  padding: 2px 10px;
  font-size: 12px;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  max-width: 200px;
  color: var(--text-muted);
}

.taskbar-clock {
  font-size: 12px;
  padding: 3px 8px;
  border: 2px solid;
  border-color: var(--bdr-dk) var(--bdr-lt) var(--bdr-lt) var(--bdr-dk);
  background: var(--gray-light);
  color: var(--text-bright);
  white-space: nowrap;
  min-width: 55px;
  text-align: center;
  flex-shrink: 0;
}

/* ── STATUS BAR ─────────────────────────────────────────────── */
.status-bar {
  border-top: 2px solid var(--bdr-dk);
  padding: 4px 8px;
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--gray);
  flex-wrap: wrap;
}
.status-item {
  border: 1px solid var(--bdr-dk);
  padding: 2px 6px;
  color: var(--text-muted);
}

/* ── DECORATIVE HELPERS ─────────────────────────────────────── */
.pixel-divider {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--toad-mid) 0px, var(--toad-mid) 4px,
    transparent 4px, transparent 8px
  );
  margin: 16px 0;
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes windowOpen {
  from { opacity: 0; transform: scale(.97) translateY(10px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.blink-cursor::after {
  content: '█';
  animation: blink 1s step-end infinite;
  color: var(--toad-light);
}

/* Combined PS2 pulse + glitch for hero title */
@keyframes heroTitleAnim {
  0%, 100% {
    text-shadow:
      0 0 8px var(--ps2-glow-bright), 0 0 20px var(--ps2-glow-mid),
      2px 2px 0 var(--toad-dark), 4px 4px 0 rgba(0,0,0,.45);
    transform: none;
    color: #fff;
  }
  20% {
    text-shadow:
      0 0 14px rgba(0,220,255,.95), 0 0 32px rgba(0,180,255,.65),
      0 0 54px rgba(0,140,255,.28),
      2px 2px 0 var(--toad-dark), 4px 4px 0 rgba(0,0,0,.45);
    color: #e0ffff;
  }
  /* glitch burst */
  72%  { text-shadow: -3px 0 #ff0088, 3px 0 #00ffcc; transform: translateX(-3px); color: #fff; }
  73%  { text-shadow: 3px 0 #ff0088, -3px 0 #00ffcc; transform: translateX(3px); color: #ffe0ff; }
  74%  { text-shadow: -2px 0 #ffcc00, 2px 0 #00ccff; transform: translateX(-1px) skewX(-2deg); }
  75%  {
    text-shadow: 0 0 8px var(--ps2-glow-bright), 0 0 20px var(--ps2-glow-mid),
      2px 2px 0 var(--toad-dark), 4px 4px 0 rgba(0,0,0,.45);
    transform: none; color: #fff;
  }
}

/* PS2 BIOS title glow pulse (kept for fallback) */
@keyframes ps2TitlePulse {
  0%, 100% {
    text-shadow:
      0 0 8px var(--ps2-glow-bright), 0 0 20px var(--ps2-glow-mid),
      2px 2px 0 var(--toad-dark), 4px 4px 0 rgba(0,0,0,.45);
  }
  50% {
    text-shadow:
      0 0 14px rgba(0,220,255,.95), 0 0 32px rgba(0,180,255,.65),
      0 0 54px rgba(0,140,255,.28),
      2px 2px 0 var(--toad-dark), 4px 4px 0 rgba(0,0,0,.45);
  }
}

/* Toad mascot gentle float */
@keyframes toadFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-5px) rotate(-1deg); }
  66%       { transform: translateY(-2px) rotate(1deg); }
}

/* Mascot poke reaction */
@keyframes toadPoke {
  0%   { transform: translateY(0)    rotate(0deg)   scale(1); }
  15%  { transform: translateY(-22px) rotate(-14deg) scale(0.82); }
  30%  { transform: translateY(5px)  rotate(9deg)   scale(1.14); }
  50%  { transform: translateY(-12px) rotate(-6deg)  scale(0.94); }
  70%  { transform: translateY(3px)  rotate(4deg)   scale(1.05); }
  85%  { transform: translateY(-4px) rotate(-1deg)  scale(0.98); }
  100% { transform: translateY(0)    rotate(0deg)   scale(1); }
}

/* PS2 memory card shimmer */
@keyframes ps2MascotShimmer {
  0%   { background-position: 200% 0%; opacity: 0; }
  30%  { opacity: 0; }
  45%  { opacity: 1; background-position: 50% 50%; }
  60%  { opacity: 0; background-position: -100% 100%; }
  100% { opacity: 0; }
}

/* Mascot border pulse */
@keyframes mascotBorderPulse {
  0%, 100% { border-color: rgba(0,220,255,0.2); box-shadow: 0 0 4px rgba(0,220,255,0.1); }
  50%      { border-color: rgba(0,220,255,0.55); box-shadow: 0 0 10px rgba(0,220,255,0.3); }
}


/* ── UTILITY ─────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px;  }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.flex-gap { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .desktop {
    gap: 12px;
    padding: 10px;
  }

  .desktop-icons {
    top: 10px;
    width: 88px;
    min-width: 88px;
    padding: 8px 4px;
  }

  .desktop-icon {
    gap: 6px;
    padding: 8px 4px;
  }

  .desktop-icon-emoji {
    min-width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .desktop-icon-label {
    font-size: 10px;
    max-width: 70px;
  }

  .navbar-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--gray);
    flex-direction: column;
    gap: 0;
    border-bottom: 2px solid var(--bdr-dk);
    box-shadow: 0 4px 10px rgba(0,0,0,.35);
    z-index: 999;
  }
  .navbar-menu.open { display: flex; }
  .nav-item { width: 100%; padding: 12px 16px; border-bottom: 1px solid var(--bdr-dk); color: var(--text-bright); }
  .nav-toggle { display: block; }
  .nav-item-icon { display: none; }

  .services-grid     { grid-template-columns: 1fr 1fr; }
  .portfolio-grid    { grid-template-columns: 1fr; }
  .contact-layout    { grid-template-columns: 1fr; }
  .about-grid        { grid-template-columns: 1fr; text-align: center; }
  .about-mascot      { display: flex; flex-direction: column; align-items: center; }
  .taskbar-items     { display: none; }
  .main-content      { padding: 0 0 10px; }
  .hero              { padding: 24px 12px; }
  .portfolio-preview-carousel { padding: 14px; }
  .portfolio-preview-track {
    grid-auto-columns: minmax(100%, 1fr);
    min-height: 320px;
  }
}

@media (max-width: 480px) {
  .desktop {
    gap: 8px;
    padding: 8px;
  }

  .desktop-icons {
    width: 74px;
    min-width: 74px;
    padding: 7px 3px;
  }

  .desktop-icon-emoji {
    min-width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .desktop-icon-label {
    font-size: 9px;
    max-width: 60px;
  }

  .services-grid     { grid-template-columns: 1fr; }
  .pricing-grid      { grid-template-columns: 1fr; }
  .testimonial-grid  { grid-template-columns: 1fr; }
  .values-grid       { grid-template-columns: 1fr 1fr; }
  .hero-cta          { flex-direction: column; align-items: center; }
  .service-row       { flex-direction: column; }
  .welcome-highlights { grid-template-columns: 1fr 1fr; }
  .hero-title        { font-size: clamp(18px, 9vw, 40px); letter-spacing: .03em; }
  .portfolio-preview-track { grid-auto-columns: minmax(100%, 1fr); }
  .portfolio-preview-actions { flex-direction: column; }
}


.icon-chip,
.titlebar-icon,
.service-card-icon,
.service-row-icon,
.value-card-icon,
.contact-detail-icon,
.notice-icon {
  border: 1px solid #8ad8ff;
  background: linear-gradient(140deg, #11245e, #1f4ba9);
  color: #f3f9ff;
  border-radius: 6px;
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols', 'Apple Symbols', 'Symbol', system-ui, sans-serif;
  box-shadow: 0 0 6px rgba(100, 200, 255, 0.2), inset 0 1px 0 rgba(255,255,255,0.08);
}
.titlebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 3px;
  font-size: 10px;
  border-radius: 6px;
}
.service-card-icon,
.value-card-icon,
.contact-detail-icon,
.notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 5px;
  font-size: 16px;
}
.service-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 6px;
  font-size: 22px;
  border-radius: 14px;
  box-shadow: 0 0 10px rgba(100, 200, 255, 0.25), inset 0 1px 0 rgba(255,255,255,0.08);
}

.portfolio-preview-carousel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(110, 214, 255, 0.12), transparent 48%),
    linear-gradient(135deg, rgba(7, 13, 32, 0.96), rgba(26, 39, 80, 0.98));
}
.portfolio-preview-track {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
 gap: 18px;
 min-height: 0;
 padding: 4px 4px 8px;
}
.portfolio-preview-slide {
 display: block;
 overflow: hidden;
 min-height: 100%;
 text-decoration: none;
 color: inherit;
 transform: translateY(0);
 transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
 cursor: pointer;
}
.portfolio-preview-slide:hover,
.portfolio-preview-slide:focus-visible {
 text-decoration: none;
 color: inherit;
 transform: translateY(-4px);
 border-color: rgba(110, 214, 255, 0.92) #0b1738 #0b1738 rgba(110, 214, 255, 0.92);
 box-shadow: 0 18px 30px rgba(0, 0, 0, .24), 0 0 18px rgba(110, 214, 255, 0.18);
}
.portfolio-preview-slide:focus-visible {
 outline: 2px solid var(--toad-light);
 outline-offset: 2px;
}
.portfolio-preview-cover {
 position: relative;
  min-height: 210px;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(16, 31, 74, 0.45), rgba(6, 13, 36, 0.96)),
    linear-gradient(135deg, #12265c, #07132f);
  background-size: cover;
  background-position: center;
}
.portfolio-preview-chip,
.portfolio-preview-count {
  position: relative;
  z-index: 1;
  font-family: var(--font-heavy);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.portfolio-preview-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(6, 13, 36, 0.8);
  border: 1px solid rgba(110, 214, 255, 0.45);
  color: var(--toad-pale);
  font-size: 13px;
}
.portfolio-preview-count {
  font-size: 28px;
  color: rgba(255,255,255,.88);
  text-shadow: 0 0 18px rgba(110,214,255,.45);
}
.portfolio-preview-body {
  display: flex;
  flex-direction: column;
  height: calc(100% - 210px);
  padding: 16px 16px 18px;
}
.portfolio-preview-title {
  font-family: var(--font-heavy);
  font-size: 22px;
  color: var(--text-bright);
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.portfolio-preview-summary {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.portfolio-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.portfolio-preview-link {
  min-width: 0;
}
.portfolio-preview-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.portfolio-preview-status {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  letter-spacing: .05em;
}

.window-body > .section > p[style*="font-size:13px"],
.window-body p[style*="font-size:12px"],
.window-body p[style*="font-size:13px"],
.window-body p[style*="font-size:14px"],
.window-body span[style*="font-size:11px"],
.window-body div[style*="font-size:11px"],
.window-body div[style*="font-size:12px"],
.window-body strong[style*="font-size:12px"],
.window-body summary[style*="font-size:12px"] {
  font-size: 17px !important;
}

.window-body strong[style*="font-size:8px"],
.window-body strong[style*="font-size:9px"],
.window-body a[style*="font-size:10px"] {
  font-size: 14px !important;
}
.portfolio-preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  text-align: center;
  color: var(--text-muted);
  padding: 12px;
}

.portfolio-item:target {
  border-color: rgba(110, 214, 255, 0.92) #0b1738 #0b1738 rgba(110, 214, 255, 0.92);
  box-shadow: 0 0 0 2px rgba(110, 214, 255, 0.22), 0 16px 28px rgba(0, 0, 0, 0.24);
}

@media (min-width: 1024px) {
  html { font-size: 14px; }

  .main-window {
    max-width: 1140px;
  }

  .window-body {
    padding: 22px 24px;
  }

  .navbar-brand {
    font-size: 10px;
  }

  .brand-logo-wrap {
    width: 36px;
    height: 36px;
  }

  .nav-item {
    font-size: 13px;
    padding: 8px 14px;
  }

  .hero {
    padding: 52px 30px;
  }

  .hero-mascot-img {
    width: 184px;
    height: 184px;
  }

  .hero-title {
    font-size: clamp(40px, 4.8vw, 74px);
  }

  .window-body span[style*="font-size:32px"] {
    font-size: 40px !important;
  }

  .section-title,
  .about-text h2,
  .contact-info-panel h3,
  .pricing-card-header h3,
  .cta-band h2 {
    font-size: clamp(16px, 1.65vw, 24px);
  }

  .portfolio-preview-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .portfolio-preview-carousel { padding: 14px; }
  .portfolio-preview-track { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .portfolio-preview-track { grid-template-columns: 1fr; }
  .portfolio-preview-actions { flex-direction: column; }
}
