/* ==========================================================================
   mxmfrr.design — vanilla rebuild of the Framer portfolio
   Breakpoints (Framer): ≥1400 / 1200–1399 / 1024–1199 / ≤1023
   ========================================================================== */

@font-face {
  font-family: "PP Migra";
  src: url("../fonts/PPMigra-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Suisse Intl";
  src: url("../fonts/SuisseIntl-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --bg: #eff1f1;
  --ink: #021319;
  --title: #121f24;
  --circle-line: #bdc3c4;
  --ov-bg: #141a1a;
  --ov-text: #c3d1d6;
  --ov-muted: #7a8185;
  --ov-line: rgba(255, 255, 255, 0.14);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Suisse Intl", -apple-system, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
}

body.overlay-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1, h2, h3 {
  font-weight: 400;
}

/* ---------- page ---------- */

.fullheight {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  min-height: 100svh;
  padding: 20px;
}

.id-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.id-row h2 {
  font-size: 16px;
  line-height: 1.2;
}

.id-ghost {
  font-size: 16px;
  line-height: 1.2;
  color: #fff;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 43px;
}

/* ---------- circles ---------- */

.circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border: 1px solid var(--circle-line);
  border-radius: 50%;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}

.circle:hover {
  background: rgba(2, 19, 25, 0.05);
}

/* ---------- contact expander ---------- */

.contact {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 302px;
  height: 80px;
}

.contact-side {
  position: absolute;
  left: 50%;
  top: 0;
  margin-left: -40px;
  opacity: 0;
  transform: translateX(0) scale(0.6);
  transition: transform 0.35s cubic-bezier(0.3, 0.9, 0.4, 1), opacity 0.25s ease;
  pointer-events: none;
}

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

.contact.is-open .contact-left {
  transform: translateX(-92px) scale(1);
}

.contact.is-open .contact-right {
  transform: translateX(92px) scale(1);
}

.contact-toggle {
  position: relative;
  z-index: 1;
}

.contact-toggle .contact-close {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: rotate(-45deg);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.contact-toggle .contact-label {
  transition: opacity 0.2s ease;
}

.contact.is-open .contact-label {
  opacity: 0;
}

.contact.is-open .contact-close {
  opacity: 1;
  transform: rotate(0deg);
}

/* ---------- title ---------- */

.title {
  font-family: "PP Migra", serif;
  /* fluid: scales down on phones, caps at 66.3px above ~691px */
  font-size: clamp(2.5rem, 9.6vw, 66.3px);
  line-height: 1.2;
  text-align: center;
  color: var(--title);
}

/* ---------- work overlay ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow-y: auto;
  background: var(--ov-bg);
  color: var(--ov-text);
  padding: 40px;
  transform: translate3d(0, 100%, 0);
  transition: transform 0.7s cubic-bezier(0.455, 0.03, 0.515, 0.955);
  will-change: transform;
  backface-visibility: hidden;
}

.overlay.is-visible {
  transform: translate3d(0, 0, 0);
}

/* the inner content slides an extra 60vh — layered parallax like the original */
.overlay-inner {
  transform: translate3d(0, 60vh, 0);
  transition: transform 0.7s cubic-bezier(0.455, 0.03, 0.515, 0.955);
  will-change: transform;
}

.overlay.is-visible .overlay-inner {
  transform: translate3d(0, 0, 0);
}

.overlay-close {
  position: sticky;
  top: 0;
  z-index: 11;
  margin-left: auto;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ov-line);
  border-radius: 50%;
  color: var(--ov-text);
  background: var(--ov-bg);
}

.overlay-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.work-section {
  padding: 20px 0;
  margin-bottom: 32px;
}

.work-title {
  font-family: "PP Migra", serif;
  font-size: 60px;
  line-height: 1.2;
  color: var(--ov-text);
}

/* carousel */

.carousel {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel.is-dragging {
  cursor: grabbing;
}

.carousel figure {
  flex: none;
  width: calc((100% - 20px) / 3);
}

.carousel img {
  width: 100%;
  height: 434px;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel figcaption {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ov-text);
}

/* table */

.work-table {
  margin-top: 32px;
}

.tr {
  display: grid;
  grid-template-columns: 161px 310px 1fr;
  padding: 12px 0;
  border-bottom: 1px solid var(--ov-line);
  font-size: 16px;
  line-height: 1.2;
}

.tr.th {
  font-size: 14px;
  color: var(--ov-muted);
}

.tr a {
  color: #fff;
}

.tr a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   laptop + tablet 1024–1399
   ========================================================================== */

@media (max-width: 1399px) {
  .id-row h2 {
    font-size: 14px;
  }

  .circle {
    font-size: 14px;
  }

  .work-title {
    font-size: 40px;
  }

  .carousel img {
    height: 163px;
  }

  .tr.th {
    font-size: 13px;
  }
}

/* ==========================================================================
   phone ≤1023
   ========================================================================== */

@media (max-width: 1023px) {
  .id-row h2 {
    font-size: 13px;
  }

  .circle {
    width: 70px;
    height: 70px;
    font-size: 12px;
  }

  .contact {
    width: 299px;
    height: 80px;
  }

  .contact-side {
    margin-left: -35px;
    top: 5px;
  }

  .contact.is-open .contact-left {
    transform: translateX(-82px) scale(1);
  }

  .contact.is-open .contact-right {
    transform: translateX(82px) scale(1);
  }

  .overlay {
    padding: 20px;
  }



  .carousel figure {
    width: 90%;
  }

  .carousel img {
    height: 183px;
  }

  .tr {
    grid-template-columns: 64px 1fr 1.3fr;
    gap: 8px;
  }

  .tr.th {
    font-size: 12px;
  }

  .tr span:first-child {
    font-size: 14px;
  }
}
