* {
  box-sizing: border-box;
}

:root {
  --page: #f4f3ef;
  --panel: #fbfaf7;
  --text: #171717;
  --muted: #65645f;
  --line: #d6d3cc;
  --accent: #477d68;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  overflow-x: hidden;
}

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

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  pointer-events: none;
}

.name {
  font-size: 20px;
  font-weight: 600;
  pointer-events: auto;
}

.menu-button {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.93);
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-button span {
  width: 28px;
  height: 2px;
  background: var(--text);
  transition: 0.25s;
}

.menu-button.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button.open span:nth-child(2) {
  opacity: 0;
}

.menu-button.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu {
  position: fixed;
  z-index: 25;
  top: 0;
  right: 0;
  width: min(360px, 100%);
  height: 100vh;
  padding: 120px 44px;
  background: rgba(251, 250, 247, 0.99);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.menu.open {
  transform: translateX(0);
}

.menu a {
  font-size: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.menu a:hover {
  color: var(--accent);
}

.socials {
  position: fixed;
  z-index: 20;
  left: 28px;
  top: 44%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.socials a {
  width: 18px;
  height: 18px;
}

.socials svg {
  width: 100%;
  height: 100%;
  fill: var(--text);
}

.social-line {
  width: 1px;
  height: 56px;
  background: var(--text);
  margin-top: 3px;
}

.follow-text {
  margin-top: 4px;
  font-size: 12px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 50% 50%;
}

.intro-panel {
  min-height: 100vh;
  background: var(--panel);
  display: flex;
  align-items: center;
  padding: 120px 85px 80px 11.5vw;
  border-right: 1px solid var(--line);
}

.intro-content {
  max-width: 520px;
}

.intro-content h1 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(34px, 3vw, 50px);
}

.intro-content h2 {
  margin: 0;
  font-size: clamp(25px, 2.4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 7px;
  background: var(--text);
  vertical-align: -0.12em;
  animation: blink 0.9s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.intro-content p {
  margin: 48px 0 0;
  max-width: 470px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.buttons {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 38px;
}

.button {
  min-width: 132px;
  padding: 10px 19px;
  text-align: center;
  font-size: 15px;
  transition: 0.2s ease;
}

.button.outline {
  border: 2px solid var(--text);
}

.button.outline:hover {
  background: var(--text);
  color: white;
}

.button.filled {
  background: var(--text);
  color: white;
  border: 2px solid var(--text);
}

.button.filled:hover {
  background: transparent;
  color: var(--text);
}

.project-image {
  min-height: 100vh;
  position: relative;
  display: block;
  overflow: hidden;
  background: #ddd;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition:
    filter 0.45s ease,
    transform 0.45s ease;
}

.project-image:hover img {
  filter: blur(7px) brightness(0.72);
  transform: scale(1.035);
}

.image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: rgba(20, 20, 20, 0.08);
  opacity: 0;
  transition: opacity 0.35s ease;
  text-align: center;
  padding: 30px;
  color: white;
}

.project-image:hover .image-overlay,
.card-image:hover .image-overlay {
  opacity: 1;
}

.image-overlay span {
  font-size: 28px;
  font-weight: 600;
}

.image-overlay strong {
  font-size: 15px;
  border: 1px solid white;
  padding: 9px 14px;
  font-weight: 400;
}

/* Portfolio */

.portfolio-body {
  min-height: 100vh;
}

.portfolio-page {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  padding: 130px 0 70px;
}

.portfolio-heading {
  padding-bottom: 45px;
  border-bottom: 1px solid var(--line);
}

.portfolio-heading > p {
  margin: 0 0 10px;
  color: #8a8881;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.portfolio-heading h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 400;
}

.portfolio-heading span {
  color: var(--muted);
  font-size: 17px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding-top: 38px;
}

.project-card {
  border: 1px solid var(--line);
  background: var(--panel);
  min-height: 430px;
}

.card-image {
  position: relative;
  display: block;
  height: 280px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    filter 0.4s ease,
    transform 0.4s ease;
}

.card-image:hover img {
  filter: blur(6px) brightness(0.62);
  transform: scale(1.035);
}

.card-content {
  padding: 24px;
}

.number {
  margin: 0 0 10px;
  color: #8c8a83;
  font-size: 12px;
}

.card-content h2 {
  margin: 0 0 12px;
  font-size: 25px;
}

.card-content > p:not(.number) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.card-links {
  margin-top: 24px;
  display: flex;
  gap: 22px;
}

.card-links a {
  border-bottom: 1px solid #aaa79f;
  padding-bottom: 3px;
}

.card-links a:hover {
  border-color: var(--text);
}

.private-project {
  display: inline-block;
  margin-top: 24px;
  color: #77746d;
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 8px 10px;
}

.text-card {
  display: flex;
  flex-direction: column;
}

.joggler-art,
.coming-art {
  height: 280px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #e8e7e2, #cbc9c0);
}

.joggler-art {
  display: grid;
  place-items: center;
}

.joggler-screen {
  width: 230px;
  height: 150px;
  padding: 14px;
  border: 8px solid #262626;
  border-radius: 10px;
  background: #eff4f1;
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

.joggler-top {
  height: 8px;
  width: 74px;
  margin-bottom: 12px;
  background: #657a70;
  border-radius: 4px;
}

.joggler-widget {
  height: 40px;
  flex: 1;
  background: white;
  border: 1px solid #d8ded9;
  border-radius: 6px;
}

.joggler-widget.wide {
  height: 35px;
  margin-bottom: 8px;
}

.joggler-row {
  display: flex;
  gap: 8px;
}

.joggler-nav {
  height: 5px;
  width: 75px;
  margin: 11px auto 0;
  background: #aeb7b1;
  border-radius: 10px;
}

.coming-art {
  display: grid;
  place-content: center;
}

.coming-art span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 105px;
  color: #aaa79f;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    min-height: 78vh;
    padding: 120px 48px 70px 80px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-image {
    min-height: 65vh;
  }

  .socials {
    left: 20px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 0 18px;
  }

  .name {
    font-size: 18px;
  }

  .socials {
    display: none;
  }

  .intro-panel {
    padding: 110px 24px 60px;
  }

  .intro-content p {
    margin-top: 34px;
  }

  .buttons {
    gap: 12px;
  }

  .button {
    width: 100%;
  }

  .project-image {
    min-height: 52vh;
  }

  .project-image .image-overlay {
    opacity: 1;
    justify-content: flex-end;
    background: linear-gradient(transparent, rgba(0,0,0,0.62));
    padding-bottom: 38px;
  }

  .project-image img {
    filter: brightness(0.82);
  }

  .portfolio-page {
    width: min(100% - 30px, 1180px);
    padding-top: 110px;
  }

  .portfolio-heading h1 {
    font-size: 54px;
  }
}
