:root {
  --black: #000;
  --white: #f7f7f2;
  --muted: rgba(247, 247, 242, 0.64);
  --line: rgba(247, 247, 242, 0.22);
  --max: 1120px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.home-page {
  min-height: 100vh;
  overflow: hidden;
}

.landing {
  position: relative;
  min-height: 100vh;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
}

.landing-mark {
  position: absolute;
  left: clamp(1.5rem, 4vw, 3rem);
  top: 50%;
  transform: translateY(-50%);
  max-width: min(360px, calc(100vw - 3rem));
}

.landing-logo {
  width: min(300px, 100%);
  margin-bottom: 1.4rem;
  filter: invert(1);
  opacity: 0.96;
}

.mono {
  margin: 0 0 0.75rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

.landing h1 {
  max-width: 100%;
  margin: 0 0 0.7rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 3.2vw, 3.4rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.role {
  width: max-content;
  max-width: 100%;
  margin: 0 0 1.7rem;
  display: grid;
  gap: 0.35rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: var(--white);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.role span:first-child {
  white-space: nowrap;
}

.role span:last-child {
  justify-self: center;
}

.landing-links,
.minimal-header nav,
.link-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
}

.landing-links {
  position: absolute;
  left: clamp(1.5rem, 4vw, 3rem);
  bottom: clamp(3.25rem, 6vw, 4.7rem);
}

.landing-links a,
.minimal-header a,
.link-stack a {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.landing-note {
  position: absolute;
  left: clamp(1.5rem, 4vw, 3rem);
  bottom: clamp(1.5rem, 4vw, 3rem);
  margin: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: var(--muted);
  font-size: 0.82rem;
}

.landing-gallery {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3rem);
  bottom: clamp(1.5rem, 4vw, 3rem);
  width: min(42vw, 620px);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: clamp(0.35rem, 0.75vw, 0.65rem);
  opacity: 0.72;
}

.landing-gallery img {
  width: auto;
  height: clamp(42px, 5.4vw, 78px);
  max-width: 118px;
  display: block;
  object-fit: contain;
  filter: grayscale(1) contrast(1.1);
  border: 1px solid rgba(247, 247, 242, 0.2);
  background: #000;
  cursor: zoom-in;
  transform: translateY(0) rotate(var(--tilt, 0deg));
  transform-origin: center;
  transition:
    filter 180ms ease,
    opacity 180ms ease,
    transform 220ms ease;
}

.landing-gallery img:nth-child(3n + 1) {
  --tilt: -1.5deg;
}

.landing-gallery img:nth-child(3n + 2) {
  --tilt: 1deg;
}

.landing-gallery img:nth-child(3n) {
  --tilt: 0.5deg;
}

.landing-gallery img:hover,
.landing-gallery img:focus-visible {
  filter: grayscale(1) contrast(1.18) brightness(1.08);
  opacity: 1;
  transform: translateY(-9px) scale(1.42) rotate(0deg);
  z-index: 2;
}

.photo-preview {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3rem);
  top: 50%;
  width: min(43vw, 580px);
  max-height: min(68vh, 560px);
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  z-index: 3;
}

.photo-preview[hidden] {
  display: none;
}

.photo-preview img {
  max-width: 100%;
  max-height: min(68vh, 560px);
  object-fit: contain;
  filter: grayscale(1) contrast(1.08);
  border: 1px solid rgba(247, 247, 242, 0.18);
  background: #000;
  box-shadow: 0 0 44px rgba(0, 0, 0, 0.72);
}

.photo-preview__close {
  position: absolute;
  top: -1.8rem;
  right: 0;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  text-transform: uppercase;
}

.dark-page {
  min-height: 100vh;
}

.minimal-header {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
}

.minimal-header > a {
  border-bottom: 0;
  font-size: 1.2rem;
}

.minimal-page {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
}

.contact-hero {
  max-width: 840px;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.contact-hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.contact-hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.link-stack {
  margin-top: 2rem;
}

.minimal-list {
  border-top: 1px solid var(--line);
}

.minimal-list article {
  display: grid;
  grid-template-columns: minmax(120px, 0.22fr) minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.35rem, 3vw, 2.1rem) 0;
  border-bottom: 1px solid var(--line);
}

.minimal-list span {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: var(--muted);
  font-size: 0.85rem;
}

.minimal-list h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  line-height: 1;
}

.minimal-list p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .home-page {
    overflow: auto;
  }

  .landing-mark {
    max-width: calc(100vw - 3rem);
  }

  .landing h1 {
    font-size: clamp(2.2rem, 10vw, 3.6rem);
  }

  .role {
    width: max-content;
    max-width: calc(100vw - 3rem);
    font-size: clamp(0.74rem, 3.1vw, 0.95rem);
    text-align: center;
  }

  .role span:first-child {
    white-space: nowrap;
  }

  .role span:last-child {
    justify-self: center;
  }

  .landing-gallery {
    width: min(48vw, 300px);
    opacity: 0.52;
  }

  .landing-gallery img {
    height: clamp(34px, 7vw, 52px);
    max-width: 84px;
  }

  .photo-preview {
    right: 1.5rem;
    top: 55%;
    width: min(52vw, 300px);
    max-height: 44vh;
  }

  .photo-preview img {
    max-height: 44vh;
  }

  .minimal-header,
  .minimal-list article {
    grid-template-columns: 1fr;
  }

  .minimal-header {
    align-items: flex-start;
  }

  .minimal-header nav {
    justify-content: flex-end;
  }

  .minimal-list article {
    display: grid;
    gap: 0.65rem;
  }
}

@media (max-width: 460px) {
  .landing {
    min-height: 100svh;
  }

  .landing-mark {
    top: 46%;
  }

  .landing-gallery {
    right: 1rem;
    bottom: 1rem;
    width: min(43vw, 170px);
    gap: 0.28rem;
    opacity: 0.42;
  }

  .landing-gallery img {
    height: 32px;
    max-width: 52px;
  }

  .photo-preview {
    right: 1rem;
    top: auto;
    bottom: 8.8rem;
    width: min(42vw, 160px);
    max-height: 28vh;
    transform: none;
  }

  .photo-preview img {
    max-height: 28vh;
  }

  .landing-links,
  .link-stack {
    flex-direction: column;
    align-items: flex-start;
  }
}
