:root {
  --bg: #0b0b0b;
  --fg: #f2f1ec;
  --muted: #c9c8c2;
  --dim: #7a7975;
  --accent: #ff4500;
  --line: #101020;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

@media (pointer: fine) {
  *,
  *::before,
  *::after {
    cursor: none !important;
  }
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--fg);
  background: var(--bg);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}

.cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--fg);
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transform: translate(-100px, -100px);
  transition: background-color 120ms ease, opacity 120ms ease;
  mix-blend-mode: difference;
}

.cursor-dot.is-visible { opacity: 1; }
.cursor-dot.is-active { background: var(--accent); mix-blend-mode: normal; }

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

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

.page {
  width: min(720px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 80px 0 160px;
  display: flex;
  flex-direction: column;
  gap: 160px;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.brand {
  position: relative;
  height: 211px;
  --portrait-drop: 0px;
  --portrait-drop-max: 130px;
}

.portrait {
  position: absolute;
  left: 274px;
  top: -48px;
  width: 68px;
  height: 80px;
  object-fit: cover;
  border-radius: 29px;
  z-index: 1;
  transform: translateY(var(--portrait-drop));
  transition: transform 80ms linear;
  will-change: transform;
}

.wordmark {
  position: absolute;
  left: 0;
  top: 42px;
  width: 709px;
  max-width: none;
  height: auto;
  z-index: 2;
}

.about {
  display: flex;
  flex-direction: column;
  gap: 40px;
  font-size: 22px;
  line-height: 32px;
  font-weight: 500;
}

p,
h2,
h3 {
  margin: 0;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section h2 {
  color: var(--dim);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
}

.experience {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 17px;
  line-height: 1.3;
}

.experience li::before {
  content: "·";
  margin-right: 0;
  font-weight: 400;
}

.experience b {
  font-weight: 700;
}

.experience span {
  color: var(--dim);
  font-weight: 400;
}

.project {
  align-items: center;
  gap: 32px;
}

.project > h2,
.project-copy {
  width: 720px;
  max-width: 100%;
  align-self: center;
}

.project-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-copy h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
}

.project-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 31px;
  font-weight: 400;
}

.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--dim);
  font-size: 11px;
  line-height: 16.5px;
  text-transform: uppercase;
  letter-spacing: 0.66px;
  font-weight: 400;
}

.meta a,
.meta b {
  color: var(--accent);
  font-weight: 500;
}

.media,
.media-grid,
.old-stack {
  width: 100vw;
  max-width: none;
  align-self: center;
}

.media img,
.media-grid img,
.old-stack img {
  border-radius: 8px;
  cursor: zoom-in;
}

.dion-hero {
  width: min(1172px, calc(100vw - 32px));
  height: 674px;
  overflow: hidden;
  border-radius: 14px;
}

.dion-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.media-grid.four {
  width: 720px;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 352px);
  gap: 16px;
  transform: none;
  margin-left: 0;
}

.media-grid.four img {
  width: 352px;
  height: 352px;
  object-fit: cover;
}

.media-xl {
  width: min(1208px, calc(100vw - 32px));
}

.media-xl img {
  width: 100%;
  height: auto;
}

.media-grid.union {
  width: min(1208px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.media-grid.union img {
  width: 100%;
  height: auto;
}

.panorama {
  width: min(1685px, calc(100vw - 32px));
}

.panorama img {
  width: 100%;
  height: auto;
}

.monopoly {
  position: relative;
  width: min(1120px, calc(100vw - 32px));
  height: 579px;
  align-self: center;
}

.circle {
  position: absolute;
  border-radius: 999px;
  object-fit: cover;
  cursor: zoom-in;
}

.circle-main {
  width: 578px;
  height: 579px;
  left: 98px;
  top: 0;
}

.circle-side {
  width: 431px;
  height: 431px;
  left: 537px;
  top: 74px;
}

.devim {
  position: relative;
}

.media-grid.devim-cards {
  width: min(1240px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.media-grid.devim-cards img {
  width: 100%;
  height: auto;
}

.layered {
  position: relative;
  width: min(854px, calc(100vw - 32px));
  height: 454px;
}

.layered img {
  position: absolute;
  object-fit: cover;
}

.layer-back {
  left: 0;
  top: 0;
  width: 100%;
  height: 422px;
}

.layer-front {
  left: 11.3%;
  top: 82px;
  width: 77.4%;
  height: 372px;
  box-shadow: 0 4px 36px 8px rgba(0, 0, 0, 0.25);
}

.old-wide {
  width: min(1074px, calc(100vw - 32px));
}

.old-wide img,
.main-old img {
  width: 100%;
  height: auto;
}

.old-stack {
  width: min(834px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.main-old {
  width: min(1016px, calc(100vw - 32px));
}

.side-meta {
  position: fixed;
  left: calc(50% - 515px);
  top: 56px;
  width: 123px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 8px;
  color: var(--fg);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  text-transform: uppercase;
  mix-blend-mode: difference;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.side-meta.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.side-meta a {
  margin-top: 8px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 94vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(242, 241, 236, 0.28);
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.72);
  color: var(--fg);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .side-meta { display: none; }
}

@media (max-width: 760px) {
  .page {
    width: calc(100vw - 32px);
    padding-top: 64px;
    gap: 96px;
  }

  .brand {
    height: 150px;
    --portrait-drop-max: 88px;
  }

  .portrait {
    top: -28px;
    width: 56px;
    height: 64px;
    border-radius: 22px;
  }

  .wordmark {
    position: absolute;
    left: 0;
    top: 48px;
    width: 709px;
    max-width: none;
    height: auto;
  }

  .about {
    font-size: 18px;
    line-height: 28px;
  }

  .experience {
    font-size: 14px;
    gap: 14px;
  }

  .project-copy h3 {
    font-size: 18px;
  }

  .project-copy p {
    font-size: 14px;
    line-height: 24px;
  }

  .media-grid.four,
  .media-grid.union,
  .media-grid.devim-cards {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .media-grid.four img {
    width: 100%;
    height: auto;
  }

  .dion-hero {
    height: auto;
  }

  .monopoly {
    height: auto;
    display: grid;
    gap: 16px;
  }

  .circle {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .layered {
    height: auto;
  }

  .layered img {
    position: static;
    width: 100%;
    height: auto;
  }

  .layer-front {
    margin-top: 16px;
  }
}
