
@font-face {
  font-family: 'Gavielle';
  src: url('fonts/gavielle.otf') format('opentype');
}

:root {
  --bg: #fff;
  --text: #050505;
  --line: #050505;
  --blue: #1c63ff;
  --orange: #ff4b1f;
  --panel: #fff;
  --on-accent: #fff;
  --muted-line: rgba(5,5,5,0.18);
}

html.is-night,
body.is-night {
  --bg: #050505;
  --text: #f5f5f0;
  --line: #f5f5f0;
  --blue: #6f8cff;
  --orange: #ff6a3d;
  --panel: #101010;
  --muted-line: rgba(245,245,240,0.22);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--blue) var(--bg);
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background:
    linear-gradient(90deg, transparent 0 4px, var(--muted-line) 4px 6px, transparent 6px 100%),
    var(--bg);
  border-left: 1px solid var(--line);
}

*::-webkit-scrollbar-thumb {
  background: var(--blue);
  border: 2px solid var(--bg);
  box-shadow: inset -2px -2px 0 var(--orange);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--orange);
  box-shadow: inset -2px -2px 0 var(--blue);
}

*::-webkit-scrollbar-corner {
  background: var(--bg);
}

body {
  position: relative;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  z-index: 999;
  background-image:
    repeating-radial-gradient(circle at 0 0, transparent 0, var(--text) 1px, transparent 2px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}

html.is-night .noise,
body.is-night .noise {
  opacity: 0.07;
  mix-blend-mode: screen;
}

.floating-artifact {
  position: fixed;
  z-index: 50;
  pointer-events: auto;
  animation: artifactIn 0.45s ease forwards;
}

.floating-artifact img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

.floating-artifact.is-leaving {
  pointer-events: none;
  animation: artifactOut 0.45s ease forwards;
}

.artifact-close {
  position: absolute;
  top: -0.7rem;
  right: -0.7rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  color: var(--text);
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 1;
}

.artifact-close:hover {
  background: var(--blue);
  color: var(--on-accent);
}

@keyframes artifactIn {
  from {
    opacity: 0;
    scale: 0.82;
  }

  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes artifactOut {
  to {
    opacity: 0;
    scale: 0.72;
  }
}

.layout {
  display: flex;
  flex-direction: row-reverse;
  width: 100%;
  height: 100vh;
}

.left-panel {
  width: 48%;
  min-width: 48%;
  height: 100vh;
  padding: 2rem;
  border-left: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  background: var(--panel);
  overflow-y: auto;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.theme-toggle {
  border: 2px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 0.35rem 0.65rem;
  box-shadow: 3px 3px 0 var(--line);
  font: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.theme-toggle:hover,
.theme-toggle[aria-pressed='true'] {
  background: var(--blue);
  color: var(--on-accent);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--line);
}

.tiny {
  font-size: 0.65rem;
  letter-spacing: 0.2rem;
  opacity: 0.75;
}

.hero {
  margin-top: 6vh;
}

.hero h1 {
  font-family: 'Gavielle', serif;
  font-size: clamp(5rem, 10vw, 10rem);
  line-height: 0.9;
  font-weight: normal;
  margin-bottom: 1rem;
  color: var(--text);
  -webkit-text-stroke: 2px var(--line);
  text-shadow: 5px 5px 0 var(--bg);
}

html.is-night .hero h1,
body.is-night .hero h1 {
  text-shadow: 5px 5px 0 var(--blue);
}

.newsletter-marquee {
  width: min(100%, 620px);
  margin-bottom: 1.4rem;
  border: 2px solid var(--line);
  background: var(--blue);
  color: var(--on-accent);
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: 6px 6px 0 var(--line);
  scrollbar-width: none;
}

.newsletter-marquee::-webkit-scrollbar {
  display: none;
}

.newsletter-marquee:hover .newsletter-track {
  animation-play-state: paused;
}

.newsletter-track {
  display: flex;
  width: max-content;
  animation: newsletterScroll 14s linear infinite;
}

.newsletter-track span {
  padding: 0.65rem 2.5rem;
  white-space: nowrap;
  font-family: 'Planta 02', 'Planta', 'Arial Black', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
}

.newsletter-track a {
  color: var(--on-accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
  font: inherit;
}

.newsletter-track a:hover {
  color: var(--orange);
}

@keyframes newsletterScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero-links a,
.hero-links button {
  min-height: 2.35rem;
  border: 2px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 0.55rem 0.75rem;
  box-shadow: 4px 4px 0 var(--line);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.12rem;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-links a:hover,
.hero-links button:hover,
.hero-links button.is-copied {
  background: var(--blue);
  color: var(--on-accent);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--line);
}

.contact-link {
  min-width: min(100%, 23rem);
  text-align: left;
}

.intro {
  max-width: 540px;
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.85;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  margin-bottom: 3rem;
}

.block {
  position: relative;
  min-height: 220px;
  padding: 2.85rem 1rem 1rem;
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: 8px 8px 0 var(--blue);
  transition: opacity 0.35s ease, filter 0.35s ease;
}


.block:nth-child(even) {
  box-shadow: 8px 8px 0 var(--orange);
}

.block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.65rem;
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(90deg, var(--line) 0 12px, transparent 12px 18px) 0.45rem 50% / 18px 8px repeat-x,
    var(--panel);
}

.block.is-muted {
  opacity: 0.28;
  filter: grayscale(1);
}

.block-close {
  position: absolute;
  top: 0.22rem;
  right: 0.25rem;
  width: 1.18rem;
  height: 1.18rem;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  line-height: 1;
  z-index: 3;
}

.block-close:hover {
  background: var(--orange);
  color: var(--on-accent);
}

.index {
  font-size: 0.7rem;
  opacity: 0.55;
  display: inline-block;
  margin-bottom: 1rem;
}

.block h2 {
  font-size: 0.85rem;
  letter-spacing: 0.15rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

.block p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.8;
}

.block p + p {
  margin-top: 0.85rem;
}

.resident-category + .resident-category {
  margin-top: 0.85rem;
}

.resident-category h3 {
  font-size: 0.68rem;
  letter-spacing: 0.15rem;
  margin-bottom: 0.25rem;
  font-weight: 400;
  text-transform: uppercase;
}

.resident-list {
  list-style: none;
  display: block;
  font-size: 0.95rem;
  line-height: 1.75;
}

.resident-list li {
  display: inline;
}

.resident-list li:not(:last-child)::after {
  content: ', ';
}

.resident-list a {
  color: var(--text);
  text-decoration: none;
  display: inline;
  padding: 0.02rem 0.16rem;
  border-bottom: 1px solid transparent;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.resident-list a:hover {
  background: var(--blue);
  color: var(--on-accent);
  border-bottom-color: var(--orange);
}

.kaoss-pad {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: 6px 6px 0 var(--orange);
  overflow: hidden;
  touch-action: none;
}

.kaoss-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--muted-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--muted-line) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, var(--blue), transparent 58%);
  background-size: 18px 18px, 18px 18px, 100% 100%;
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}

.kaoss-surface {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: crosshair;
  touch-action: none;
}

.kaoss-cursor {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--line);
  background: var(--orange);
  box-shadow: 4px 4px 0 var(--blue);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.kaoss-label {
  position: absolute;
  left: 0.65rem;
  bottom: 0.55rem;
  z-index: 4;
  font-size: 0.65rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  pointer-events: none;
}

.kaoss-pad[data-active='true'] .kaoss-grid {
  opacity: 0.72;
  animation: kaossPulse 0.22s steps(2, end) infinite;
}

.kaoss-readout {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.1rem;
}

.kaoss-readout strong {
  color: var(--blue);
  font-weight: 700;
}

@keyframes kaossPulse {
  50% {
    filter: invert(1);
  }
}

.footer {
  padding-top: 2rem;
}

.footer p {
  font-size: 0.7rem;
  letter-spacing: 0.2rem;
  opacity: 0.6;
}

.right-panel {
  width: 52%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: var(--bg);
  cursor: crosshair;
  padding: 2rem;
}

.right-panel::after {
  content: attr(data-hover-word);
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 20;
  border: 2px solid var(--line);
  background: var(--blue);
  color: var(--on-accent);
  padding: 0.45rem 0.65rem;
  box-shadow: 4px 4px 0 var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-0.6rem);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.right-panel:hover::after,
.right-panel.is-gallery-hover::after {
  opacity: 1;
  transform: translateY(0);
}

.media-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: 12px 12px 0 var(--blue);
}

