:root {
  --bg: #fbfbf9;
  --ink: #141414;
  --muted: #8f8f8a;
  --font: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* ---- Brand (left) ---- */
.brand {
  position: fixed;
  left: clamp(20px, 3vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}
.brand__name { font-weight: 500; }
.brand__role { color: var(--muted); }

/* ---- Nav (right) ---- */
.nav {
  position: fixed;
  right: clamp(20px, 3vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 10;
}
.nav a {
  position: relative;
  transition: opacity .18s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .22s ease;
}
.nav a:hover::after,
.nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-current { font-weight: 500; }

/* ---- Center stage ---- */
.stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 24px;
}

.view {
  display: none;
  width: 100%;
  max-width: 460px;
  animation: fade .45s ease both;
}
.view.is-active { display: block; }

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

/* Photo slideshow */
.view--index { max-width: none; display: none; }
.view--index.is-active { display: flex; justify-content: center; }
.slideshow {
  position: relative;
  height: 74vh;
  width: min(44vw, 480px);
}
.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.slideshow img.is-active { opacity: 1; }

/* Text views */
.view--text { line-height: 1.75; }

.entries { list-style: none; margin: 0; padding: 0; }
.entries li { color: #3a3a37; }
.entries li + li { margin-top: 20px; }
.entries__lead { color: var(--ink); font-weight: 500; }
.entries a {
  color: var(--ink);
  border-bottom: 1px solid rgba(58, 58, 55, 0.35);
  transition: border-color .22s ease;
}
.entries a:hover { border-bottom-color: currentColor; }

.info { margin: 0; color: #3a3a37; line-height: 1.85; }

.contact { list-style: none; margin: 0; padding: 0; text-align: center; }
.contact li + li { margin-top: 16px; }
.contact a {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
}
.contact a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .22s ease;
}
.contact a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---- Responsive ---- */
@media (max-width: 720px) {
  body { font-size: 12.5px; }

  .brand {
    position: fixed;
    top: 22px;
    left: 20px;
    transform: none;
    flex-direction: column;
    gap: 4px;
  }
  .nav {
    position: fixed;
    top: 22px;
    right: 20px;
    transform: none;
    align-items: flex-end;
    gap: 8px;
  }
  .stage { padding: 120px 22px 60px; align-items: center; }
  .view { max-width: 100%; }
  .slideshow { width: 80vw; height: 60vh; }
}

@media (max-width: 420px) {
  .nav { gap: 7px; }
  .nav a, .brand__name, .brand__role { font-size: 11px; }
}
