* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: 'Architects Daughter', cursive;
  background: #f5f0e0;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(transparent, transparent 29px, rgba(100,140,200,0.2) 29px, rgba(100,140,200,0.2) 30px),
    linear-gradient(90deg, rgba(200,80,80,0.25) 0px, rgba(200,80,80,0.25) 2px, transparent 2px);
  background-position: 0 0, 60px 0;
  background-repeat: repeat, no-repeat;
  background-size: auto, auto;
  pointer-events: none;
  z-index: 0;
}

header {
  position: relative;
  z-index: 10;
  padding: 14px 40px 0;
  text-align: center;
}
.site-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: #3d2b1a;
  line-height: 1.1;
  text-shadow: 1px 2px 6px rgba(0,0,0,0.08);
}
.site-title em { color: #c05a7a; font-style: italic; }

/*  BOARD  */
.board {
  position: relative;
  width: 92%;
  max-width: 1480px;
  height: calc(100vh - 110px);
  min-height: 580px;
  margin: 6px auto 0;
}

.deco-left {
  position: absolute;
  left: 90px;
  top: 1%;
  width: 160px;
  height: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
}
.deco-right {
  position: absolute;
  right: 90px;
  top: -2%;
  width: 160px;
  height: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
}

/*  CARD BASE  */
.card {
  position: absolute;
  cursor: pointer;
  z-index: 5;
  overflow: hidden;
  transition: transform 0.25s ease, filter 0.25s ease;
  background: transparent;
}
.card:hover {
  transform: var(--rot) translateY(-8px) scale(1.05) !important;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,0.55)) !important;
  z-index: 50 !important;
}
#c-edu:hover {
  transform: translateX(-50%) rotate(-0.5deg) translateY(-4px) !important;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4)) !important;
  z-index: 50 !important;
}

.card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 0;
}

.card-inner {
  position: relative;
  z-index: 1;
  padding: 22px 18px 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-label {
  font-family: 'Architects Daughter', cursive;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(60,30,10,0.5);
  margin-bottom: 6px;
}
.card-title {
  font-family: 'Architects Daughter', cursive;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: #2a1a08;
  margin-bottom: 5px;
}

.card-sub {
  font-family: 'Architects Daughter', cursive;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(40,20,5,0.65);
}

.chip {
  display: inline-block;
  background: rgba(0,0,0,0.09);
  font-family: 'Architects Daughter', cursive;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 3px;
  margin: 4px 3px 0 0;
  color: #2a1a08;
}

/*  POSITIONS  */
/* edu — top center, wider */
#c-edu      { left: 50%; top: 7%;   width: 24%; height: 21%; --rot: rotate(-0.5deg);   transform: translateX(-50%) rotate(-0.5deg); }

/* row 2 */
#c-daad     { left: 3%;   top: 35%;  width: 19%;  height: 27%; --rot: rotate(2.5deg);    transform: rotate(2.5deg); }
#c-twilio   { left: 26%;  top: 32%;  width: 21%;  height: 30%; --rot: rotate(-1.5deg);  transform: rotate(-1.5deg); }
#c-og    { left: 52%;  top: 34%;  width: 20%;  height: 26%; --rot: rotate(0.5deg);   transform: rotate(0.5deg); }
#c-pr       { left: 74%;  top: 31%;  width: 20%;  height: 29%; --rot: rotate(-3deg);    transform: rotate(-3deg); }

/* row 3 */
#c-ca       { left: 5%;   top: 64%;  width: 19%;  height: 27%; --rot: rotate(-1deg);    transform: rotate(-1deg); }
#c-honors      { left: 27%;  top: 67%;  width: 20%;  height: 26%; --rot: rotate(2deg);     transform: rotate(2deg); }
#c-sch  { left: 50%;  top: 63%;  width: 19%;  height: 28%; --rot: rotate(-2.5deg);  transform: rotate(-2.5deg); }
#c-research { left: 73%;  top: 66%;  width: 25%;  height: 27%; --rot: rotate(1.5deg);   transform: rotate(1.5deg); }

#c-twilio .card-inner { padding-top: 42px; }
#c-edu .card-inner { padding-top: 35px; }
#c-honors .card-inner { padding-top: 32px; }
#c-og .card-inner { padding-top: 40px; }
#c-sch .card-inner { padding-top: 40px; }
.back-btn {
  position: fixed;
  top: 16px; left: 16px;
  font-family: 'Architects Daughter', cursive;
  font-size: 13px;
  color: rgba(60,30,10,0.5);
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(60,30,10,0.15);
  padding: 7px 14px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s;
  z-index: 300;
}
.back-btn:hover { background: rgba(255,255,255,0.75); color: #2a1a08; }

.bottom-links {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  display: flex;
  gap: 16px;
  justify-content: center;
  z-index: 10;
}
.bottom-link {
  font-family: 'Architects Daughter', cursive;
  font-size: 13px;
  color: #3d2b1a;
  text-decoration: none;
  padding: 4px 14px;
  border: 1.5px solid rgba(200,80,80,0.5);
  border-radius: 20px;
  transition: background 0.2s, border-color 0.2s;
}
.bottom-link:hover { background: rgba(200,80,80,0.08); border-color: rgba(200,80,80,0.8); }

@media (max-width: 700px) {
  html, body { height: auto; overflow: auto; }
  .board { height: auto; display: flex; flex-direction: column; gap: 16px; padding: 10px 12px 20px; }
  .card { position: static !important; width: 100% !important; height: 160px !important;
          transform: none !important; overflow: visible !important; }
  .card:hover { transform: scale(1.01) !important; }
  #c-edu { height: 200px !important; }
}
