@import url("https://fonts.googleapis.com/css2?family=Alegreya+Sans+SC:wght@400;500;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap");

* {
  box-sizing: border-box;
}

:root {
  --black: #0b0b0b;
  --deep: #111111;
  --white: #f7f7f4;
  --soft-white: #e9e9e4;
  --warm-white: #f3ead7;
  --warm-white-soft: rgba(243, 234, 215, 0.4);
  --muted: #c5c5bd;
  --line: rgba(247, 247, 244, 0.42);
  --mint: #8df0bc;
  --header-height: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  text-align: center;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  padding: 10px clamp(16px, 3vw, 38px);
  color: #151515;
  background: rgba(247, 247, 244, 0);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 46px);
  font-family: "Alegreya Sans SC", "Poppins", Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
}

.site-nav a {
  border-bottom: 1px solid transparent;
  padding: 7px 0;
  color: #151515;
  text-decoration: none;
}

.site-nav a:hover {
  border-bottom-color: #151515;
}

.itch-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px !important;
  border: 1px solid #151515;
  border-radius: 8px;
  background: var(--black);
  color: var(--white) !important;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.itch-link:hover {
  background: var(--white);
  color: var(--black) !important;
}


.nav-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  gap: 5px;
  border: 1px solid #151515;
  border-radius: 8px;
  background: rgba(247, 247, 244, 0.42);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  background: #151515;
}

.hero {
  --hero-parallax: 0px;
  position: relative;
   
  min-height: 48vh;
  display: grid;
  place-items: start center;
  padding: calc(var(--header-height) + 26px) 20px 250px;
  overflow: hidden;
  background: var(--black);
  color: var(--black);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -8% 0 0;
  background:
    linear-gradient(rgba(247, 247, 244, 0.6), rgba(247, 247, 244, 0.6)),
    url("assets/hero-background.jpg") center top / 100% auto no-repeat;
  transform: translateY(var(--hero-parallax));
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 210px;
  background: var(--black);
  clip-path: polygon(
    0 28%,
    5% 38%,
    10% 48%,
    15% 57%,
    20% 65%,
    25% 72%,
    30% 78%,
    35% 83%,
    40% 87%,
    45% 89%,
    50% 90%,
    55% 89%,
    60% 87%,
    65% 83%,
    70% 78%,
    75% 72%,
    80% 65%,
    85% 57%,
    90% 48%,
    95% 38%,
    100% 28%,
    100% 100%,
    0 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
}


.logo-wrap {
  position: relative;
  width: clamp(86px, 7.5vw, 116px);
  height: clamp(86px, 7.5vw, 116px);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}


.logo-wrap::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 4px solid rgba(141, 240, 188, 0.85);
  border-radius: 50%;
  animation: logo-breathe 3.8s cubic-bezier(0.37, 0, 0.63, 1) infinite;
  pointer-events: none;
}

.logo-wrap::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 4px solid rgba(141, 240, 188, 0.8);
  border-radius: 50%;
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.logo-wrap.ripple::after {
  animation: logo-ripple 1.7s ease-out forwards;
}


.logo {
  position: relative;
  z-index: 1;
  width: 74%;
  height: 74%;
  display: block;
  object-fit: contain;
}

@keyframes logo-breathe {
  0%,
  100% {
    transform: scale(1.04);
    opacity: 0.95;
  }

  50% {
    transform: scale(1.16);
    opacity: 0.5;
  }
}

@keyframes logo-ripple {
  0% {
    transform: scale(1.04);
    opacity: 0.85;
  }

  45% {
    opacity: 0.55;
  }

  75% {
    opacity: 0.22;
  }

  100% {
    transform: scale(1.42);
    opacity: 0;
  }
}


