* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: #1a1816;
  color: #e0dbd3;
  height: 100dvh;
  overflow: hidden;
  position: relative;
}

/* ---- Load-in animation ---- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.left, .section-label, .work li {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.left            { animation-delay: 0.1s; }
.section-label   { animation-delay: 0.5s; }
.work li:nth-child(1) { animation-delay: 0.6s; }
.work li:nth-child(2) { animation-delay: 0.7s; }
.work li:nth-child(3) { animation-delay: 0.8s; }
.work li:nth-child(4) { animation-delay: 0.9s; }
.work li:nth-child(5) { animation-delay: 1.0s; }

/* ---- ASCII background (hidden until glow reveals it) ---- */

.ascii {
  position: fixed;
  inset: 0;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 17px;
  letter-spacing: 1px;
  color: transparent;
  white-space: pre;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.4s ease;
  -webkit-background-clip: text;
  background-clip: text;
}

/* ---- Shuffle button ---- */

.shuffle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  width: 28px;
  height: 28px;
  border: 1px solid #2d2a26;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.shuffle:hover {
  border-color: #5a544d;
  background: rgba(196, 160, 112, 0.06);
}

/* ---- Mouse-following glow ---- */

.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

/* Noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
}

main {
  display: flex;
  height: 100dvh;
  padding: 0 clamp(2rem, 5vw, 6rem);
  position: relative;
  z-index: 1;
}

/* ---- Left column ---- */

.left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 42%;
  padding-right: 4rem;
  min-width: 0;
  overflow: hidden;
}

h1 {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #e8e3db;
  transition: color 0.5s ease;
}

h1:hover {
  color: #d4a882;
}

.role {
  margin-top: 1.5rem;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b89878;
}

nav {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.8rem;
}

nav a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #8a837a;
  transition: color 0.4s ease;
}

nav a:hover {
  color: #c4a070;
}

/* ---- Right column ---- */

.right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 58%;
}

.section-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  color: #8a7e6e;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.work {
  list-style: none;
  width: 100%;
}

.work li {
  border-top: 1px solid #443d35;
}

.work li:last-child {
  border-bottom: 1px solid #443d35;
}

.work a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.3rem 0;
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work a:hover {
  padding-left: 0.8rem;
}

.label {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #b5ada3;
  white-space: nowrap;
  transition: color 0.4s ease;
}

.context {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  color: #7a746c;
  text-align: right;
  transition: color 0.4s ease;
  line-height: 1.4;
}

.meta {
  display: block;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(0.65rem, 0.8vw, 0.75rem);
  letter-spacing: 0.08em;
  color: #5a544d;
  margin-top: 0.25rem;
}

.work a:hover .meta {
  color: #7a746c;
}

.work a:hover .label {
  color: var(--active-accent, #c4a070);
}

.work a:hover .context {
  color: #9a938a;
}

/* ---- Mobile ---- */

@media (max-width: 768px) {
  body {
    height: auto;
    overflow: auto;
  }

  main {
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
    padding: 3rem 1.5rem;
    justify-content: center;
  }

  .left {
    width: 100%;
    padding-right: 0;
    margin-bottom: 3rem;
  }

  .right {
    width: 100%;
  }

  .work a {
    flex-direction: column;
    gap: 0.3rem;
  }

  .context {
    text-align: left;
  }
}
