body {
  margin: 0;
  font-family: 'Exo 2', Arial, sans-serif;
  background: #f5ecd7 url('assets/comic-paper-bk.png') repeat;
  color: #2d1c0b;
}

section {
  padding: 60px 0 40px 0;
  width: 100vw;
  box-sizing: border-box;
}

.hero-panel, .about-panel, .projects-panel, .contact-panel {
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  background: none;
  max-width: none;
  width: 100vw;
  position: static;
  z-index: auto;
}

.hero-panel {
  border-bottom: none;
  text-align: center;
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2vw;
  min-height: 420px;
  position: relative;
}
.hero-textboxes {
  flex: 0 0 340px;
  max-width: 340px;
  margin-right: 2vw;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
}
.text-boxes-img {
  width: 100%;
  height: auto;
  display: block;
}
.text-boxes-caption {
  display: none;
}
.hero-text {
  position: absolute;
  top: 1.2vw;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
  gap: 0.2em;
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-text h1 {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 2em;
  margin: 0;
  letter-spacing: 1.5px;
  line-height: 1.1;
}
.hero-text h2 {
  font-size: 1.1em;
  font-weight: 400;
  color: #a67c52;
  margin: 0;
  line-height: 1.2;
}
.hero-image-panel {
  flex: 0 0 420px;
  max-width: 40vw;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  margin-right: 10%;
}
.main-wizard-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.wizard-title-overlay {
  position: absolute;
  top: -8%;
  left: -10%;
  width: 60%;
  min-width: 160px;
  max-width: 320px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.about-panel {
  text-align: center;
}
.narration-box {
  display: inline-block;
  background: rgba(255,255,255,0.85);
  border: 2px solid #e0c48f;
  border-radius: 12px;
  box-shadow: 2px 4px 12px rgba(80,60,20,0.07);
  padding: 1.2em 2em;
  margin-bottom: 1.5em;
  font-size: 1.2em;
  font-style: italic;
  color: #4b2e0e;
}
.quick-facts {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: inline-block;
}
.quick-facts li {
  background: #fffbe6;
  border: 1px solid #e0c48f;
  border-radius: 8px;
  margin: 0.4em 0;
  padding: 0.5em 1.2em;
  font-size: 1em;
  display: block;
}

.projects-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 60px;
  background: none;
}

.tilework-bg {
  position: absolute;
  top: -60vmax;
  left: -60vmax;
  width: 240vmax;
  height: 240vmax;
  transform: rotate(36deg) scale(1.15);
  display: grid;
  grid-template-columns: repeat(24, 10vmax);
  grid-template-rows: repeat(24, 18vmax);
  pointer-events: none;
  z-index: 0;
}
.tilework-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}
.tilework-bg img:nth-child(40n+21),
.tilework-bg img:nth-child(40n+22),
.tilework-bg img:nth-child(40n+23),
.tilework-bg img:nth-child(40n+24),
.tilework-bg img:nth-child(40n+25),
.tilework-bg img:nth-child(40n+26),
.tilework-bg img:nth-child(40n+27),
.tilework-bg img:nth-child(40n+28),
.tilework-bg img:nth-child(40n+29),
.tilework-bg img:nth-child(40n+30),
.tilework-bg img:nth-child(40n+31),
.tilework-bg img:nth-child(40n+32),
.tilework-bg img:nth-child(40n+33),
.tilework-bg img:nth-child(40n+34),
.tilework-bg img:nth-child(40n+35),
.tilework-bg img:nth-child(40n+36),
.tilework-bg img:nth-child(40n+37),
.tilework-bg img:nth-child(40n+38),
.tilework-bg img:nth-child(40n+39),
.tilework-bg img:nth-child(40n+40) {
  margin-left: 5vw;
}
.tilework-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.35);
  pointer-events: none;
  z-index: 2;
}
.projects-panel > *:not(.tilework-bg) {
  position: relative;
  z-index: 1;
}
.project-panel {
  background: #fffbe6;
  border: 4px solid #111;
  border-radius: 18px 18px 32px 18px;
  box-shadow: 6px 8px 0 0 #111, 0 2px 12px rgba(0,0,0,0.10);
  padding: 2em 2.5em 2.5em 2em;
  width: 340px;
  max-width: 95vw;
  text-align: left;
  margin-bottom: 2.5em;
  position: relative;
  overflow: visible;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
  align-self: flex-start;
  /* Denser SVG halftone gradient overlay */
  background-image: url('data:image/svg+xml;utf8,<svg width="120" height="240" viewBox="0 0 120 240" fill="none" xmlns="http://www.w3.org/2000/svg"><g opacity="0.13">%0A<circle cx="10" cy="20" r="2.2" fill="%23bfa76a"/><circle cx="25" cy="20" r="2.2" fill="%23bfa76a"/><circle cx="40" cy="20" r="2.2" fill="%23bfa76a"/><circle cx="55" cy="20" r="2.2" fill="%23bfa76a"/><circle cx="70" cy="20" r="2.2" fill="%23bfa76a"/><circle cx="85" cy="20" r="2.2" fill="%23bfa76a"/><circle cx="100" cy="20" r="2.2" fill="%23bfa76a"/>%0A<circle cx="17" cy="40" r="2.7" fill="%23bfa76a"/><circle cx="32" cy="40" r="2.7" fill="%23bfa76a"/><circle cx="47" cy="40" r="2.7" fill="%23bfa76a"/><circle cx="62" cy="40" r="2.7" fill="%23bfa76a"/><circle cx="77" cy="40" r="2.7" fill="%23bfa76a"/><circle cx="92" cy="40" r="2.7" fill="%23bfa76a"/>%0A<circle cx="10" cy="60" r="3.2" fill="%23bfa76a"/><circle cx="25" cy="60" r="3.2" fill="%23bfa76a"/><circle cx="40" cy="60" r="3.2" fill="%23bfa76a"/><circle cx="55" cy="60" r="3.2" fill="%23bfa76a"/><circle cx="70" cy="60" r="3.2" fill="%23bfa76a"/><circle cx="85" cy="60" r="3.2" fill="%23bfa76a"/><circle cx="100" cy="60" r="3.2" fill="%23bfa76a"/>%0A<circle cx="17" cy="80" r="3.7" fill="%23bfa76a"/><circle cx="32" cy="80" r="3.7" fill="%23bfa76a"/><circle cx="47" cy="80" r="3.7" fill="%23bfa76a"/><circle cx="62" cy="80" r="3.7" fill="%23bfa76a"/><circle cx="77" cy="80" r="3.7" fill="%23bfa76a"/><circle cx="92" cy="80" r="3.7" fill="%23bfa76a"/>%0A<circle cx="10" cy="100" r="4.2" fill="%23bfa76a"/><circle cx="25" cy="100" r="4.2" fill="%23bfa76a"/><circle cx="40" cy="100" r="4.2" fill="%23bfa76a"/><circle cx="55" cy="100" r="4.2" fill="%23bfa76a"/><circle cx="70" cy="100" r="4.2" fill="%23bfa76a"/><circle cx="85" cy="100" r="4.2" fill="%23bfa76a"/><circle cx="100" cy="100" r="4.2" fill="%23bfa76a"/>%0A<circle cx="17" cy="120" r="4.7" fill="%23bfa76a"/><circle cx="32" cy="120" r="4.7" fill="%23bfa76a"/><circle cx="47" cy="120" r="4.7" fill="%23bfa76a"/><circle cx="62" cy="120" r="4.7" fill="%23bfa76a"/><circle cx="77" cy="120" r="4.7" fill="%23bfa76a"/><circle cx="92" cy="120" r="4.7" fill="%23bfa76a"/>%0A<circle cx="10" cy="140" r="4.2" fill="%23bfa76a"/><circle cx="25" cy="140" r="4.2" fill="%23bfa76a"/><circle cx="40" cy="140" r="4.2" fill="%23bfa76a"/><circle cx="55" cy="140" r="4.2" fill="%23bfa76a"/><circle cx="70" cy="140" r="4.2" fill="%23bfa76a"/><circle cx="85" cy="140" r="4.2" fill="%23bfa76a"/><circle cx="100" cy="140" r="4.2" fill="%23bfa76a"/>%0A<circle cx="17" cy="160" r="3.7" fill="%23bfa76a"/><circle cx="32" cy="160" r="3.7" fill="%23bfa76a"/><circle cx="47" cy="160" r="3.7" fill="%23bfa76a"/><circle cx="62" cy="160" r="3.7" fill="%23bfa76a"/><circle cx="77" cy="160" r="3.7" fill="%23bfa76a"/><circle cx="92" cy="160" r="3.7" fill="%23bfa76a"/>%0A<circle cx="10" cy="180" r="3.2" fill="%23bfa76a"/><circle cx="25" cy="180" r="3.2" fill="%23bfa76a"/><circle cx="40" cy="180" r="3.2" fill="%23bfa76a"/><circle cx="55" cy="180" r="3.2" fill="%23bfa76a"/><circle cx="70" cy="180" r="3.2" fill="%23bfa76a"/><circle cx="85" cy="180" r="3.2" fill="%23bfa76a"/><circle cx="100" cy="180" r="3.2" fill="%23bfa76a"/>%0A<circle cx="17" cy="200" r="2.7" fill="%23bfa76a"/><circle cx="32" cy="200" r="2.7" fill="%23bfa76a"/><circle cx="47" cy="200" r="2.7" fill="%23bfa76a"/><circle cx="62" cy="200" r="2.7" fill="%23bfa76a"/><circle cx="77" cy="200" r="2.7" fill="%23bfa76a"/><circle cx="92" cy="200" r="2.7" fill="%23bfa76a"/>%0A<circle cx="10" cy="220" r="2.2" fill="%23bfa76a"/><circle cx="25" cy="220" r="2.2" fill="%23bfa76a"/><circle cx="40" cy="220" r="2.2" fill="%23bfa76a"/><circle cx="55" cy="220" r="2.2" fill="%23bfa76a"/><circle cx="70" cy="220" r="2.2" fill="%23bfa76a"/><circle cx="85" cy="220" r="2.2" fill="%23bfa76a"/><circle cx="100" cy="220" r="2.2" fill="%23bfa76a"/>%0A</g></svg>');
  background-size: 120px 240px;
  background-repeat: repeat;
}
.project-panel:hover {
  border-color: #a67c52;
  box-shadow: 8px 12px 0 0 #111, 0 6px 24px rgba(80,60,20,0.13);
  background: #fffbe6;
}
.project-panel h3 {
  font-family: 'Bangers', 'Orbitron', Arial, sans-serif;
  font-size: 2.1em;
  margin-top: 0;
  color: #a67c52;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #fffbe6, 4px 4px 0 #111;
  margin-bottom: 0.4em;
}
.project-panel::after {
  display: none;
}