.image-fallback {
  display: grid !important;
  place-items: center;
  color: var(--black);
  font-family: "Alegreya Sans SC", "Poppins", Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-wrap .image-fallback {
  width: 100%;
  height: 100%;
  font-size: 2rem;
}

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

h1 {
  margin-bottom: 24px;
  color: var(--black);
  font-family: "Alegreya Sans SC", "Poppins", Arial, Helvetica, sans-serif;
  font-size: clamp(2.35rem, 4vw, 4.15rem);
  font-weight: 400;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: none;

  text-shadow:
    0 0 2px rgba(243, 234, 225, 0.98),
    0 0 6px rgba(243, 234, 225, 0.95),
    0 0 12px rgba(243, 234, 225, 0.82);
}

.hero p {
  margin: 0;
  color: #222;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-shadow:
    0 0 2px rgba(243, 234, 235, 0.98),
    0 0 5px rgba(243, 234, 235, 0.88),
    0 0 9px rgba(243, 234, 235, 0.68);
}

.section-pad {
  padding-right: max(18px, 4vw);
  padding-left: max(18px, 4vw);
}

.intro {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-top: 70px;
  padding-bottom: 76px;
}

.intro-copy {
  width: min(1120px, 100%);
  display: grid;
  gap: 18px;
  margin: 0 auto;
}

.intro p {
  margin-bottom: 0;
  color: var(--soft-white);
  font-size: clamp(1.02rem, 1.08vw, 1.16rem);
  font-weight: 400;
  line-height: 1.52;
}

.intro-visual {
  width: min(560px, 92%);
  aspect-ratio: 16 / 7;
  display: grid;
  place-items: center;
  margin: 22px auto 24px;
  background: transparent;
}

.intro-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.skill-buttons {
  width: min(290px, 100%);
  display: grid;
  gap: 24px;
  margin: 0 auto;
}

.skill-buttons a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--soft-white);
  border-radius: 11px;
  color: var(--white);
  font-family: "Alegreya Sans SC", "Poppins", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, transform 200ms ease;
}

.skill-buttons a:hover {
  background: var(--white);
  color: var(--black);
  transform: scale(1.035);
}

.projects {
  padding-top: 26px;
  padding-bottom: 90px;
}

.section-heading {
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
  margin: 0 auto 72px;
}

.section-heading span {
  height: 1px;
  background: var(--line);
}

