:root {
  --bg: #0d0d12;
  --felt: #14191f;
  --panel: #1e242e;
  --accent: #2ee6d1;
  --accent2: #b87aff;
  --coral: #ff6b73;
  --amber: #ffc747;
  --text: #f0f2f8;
  --muted: #9ea6b8;
  --line: rgba(255, 255, 255, 0.1);
  --dock-h: 72px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  padding-bottom: calc(var(--dock-h) + 28px);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--amber);
}

.felt-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(46, 230, 209, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(184, 122, 255, 0.12), transparent 50%),
    linear-gradient(165deg, var(--felt), var(--bg) 55%);
}

.page {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

/* —— Hero: diagonal band —— */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  margin: 0 0 4rem;
}

.hero__band {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 88%);
  background: var(--panel);
}

.hero__band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 13, 18, 0.15) 0%,
    rgba(13, 13, 18, 0.55) 55%,
    rgba(13, 13, 18, 0.92) 100%
  );
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.02) translate(0, 0); }
  to { transform: scale(1.08) translate(-1.5%, 1%); }
}

.hero__copy {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.25rem 3rem;
  max-width: 34rem;
  animation: rise 0.9s ease-out both;
}

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

.hero__brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.hero__tag {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 28rem;
}

.hero__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__jump a {
  color: var(--accent);
}

/* —— Cork notes —— */
.notes {
  padding: 0 1.25rem 4.5rem;
}

.notes__intro {
  max-width: 28rem;
  margin: 0 0 2rem auto;
  text-align: right;
}

.notes__intro h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
}

.notes__intro p {
  margin: 0;
  color: var(--muted);
}

.notes__board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.25rem;
  align-items: start;
}

.note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 4px;
  padding: 1.15rem 1.2rem 1.3rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transform-origin: top center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.note:nth-child(1) { transform: rotate(-1.4deg); }
.note:nth-child(2) { transform: rotate(1.8deg); margin-top: 1.4rem; }
.note:nth-child(3) { transform: rotate(1.1deg); margin-top: -0.4rem; }
.note:nth-child(4) { transform: rotate(-2deg); margin-top: 0.8rem; }

.note:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.note h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.note--teal { border-top: 3px solid var(--accent); }
.note--coral { border-top: 3px solid var(--coral); }
.note--amber { border-top: 3px solid var(--amber); }
.note--violet { border-top: 3px solid var(--accent2); }

@media (max-width: 720px) {
  .notes__board {
    grid-template-columns: 1fr;
  }
  .note:nth-child(n) {
    margin-top: 0;
    transform: rotate(0);
  }
  .notes__intro {
    margin-right: 0;
    text-align: left;
  }
}

/* —— Polaroid scatter —— */
.scatter {
  padding: 0 1.25rem 4.5rem;
}

.scatter__head {
  max-width: 26rem;
  margin: 0 0 2rem;
}

.scatter__head h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.scatter__head p {
  margin: 0;
  color: var(--muted);
}

.scatter__stage {
  position: relative;
  min-height: 620px;
}

.polaroid {
  position: absolute;
  width: min(220px, 42vw);
  margin: 0;
  padding: 0.65rem 0.65rem 1.8rem;
  background: #ebe6dc;
  color: #1a1a1a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease, z-index 0s;
  z-index: 1;
}

.polaroid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #111;
}

.polaroid figcaption {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.polaroid:hover {
  z-index: 5;
  transform: rotate(0deg) scale(1.04) !important;
}

.polaroid--a { top: 0; left: 4%; transform: rotate(-7deg); }
.polaroid--b { top: 8%; left: 34%; transform: rotate(4deg); }
.polaroid--c { top: 2%; right: 6%; left: auto; transform: rotate(8deg); width: min(200px, 38vw); }
.polaroid--c img { aspect-ratio: 1; }
.polaroid--d { top: 38%; left: 18%; transform: rotate(3deg); }
.polaroid--e { top: 42%; right: 18%; left: auto; transform: rotate(-5deg); width: min(190px, 36vw); }
.polaroid--e img { aspect-ratio: 1; }
.polaroid--f { top: 48%; left: 48%; transform: rotate(-2deg); }

@media (max-width: 720px) {
  .scatter__stage {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .polaroid {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100%;
    transform: none !important;
  }
}

/* —— Legal —— */
.legal {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  padding: 0 1.25rem 3rem;
}

.legal__panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem 1.35rem;
}

.legal__panel h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.legal__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.legal__panel p {
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.legal__panel p:last-child {
  margin-bottom: 0;
}

.mail-pill {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(46, 230, 209, 0.12);
  border: 1px solid rgba(46, 230, 209, 0.35);
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.mail-pill:hover {
  background: rgba(46, 230, 209, 0.22);
  color: var(--text);
}

@media (max-width: 800px) {
  .legal {
    grid-template-columns: 1fr;
  }
}

.foot {
  padding: 0 1.25rem 2rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* —— Bottom dock —— */
.dock {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 0.2rem;
  padding: 0.45rem;
  width: min(520px, calc(100% - 1.5rem));
  background: rgba(20, 25, 31, 0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.dock__item {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 16px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.dock__item:hover,
.dock__item.is-active {
  background: rgba(46, 230, 209, 0.14);
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__img { animation: none; }
  .hero__copy { animation: none; }
}