.contact-panel {
  text-align: center;
  padding-bottom: 80px;
}
.scroll-illustration {
  margin: 0 auto 1.5em auto;
  width: 320px;
  height: 120px;
  background: #e0c48f;
  border-radius: 24px 24px 40px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  color: #7a5c2e;
  box-shadow: 0 2px 12px rgba(80,60,20,0.10);
}
.sigils {
  margin: 1.5em 0 1em 0;
}
.sigil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 12px;
  background: #fffbe6;
  border: 2px solid #e0c48f;
  border-radius: 50%;
  font-size: 1.6em;
  color: #a67c52;
  text-align: center;
  line-height: 48px;
  text-decoration: none;
  box-shadow: 1px 2px 8px rgba(80,60,20,0.08);
  transition: box-shadow 0.2s, border-color 0.2s, color 0.2s;
  overflow: hidden;
  position: relative;
}
.sigil img, .sigil svg {
  width: 70%;
  height: 70%;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}
.sigil:hover {
  border-color: #ffb300;
  color: #ffb300;
  box-shadow: 0 4px 16px rgba(255,179,0,0.15);
}
.scroll-enchantment {
  margin-top: 2em;
  font-size: 1.1em;
  color: #4b2e0e;
  font-style: italic;
}

@media (max-width: 700px) {
  .projects-panel {
    flex-direction: column;
    gap: 16px;
    padding-bottom: 30px;
  }
  .project-panel {
    width: 100%;
    max-width: 92vw;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .scroll-illustration {
    width: 95vw;
    height: 80px;
  }
  .tilework-bg {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100vw;
    min-width: 100vw;
    height: 100%;
    min-height: 100%;
    background: url('assets/spellcaster/sprite-tile.png') repeat;
    background-size: 80vw auto;
    background-position: -10vw -10vw;
    transform: rotate(-8deg) scale(1.18);
    z-index: 0;
    overflow: hidden;
  }
  .tilework-bg img {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .hero-panel {
    padding-top: 16px !important;
    padding-bottom: 8px !important;
  }
  .main-wizard-img,
  .wizard-title-overlay {
    display: block !important;
    max-width: 90vw;
    height: auto;
  }
  .hero-content {
    flex-direction: column-reverse;
    align-items: center;
    min-height: unset;
    gap: 1.5em;
  }
  .hero-image-panel {
    max-width: 90vw;
    width: 100%;
    justify-content: center;
    margin-right: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2em;
  }
  .main-wizard-img {
    width: 100%;
    max-width: 350px;
  }
  .wizard-title-overlay {
    width: 70%;
    min-width: 120px;
    max-width: 200px;
    top: 0;
    left: 0;
    transform: none;
  }
  .hero-textboxes {
    flex: 0 1 auto !important;
    max-width: 100vw !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  .text-boxes-img {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .text-boxes-caption {
    display: block;
    font-size: 0.95em;
    color: #2d1c0b;
    background: rgba(255,255,255,0.85);
    border-radius: 8px;
    padding: 0.4em 0.7em;
    margin: 0.1em 0 0 0;
    text-align: center;
    box-shadow: 2px 4px 12px rgba(80,60,20,0.18), 0 2px 12px rgba(0,0,0,0.10);
    border: 2.5px solid #111;
    width: 100%;
    max-width: 350px;
  }
  .hero-text {
    position: static;
    align-items: center;
    padding-top: 1.5em;
    gap: 0.5em;
    text-align: center;
    left: unset;
    transform: none;
  }
  .hero-text h1 {
    font-size: 1.4em;
  }
  .hero-text h2 {
    font-size: 1em;
  }
  .projects-panel {
    flex-direction: column;
    gap: 16px;
    padding-bottom: 30px;
  }
  .project-panel {
    width: 95vw;
    padding: 1.2em 1em 1.7em 1em;
  }
  .project-panel::after {
    left: 24px;
    width: 28px;
    height: 18px;
  }
  .tilework-bg {
    grid-template-columns: repeat(4, 24vw);
    grid-template-rows: repeat(8, 40vw);
  }
  .tilework-bg img {
    width: 100%;
    height: 100%;
  }
}

/* Add comic-style divider */
.section-divider {
  border-top: 4px solid #111;
}

.expand-btn {
  display: inline-block;
  margin: 1em 0 0.5em 0;
  padding: 0.4em 1.2em;
  font-family: 'Bangers', 'Orbitron', Arial, sans-serif;
  font-size: 1.1em;
  background: #fffbe6;
  border: 2.5px solid #111;
  border-radius: 8px;
  color: #a67c52;
  cursor: pointer;
  box-shadow: 2px 4px 0 #111;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  float: right;
}
.expand-btn:hover, .expand-btn[aria-expanded="true"] {
  background: #ffe9b3;
  color: #111;
  box-shadow: 4px 6px 0 #a67c52;
}
.project-details {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0.8em;
}
.project-details[hidden] {
  display: none !important;
}
.project-details:not([hidden]) {
  display: flex;
}
.project-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  border: 2px solid #a67c52;
  box-shadow: 1px 2px 6px rgba(80,60,20,0.10);
  object-fit: cover;
  background: #e0c48f;
  margin: 0 auto 0.7em auto;
  display: block;
}
.project-details-text {
  width: 100%;
  font-size: 1.05em;
  color: #2d1c0b;
  max-width: none;
  text-align: left;
}
.comic-link {
  display: inline-block;
  margin-top: 0.7em;
  font-family: 'Bangers', 'Orbitron', Arial, sans-serif;
  font-size: 1.1em;
  color: #ffb300;
  text-decoration: none;
  border-bottom: 2px dashed #ffb300;
  transition: color 0.15s, border-color 0.15s;
}
.comic-link:hover {
  color: #a67c52;
  border-color: #a67c52;
}

.contact-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3vw;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2em 0 1.5em 0;
}
.contact-image {
  flex: 0 0 340px;
  max-width: 340px;
  margin-left: 2vw;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-image img {
  width: 100%;
  height: auto;
  border-radius: 24px 24px 40px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  display: block;
}
.contact-info {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 220px;
}
@media (max-width: 900px) {
  .contact-content {
    flex-direction: column;
    align-items: center;
    gap: 1.2em;
    padding: 1.2em 0 1em 0;
  }
  .contact-image {
    max-width: 90vw;
    margin-left: 0;
  }
  .contact-info {
    min-width: unset;
    width: 100%;
  }
}

.contact-form {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7em;
  border-radius: 6px;
  border: 1.5px solid #a67c52;
}
.contact-form button {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7em 1.5em;
  border-radius: 8px;
  background: #a67c52;
  color: #fff;
  font-family: 'Bangers','Orbitron',Arial,sans-serif;
  font-size: 1.1em;
  border: none;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Footer Navigation Styles */
.site-footer {
  text-align: center;
  margin: 3rem 0 0 0;
  padding: 2rem 0;
  border-top: 3px solid #a67c52;
  background: rgba(245, 236, 215, 0.9);
}

.footer-nav {
  margin-bottom: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 30px;
  justify-content: space-between;
  margin: 0 auto 1rem auto;
}

.nav-toggle span {
  width: 100%;
  height: 3px;
  background: #a67c52;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.nav-menu {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: rgba(245, 236, 215, 0.9);
  border: 2px solid #a67c52;
  border-radius: 10px;
  text-decoration: none;
  color: #2d1c0b;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 80px;
}

.nav-button:hover, .nav-button.active {
  background: #a67c52;
  color: #f5ecd7;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.nav-icon {
  font-size: 1.5rem;
}

.nav-text {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  /* Mobile Navigation */
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-button {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
} 