.section-heading h2 {
  margin: 0;
  font-family: "Alegreya Sans SC", "Poppins", Arial, Helvetica, sans-serif;
  font-size: clamp(1.85rem, 2.8vw, 2.45rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.project-grid {
  width: min(1320px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 82px clamp(36px, 4.5vw, 76px);
  margin: 0 auto;
}

/* line between PROJECTS and project cards */
.project-grid::before {
  content: "";
  grid-column: 1 / -1;
  width: min(980px, 82%);
  height: 1px;
  justify-self: center;
  margin: -20px 0 34px;
  background: var(--line);
}
/* end of that line */

.project-card {
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
}

/* this is just for scaling the cards on desktop */
.project-card {
  transform-origin: center center;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.project-card:hover {
  border-color: rgba(247, 247, 244, 0.62);
  /* box shadow here? nah */
}

@media (min-width: 981px) {
  .project-card:hover {
    transform: scale(1.045);
  }
}

/* until right here the card scale up */

.project-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  margin-bottom: 26px;
  overflow: hidden;
  background: var(--deep);
  text-decoration: none;
}

.project-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.project-media:hover img {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.project-media .image-fallback {
  width: 100%;
  height: 100%;
  padding: 22px;
  border: 1px solid rgba(247, 247, 244, 0.14);
  background: linear-gradient(145deg, #171717, #101010);
  color: var(--muted);
  font-size: 1rem;
}

.project-card h3 {
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--white);
  font-family: "Alegreya Sans SC", "Poppins", Arial, Helvetica, sans-serif;
  font-size: clamp(1.3rem, 1.7vw, 1.65rem);
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.18;
  text-transform: none;
}

.project-card p {
  min-height: 3.9em;
  margin-bottom: 24px;
  color: var(--soft-white);
  font-size: 0.95rem;
  line-height: 1.55;
}

.read-more {
  min-width: 112px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--white);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-family: "Alegreya Sans SC", "Poppins", Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.read-more:hover {
  background: transparent;
  color: var(--white);
}

.about-section {
  background: var(--white);
  color: var(--black);
  padding: 110px max(22px, 6vw) 130px;
  text-align: left;
}

.about-inner {
  width: min(1220px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(56px, 8vw, 140px);
  margin: 0 auto;
  align-items: start;
}

.about-copy h2 {
  margin-bottom: 36px;
  font-family: "Alegreya Sans SC", "Poppins", Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 500;
}

.about-copy p {
  max-width: 780px;
  margin-bottom: 24px;
  color: #141414;
  font-size: 1rem;
  line-height: 1.75;
}

.about-side img,
.about-side .image-fallback {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  object-fit: cover;
  background: #e2e2dc;
}

.about-side h3 {
  margin-bottom: 18px;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
}

.about-side a {
  display: block;
  width: max-content;
  margin-bottom: 8px;
  color: #141414;
}

.contact-heading {
  margin: 20px 0 14px;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
}

.contact-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-icons a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(11, 11, 11, 0.32);
  border-radius: 50%;
  color: #141414;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.contact-icons a:hover {
  background: #141414;
  color: var(--white);
  transform: scale(1.06);
}

.contact-icons svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.contact-icons a[aria-label="LinkedIn"] svg {
  fill: currentColor;
  stroke: none;
}

.js .fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.js .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.top-button {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(243, 234, 215, 0.36);
  border-radius: 50%;
  background: rgba(11, 11, 11, 0.72);
  color: var(--warm-white);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease, background 160ms ease;
  cursor: pointer;
}

.top-button.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.top-button:hover {
  background: rgba(243, 234, 215, 0.92);
  color: var(--black);
}

.top-button span {
  width: 14px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(4px) rotate(45deg);
}


@media (max-width: 980px) {
  .site-header {
    justify-content: flex-end;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    inset: var(--header-height) 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 18px 22px 26px;
    background: var(--white);
    border-top: 1px solid #deded8;
    box-shadow: 0 20px 36px rgba(11, 11, 11, 0.18);
  }

  body.menu-open .site-nav {
    display: grid;
  }

  .site-nav a {
    width: 100%;
    padding: 14px 0;
    text-align: left;
  }

  .itch-link {
    width: max-content !important;
    margin-top: 12px;
    padding: 0 18px !important;
    text-align: center !important;
  }

  .hero {
    min-height: 46vh;
    padding-bottom: 130px;
  }

  .hero::after {
    height: 170px;
    clip-path: polygon(
      0 30%,
      10% 49%,
      20% 65%,
      30% 77%,
      40% 85%,
      50% 88%,
      60% 85%,
      70% 77%,
      80% 65%,
      90% 49%,
      100% 30%,
      100% 100%,
      0 100%
    );
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px 34px;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-side {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 58px;
  }
  
  .nav-toggle {
    width: 34px;
    height: 34px;
    gap: 4px;
    border-radius: 6px;
  }
  
  .nav-toggle span {
    width: 16px;
    height: 1.5px;
  }

  .site-header {
    min-height: var(--header-height);
  }

  .hero {
    min-height: 50vh;
    padding-top: calc(var(--header-height) + 22px);
    padding-bottom: 98px;
  }

  .hero::before {
    inset: -4% 0 auto 0;
    height: calc(100% - 34px);
    background:
      linear-gradient(rgba(247, 247, 244, 0.6), rgba(247, 247, 244, 0.6)),
      url("assets/hero-background.jpg") center top / cover no-repeat;
    transform: none;
  }

  .hero::after {
    height: 92px;
    clip-path: polygon(
      0 42%,
      10% 51%,
      20% 59%,
      30% 65%,
      40% 69%,
      50% 71%,
      60% 69%,
      70% 65%,
      80% 59%,
      90% 51%,
      100% 42%,
      100% 100%,
      0 100%
    );
  }


  h1 {
    margin-bottom: 18px;
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .intro {
    padding-top: 70px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 42px;
  }

  .section-heading span {
    width: 68%;
    margin: 0 auto;
  }

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

  .project-card {
    display: grid;
    opacity: 1;
    visibility: visible;
    min-height: 0;
  }
  
  .project-media {
    display: block;
    width: 100%;
    min-height: 220px;
  }
  
  .project-media img {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  
  .project-card h3,
  .project-card p,
  .project-card .read-more {
    opacity: 1;
    visibility: visible;
  }
  
  .project-card p,
  .project-card h3 {
    min-height: 0;
  }


  .about-section {
    padding: 74px 22px 90px;
  }

  .about-copy p {
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  #projects.fade-in,
  #projects.fade-in.visible,
  .project-card,
  .project-media,
  .project-media img,
  .project-card h3,
  .project-card p,
  .project-card .read-more {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .project-card {
    display: grid !important;
  }

  .project-media {
    display: block !important;
    min-height: 220px;
  }

  .project-card h3,
  .project-card p {
    min-height: 0 !important;
  }
}

/* Skill pages */
/* Skill pages BELOW */
/* Skill pages like ART, CARTOGRAPHY AND ARCHITECTURE ----------------------------------------------------------------------------------- */
/* Skill pages BELOW */
/* Skill pages */

.skill-page {
  background: var(--black);
  color: var(--white);
}

.skill-main {
  width: min(1320px, calc(100% - 44px));
  margin: 0 auto;
  padding: 150px 0 110px;
  text-align: left;
}

.skill-intro {
  max-width: 1180px;
}

.skill-intro h1 {
  margin-bottom: 34px;
  color: var(--white);
  font-family: "Alegreya Sans SC", "Poppins", Arial, Helvetica, sans-serif;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: none;
}

.skill-copy {
  max-width: 1180px;
  display: grid;
  gap: 0;
}

.skill-copy p,
.skill-list,
.skill-list li {
  color: var(--soft-white);
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  font-weight: 400;
  line-height: 1.72;
}

.skill-copy p {
  margin: 0;
}

.skill-list {
  margin-top: 72px;
}

.skill-list p {
  margin: 0 0 22px;
  font-weight: 700;
}

.skill-list ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 34px;
}

.art-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 150px;
}

.art-gallery a {
  display: block;
  overflow: hidden;
  background: var(--deep);
}

.art-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.art-gallery a:hover img {
  transform: scale(1.035);
  filter: brightness(1.08);
}

@media (max-width: 980px) {
  .skill-main {
    padding-top: 120px;
  }

  .art-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 100px;
  }
}

@media (max-width: 640px) {
  .skill-main {
    width: min(100% - 32px, 1320px);
    padding-top: 96px;
    padding-bottom: 80px;
  }

  .skill-list {
    margin-top: 48px;
  }

  .art-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 72px;
  }
}

/* Skill page nav */

.skill-page .site-nav a {
  color: var(--white);
}

.skill-page .site-nav a:hover {
  border-bottom-color: var(--white);
}

.skill-page .itch-link {
  border-color: var(--white);
}

.home-button {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 86px;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(11, 11, 11, 0.28);
  border-radius: 50%;
  background: rgba(247, 247, 244, 0.92);
  color: var(--black);
  box-shadow: 0 12px 30px rgba(11, 11, 11, 0.16);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.home-button:hover {
  background: var(--black);
  color: var(--white);
  transform: scale(1.05);
}

.home-button svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@media (max-width: 640px) {
  .home-button {
    right: 16px;
    bottom: 74px;
    width: 52px;
    height: 52px;
  }

  .home-button svg {
    width: 27px;
    height: 27px;
  }
}

/* Make image alt text less ugly if images are missing */
.art-gallery a {
  color: var(--soft-white);
  text-decoration: none;
}

/* Lightbox for opening up images */

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

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

.lightbox-image {
  max-width: min(94vw, 1400px);
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(247, 247, 244, 0.4);
  border-radius: 50%;
  background: rgba(11, 11, 11, 0.72);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--white);
  color: var(--black);
}

body.lightbox-open {
  overflow: hidden;
}