.gallery-nav {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.right-panel:hover .gallery-nav,
.right-panel.is-gallery-hover .gallery-nav,
.right-panel:focus-within .gallery-nav {
  opacity: 1;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--line);
  background: var(--panel);
  color: var(--text);
  box-shadow: 4px 4px 0 var(--line);
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-arrow--prev {
  left: 1rem;
}

.gallery-arrow--next {
  right: 1rem;
}

.gallery-arrow:hover {
  background: var(--blue);
  color: var(--on-accent);
  transform: translateY(-50%) translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--line);
}

.gallery-arrow--next:hover {
  background: var(--orange);
  color: var(--on-accent);
}

.gallery-arrow:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.media-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #0a0a0a;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.media-card.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.media-card img,
.media-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.12s ease, filter 0.12s ease;
  filter: contrast(1.15) saturate(0.75);
}

.media-card.is-active:hover img,
.media-card.is-active:hover video {
  transform: scale(1.02);
}

.media-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.16));
  pointer-events: none;
}

html.is-night .media-card::after,
body.is-night .media-card::after {
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.22));
}

@media screen and (max-width: 1300px) {

  html,
  body {
    overflow-y: auto;
  }

  .layout {
    flex-direction: column;
    height: auto;
  }

  .left-panel,
  .right-panel {
    width: 100%;
    min-width: 100%;
    height: auto;
  }

  .left-panel {
    border-left: none;
    border-bottom: 2px solid var(--line);
  }

  .content-grid {
    grid-template-columns: 1fr;
    margin-top: 4rem;
  }

  .right-panel {
    overflow: visible;
    padding: 2rem;
  }

  .media-track {
    position: relative;
    animation: none;
    transform: none !important;
    display: block;
    height: min(78vh, 620px);
    padding: 0;
    overflow: hidden;
  }

  .hero h1 {
    font-size: 5rem;
  }

  .newsletter-marquee {
    overflow: hidden;
    scrollbar-width: none;
  }

  .newsletter-marquee::-webkit-scrollbar {
    display: none;
  }

  .newsletter-track a {
    color: var(--on-accent);
  }

  .media-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

}


