@import url("https://fonts.googleapis.com/css2?family=Agdasima:wght@400;700&family=Manrope:wght@200..800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg: #fffdf1;
  --text: #000000;
  --grid: rgba(0, 0, 0, 0.08);
  --menu-bg: #fffdf1;
  --menu-text: #000000;
  --switch-bg: #e9e6d9;
  --switch-knob: #111111;
}
body.dark {
  --bg: #101114;
  --text: #f2f2f2;
  --grid: rgba(255, 255, 255, 0.08);
  --menu-bg: rgba(255, 255, 255, 0.1);
  --menu-text: #f2f2f2;
  --switch-bg: #2a2c33;
  --switch-knob: #f2f2f2;
}
html,
body {
  width: 100%;
  height: auto;
  font-family: "Anton", sans-serif;
  position: relative;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  overflow-y: auto;
} /* HERO */
.hero {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: var(--text);
} /* GRID BACKGROUND */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px);
  background-size: 120px 100%;
  pointer-events: none;
  z-index: 0;
}
body > * {
  position: relative;
  z-index: 1;
} /* TOP LEFT TEXT */
.top-left {
  position: fixed;
  top: 24px;
  left: 24px;
  font-size: 14px;
  font-family: "Work Sans", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 1px;
  color: var(--text);
  z-index: 0;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease;
} /* MENU */
.top-left img {
  width: 72px;
  height: auto;
  display: block;
}
.top-left .logo-dark {
  display: none;
}
body.dark .top-left .logo-light {
  display: none;
}
body.dark .top-left .logo-dark {
  display: block;
}
.menu {
  position: fixed;
  top: 40px;
  right: 40px;
  background: var(--menu-bg);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--menu-text);
  z-index: 10001;
  cursor: pointer;
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    box-shadow 0.3s ease;
}
.menu p {
  margin: 0;
}
.menu-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background-color: #1a1a1a;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
  z-index: 10000;
}
.menu-overlay canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.menu-links {
  position: relative;
  width: min(50%, 560px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2em;
  padding: 2rem;
  z-index: 1;
}
.menu-item a {
  color: #4d4d4d;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  background:
    linear-gradient(120deg, #ffffff 0%, #c9fff1 35%, #ffd6ff 65%, #ffffff 100%)
      no-repeat,
    #4d4d4d;
  background-size: 0% 100%;
  background-position: 0% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: #4d4d4d;
  position: relative;
  display: inline-block;
  padding-bottom: 0.08em;
  text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  transition:
    color 0.25s ease,
    background-size 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    letter-spacing 0.4s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    text-shadow 0.45s ease;
}
.menu-item a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.08em;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.9),
    rgba(201, 255, 241, 0.9),
    rgba(255, 214, 255, 0.9),
    rgba(255, 255, 255, 0.9),
    transparent
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu-item a::before {
  content: "";
  position: absolute;
  inset: -0.2em -0.25em -0.3em -0.25em;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(255, 255, 255, 0.08),
    transparent 55%
  );
  opacity: 0;
  filter: blur(6px);
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: -1;
}
.menu-item a:hover {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background-size: 100% 100%;
  letter-spacing: 0.12em;
  transform: translateX(12px) skewX(-2deg);
  text-shadow:
    0 8px 22px rgba(255, 255, 255, 0.28),
    0 2px 6px rgba(255, 255, 255, 0.2);
}
.menu-item a:hover::after {
  transform: scaleX(1);
}
.menu-item a:hover::before {
  opacity: 1;
}
.menu-socials {
  position: absolute;
  right: 2.5em;
  bottom: 2em;
  display: grid;
  grid-auto-flow: column;
  gap: 2em;
  font-family: "Work Sans", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 1;
}
.menu-social-link {
  color: #ffffff;
  text-decoration: none;
  position: relative;
  display: inline-block;
  font-family: "Work Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.35s ease,
    text-shadow 0.35s ease,
    letter-spacing 0.35s ease;
}

@media (max-width: 720px) {
  .menu-social-link {
    margin-left: 0;
  }
  .menu-socials {
    right: 0.6em;
  }
}
.menu-social-link::before {
  content: "";
  position: absolute;
  inset: -0.35em -0.5em;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.16),
    transparent 60%
  );
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}
.menu-social-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2em;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 255, 241, 0.9),
    rgba(255, 214, 255, 0.9),
    rgba(255, 255, 255, 0.9),
    transparent
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu-social-link:hover {
  color: #ffffff;
  transform: translateY(-3px);
  letter-spacing: 0.3em;
  text-shadow:
    0 10px 24px rgba(255, 255, 255, 0.28),
    0 2px 6px rgba(255, 255, 255, 0.2);
}
.menu-social-link:hover::before {
  opacity: 1;
}
.menu-social-link:hover::after {
  transform: scaleX(1);
}
/* MAIN CONTENT */
.content {
  position: absolute;
  left: 15%;
  bottom: 13%;
  text-align: left;
  color: var(--text);
} /* UX UI */
.big {
  display: flex;
  gap: 40px;
}
.big span {
  font-size: 190px;
  line-height: 0.9;
  color: var(--text);
} /* BRAND (same font, different feel) */
.brand {
  position: absolute;
  top: 80px;
  left: 350px;
  font-size: 90px;
  font-family: "Pacifico", cursive;
  opacity: 0.85;
  transform: skew(-8deg); /* gives that handwritten energy */
  pointer-events: none;
} /* DESIGNER */
.designer {
  margin-top: 40px;
  font-size: 220px;
  line-height: 0.9;
  color: var(--text);
} /* SERVICES */
.services {
  position: absolute;
  top: 140px;
  right: 12%;
  font-size: 14px;
  font-family: "Work Sans", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.6px;
  color: var(--text);
}
/* THEME SWITCH */
.theme-switch {
  position: fixed;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  z-index: 10002;
}
.theme-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.6);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.theme-btn:hover {
  transform: translateY(-1px);
}
body.dark .theme-switch {
  background: rgba(255, 255, 255, 0.08);
}
body.dark .theme-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #f2f2f2;
}
.theme-btn.active {
  background: rgba(0, 0, 0, 0.15);
}
body.dark .theme-btn.active {
  background: rgba(255, 255, 255, 0.25);
}
body.dark .theme-btn[data-theme="light"]:not(.active) {
  background: transparent;
}
body:not(.dark) .theme-btn[data-theme="dark"]:not(.active) {
  background: transparent;
}
.theme-icon {
  font-size: 12px;
  line-height: 1;
}

/* PRELOADER (match work.html) */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  background-color: #000;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  will-change: clip-path;
  overflow: hidden;
  z-index: 10000;
}
.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 7px;
  background-color: #fff;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}
.preloader-images {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25rem;
  height: 25rem;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  will-change: clip-path;
  overflow: hidden;
}
.preloader-images .img {
  position: absolute;
  width: 100%;
  height: 100%;
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  will-change: clip-path;
  overflow: hidden;
}
.preloader-images .img img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  will-change: transform;
}
.preloader-copy {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  color: #fff;
  font-family: "Manrope", sans-serif;
  text-transform: uppercase;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 550;
}
.preloader-header {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(60svh);
  transform-origin: top;
  will-change: transform;
  z-index: 10001;
}
.preloader-header a {
  text-decoration: none;
  text-transform: uppercase;
  color: #fff;
  font-family: "Agdasima", sans-serif;
  font-size: 7.5rem;
  font-weight: 600;
  line-height: 0.9;
  display: block;
}
.preloader-header a .char,
.preloader-copy p .line {
  position: relative;
  display: inline-block;
  transform: translateY(0);
  will-change: transform;
}

/* Hide UI elements while preloader is visible */
body.preloading .menu,
body.preloading .theme-switch,
body.preloading .card-meta-fixed,
body.preloading .card-topright {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 1000px) {
  .hero {
    min-height: 100vh;
  }
  .preloader-images {
    top: 35%;
    width: 10rem;
    height: 10rem;
  }
  .preloader-copy {
    width: 80%;
  }
  .preloader-header {
    transform: translateY(50svh);
  }
  .preloader-header a {
    font-size: 4rem;
  }
}

/* ABOUT ME */
.main-hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-hero-layout {
  text-align: center;
  margin-top: 30px; /* lowers the "About Me" block */
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.main-hero-sub-heading {
  font-size: 16px;
  font-family: "Work Sans", sans-serif;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.main-hero-heading {
  font-size: 54px;
  line-height: 1.05;
}
.main-hero-heading .word {
  display: inline-block;
  will-change: transform, opacity;
}
body.is-scrolled .top-left {
  background: transparent;
  backdrop-filter: none;
}
body.is-scrolled .menu {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: none;
  color: #000000;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
body.dark.is-scrolled .menu {
  color: #ffffff;
}
.card-img img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: scale(2);
  filter: blur(12px);
}
.card-title h1 {
  font-size: 5.2rem;
  font-weight: 100;
  letter-spacing: -0.05rem;
  line-height: 1.05;
  color: #ffffff;
  position: relative;
  z-index: 8;
}
.selected-word {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  letter-spacing: 0.5px;
}
.card-description p {
  font-size: 0.95rem;
  font-weight: 100;
  font-family: "Work Sans", sans-serif;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
}
.cards {
  position: relative;
  width: 100vw;
  display: flex;
  flex-direction: column;
  gap: 25svh;
}
.outro {
  height: 100svh;
  padding: 4em 2em;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  color: #efe9df;
}
.outro-inner {
  text-align: center;
  width: min(1200px, 92vw);
}
.outro h1,
.outro h2 {
  text-align: center;
}
.outro h2 {
  font-size: clamp(3rem, 8vw, 8rem);
  letter-spacing: 0.05em;
}
.outro h1 {
  font-size: clamp(4rem, 12vw, 12rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
}
.outro-kicker {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  font-family: "Work Sans", sans-serif;
  color: rgba(239, 233, 223, 0.7);
}
.outro-email {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 5vw, 4rem);
  font-family: "Pacifico", cursive;
  color: rgba(239, 233, 223, 0.9);
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}
.outro-email a {
  color: inherit;
  text-decoration: none;
}
.outro-links {
  position: absolute;
  right: 2.5em;
  bottom: 2em;
  display: grid;
  grid-auto-flow: column;
  gap: 2.5em;
  font-family: "Work Sans", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.outro-link {
  color: rgba(239, 233, 223, 0.75);
  text-decoration: none;
  position: relative;
  display: inline-block;
  letter-spacing: 0.2em;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.35s ease,
    text-shadow 0.35s ease,
    letter-spacing 0.35s ease;
}
.outro-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2em;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 255, 241, 0.9),
    rgba(255, 214, 255, 0.9),
    rgba(255, 255, 255, 0.9),
    transparent
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.outro-link:hover {
  color: #ffffff;
  transform: translateY(-3px);
  letter-spacing: 0.3em;
  text-shadow:
    0 10px 24px rgba(255, 255, 255, 0.28),
    0 2px 6px rgba(255, 255, 255, 0.2);
}
.outro-link:hover::after {
  transform: scaleX(1);
}
body:not(.dark) .outro-link.instagram {
  color: #000000;
}
body:not(.dark) .outro,
body:not(.dark) .outro h1,
body:not(.dark) .outro h2,
body:not(.dark) .outro-kicker,
body:not(.dark) .outro-email,
body:not(.dark) .outro-link {
  color: #000000;
}
.card-marquee {
  width: 100%;
  overflow: hidden;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.marquee {
  display: flex;
  gap: 0;
  white-space: nowrap;
  justify-content: flex-start;
  padding: 0;
}
.marquee h1 {
  margin: 0;
}
.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-scroll 30s linear infinite;
  margin: 0;
}
.marquee-track > * {
  flex: 0 0 auto;
  margin: 0;
}
@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.marquee-wrapper {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.marquee h1 {
  white-space: nowrap;
  font-size: 10vw;
  font-weight: 600;
  margin-right: 0;
}
.card {
  position: relative;
  width: 100vw;
  height: 100svh;
  padding: 1.5em;
}
.card-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  will-change: transform;
}
.card-img {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 150px;
  overflow: hidden;
  z-index: 1;
}
.card-content {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
}
.card-content .card-title {
  width: 50%;
  position: absolute;
  left: 6%;
  bottom: 22%;
  text-align: left;
  z-index: 8;
}
.card-content .card-description {
  text-align: left;
  width: 36%;
  position: absolute;
  left: 6%;
  bottom: 12%;
  transform: translate(0);
  opacity: 1;
  z-index: 4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.card-meta {
  position: absolute;
  top: 6%;
  left: 6%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Work Sans", sans-serif;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 2px;
  gap: 6px;
  z-index: 4;
}
.card-meta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    #ffffff 0 var(--arc, 0deg),
    rgba(255, 255, 255, 0.35) var(--arc, 0deg) 360deg
  );
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 2px),
    #000 calc(100% - 2px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 2px),
    #000 calc(100% - 2px)
  );
  pointer-events: none;
}
.card-meta-fixed {
  position: fixed;
  top: 6%;
  left: 6%;
  z-index: 10002;
  pointer-events: none;
}
.card-label {
  font-size: 11px;
}
.card-count {
  font-size: 14px;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.9);
}
.card-topright {
  position: absolute;
  top: 7%;
  right: 6%;
  text-align: right;
  font-family: "Work Sans", sans-serif;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 4;
}
.card-topright > * + * {
  margin-top: 0;
}
.card-kicker {
  margin-top: 130px;
  font-size: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.card-tech {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.card-link {
  position: absolute;
  left: 6%;
  bottom: 7%;
  font-family: "Work Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  z-index: 4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.card-link::after {
  content: " ↗";
  font-size: 12px;
}
.card-link-wrap {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-link-wrap:hover .card-title h1,
.card-link-wrap:hover .card-description p {
  color: #ffffff;
}
/* Removed special offset so card 2 scrolls like card 3 */
.char {
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.char span {
  transform: translateX(100%);
  display: inline-block;
  will-change: transform;
}
.image-stack {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: 420px;
  height: 260px;
  z-index: 5;
  pointer-events: none;
}
.stack-img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    0 2px 10px rgba(0, 0, 0, 0.25);
  filter: saturate(0.95) contrast(0.98);
  transition:
    transform 2s cubic-bezier(0.22, 1, 0.36, 1),
    filter 2s ease,
    opacity 2s ease;
}
.stack-back {
  transform: translate(0, -48px) scale(0.9);
  filter: blur(10px);
  opacity: 0.55;
  z-index: 1;
}
.stack-mid {
  transform: translate(0, -32px) scale(0.94);
  filter: blur(8px);
  opacity: 0.7;
  z-index: 2;
}
.stack-mid2 {
  transform: translate(0, -16px) scale(0.97);
  filter: blur(4px);
  opacity: 0.85;
  z-index: 3;
}
.stack-front {
  transform: translate(0, 0) scale(1);
  filter: blur(0);
  opacity: 1;
  z-index: 4;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .top-left img {
    width: 58px;
  }
  .top-left {
    top: 20px;
    left: 16px;
    font-size: 12px;
  }
  .menu {
    top: 20px;
    right: 16px;
    padding: 6px 14px;
    font-size: 14px;
  }
  .menu-links {
    width: min(70%, 520px);
    padding: 2.5rem 2rem;
  }
  .content {
    left: 8%;
    bottom: 10%;
  }
  .big span {
    font-size: 120px;
  }
  .brand {
    top: 60px;
    left: 180px;
    font-size: 64px;
  }
  .designer {
    font-size: 120px;
  }
  .services {
    top: 120px;
    right: 6%;
    max-width: 320px;
    font-size: 12px;
  }
  .main-hero-heading {
    font-size: 38px;
  }
  .card-title h1 {
    font-size: 2.6rem;
  }
  .card-description p {
    font-size: 0.78rem;
    line-height: 1.35;
  }
  .card-link {
    font-size: 10px;
    letter-spacing: 1.4px;
  }
  .card-topright {
    letter-spacing: 1.4px;
  }
  .card-kicker,
  .card-tech {
    font-size: 10px;
  }
  .card-content .card-title,
  .card-content .card-description {
    left: 5%;
    width: 60%;
  }
  .card-content .card-description {
    width: 52%;
  }
  .cards {
    gap: 18svh;
  }
  .card {
    padding: 1.2em;
  }
  .card-img {
    border-radius: 110px;
  }
  .card-content .card-title {
    bottom: 24%;
  }
  .card-content .card-description {
    bottom: 5% !important;
  }
  .card-link {
    bottom: 8%;
    font-size: 11px;
  }
  .card-topright {
    top: 6%;
    right: 5%;
  }
  .card-meta {
    width: 74px;
    height: 74px;
  }
  .card-label {
    font-size: 8px;
  }
  .card-count {
    font-size: 9px;
    letter-spacing: 3px;
  }
  .image-stack {
    width: 320px;
    height: 200px;
    right: 4%;
    bottom: 10%;
  }
  .outro h2 {
    font-size: clamp(2.5rem, 8vw, 6rem);
  }
  .outro h1 {
    font-size: clamp(3rem, 12vw, 9rem);
  }
  .outro-links {
    right: 1.5em;
    bottom: 1.2em;
    gap: 1.5em;
    font-size: 0.85rem;
  }
}

@media (max-width: 720px) {
  .menu {
    top: 44px;
    right: 32px;
  }
  .hero {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    padding-top: 120px;
  }
  .content {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    top: auto;
    text-align: center;
    width: 100%;
  }
  .big {
    justify-content: center;
  }
  .designer {
    text-align: center;
  }
  .big span {
    font-size: 132px;
    letter-spacing: -0.03em;
  }
  .brand {
    position: relative;
    top: auto;
    left: auto;
    margin: 6px auto 0;
    font-size: 64px;
    transform: skew(-8deg);
  }
  .designer {
    margin-top: 18px;
    font-size: 112px;
  }
  .services {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    margin: 90px auto 0;
    text-align: center;
    width: 86%;
    font-size: 12px;
  }
  .main-hero-layout {
    margin-top: 10px;
    padding: 0 6%;
  }
  .main-hero-heading {
    font-size: 32px;
  }
  .cards {
    gap: 8svh;
    margin-top: -30svh;
  }

  .card-content .card-title {
    position: absolute;
    top: 18%;
    left: 5%;
    width: 88%;
    margin: 0;
  }

  .card-content .card-description {
    position: absolute;
    top: calc(12% + 76px); /* Title height + tighter gap */
    left: 5%;
    width: 80%;
    margin: 0;
    margin-top: 6px; /* Add gap */
  }

  .card-link {
    position: absolute;
    top: calc(12% + 76px + 68px + 8px); /* Title + Description + gaps */
    left: 5%;
    bottom: auto;
    margin: 0;
    margin-top: 8px; /* Add gap */
  }

  .card-topright {
    position: absolute;
    top: calc(
      3% + 58px + 62px + 0px + 0px
    ); /* Title + Description + Link + gaps */
    left: 5%;
    right: auto;
    text-align: left;
    margin: 0;
    margin-top: 8px; /* Add gap */
  }

  /* Remove the old positioning */
  .card-content .card-description,
  .card-link,
  .card-topright {
    transform: none;
    opacity: 1;
    text-shadow: none;
  }

  .image-stack {
    position: relative;
    right: auto;
    bottom: auto;
    width: 85%;
    height: 200px;
    margin: 60% auto 10%; /* Push image stack further down */
  }

  .card-img {
    border-radius: 80px;
  }
  .outro {
    height: 100svh;
    padding: 3em 1.5em !important;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #efe9df;
  }

  .outro-inner {
    text-align: center;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Add this */
  }

  .outro h1,
  .outro h2 {
    text-align: center !important;
    width: 100% !important;
    margin-left: auto;
    margin-right: auto;
    display: block; /* Add this */
  }

  .outro h2 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    letter-spacing: 0.05em;
    margin: 0 auto; /* Add this */
  }

  .outro h1 {
    font-size: clamp(3rem, 12vw, 9rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    margin: 0 auto; /* Add this */
  }

  .outro-kicker {
    margin-top: 2.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.35em;
    font-family: "Work Sans", sans-serif;
    color: rgba(239, 233, 223, 0.7);
    text-align: center;
    width: 100%;
    display: block; /* Add this */
  }

  .outro-email {
    margin-top: 0.8rem;
    font-size: clamp(2rem, 5vw, 4rem);
    font-family: "Pacifico", cursive;
    color: rgba(239, 233, 223, 0.9);
    text-align: center;
    width: 100%;
    display: block; /* Add this */
  }

  .outro-links {
    position: absolute !important;
    right: 1.5em;
    bottom: 1.2em;
    left: auto;
    transform: none;
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 1.5em;
    font-family: "Work Sans", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 0;
    width: auto;
  }

  .outro-link {
    color: rgba(239, 233, 223, 0.75);
    text-decoration: none;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .menu {
    font-size: 12px;
    padding: 6px 14px;
    top: 38px;
    right: 40px;
  }
  .top-left {
    top: 18px;
    left: 16px;
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: 0.8px;
  }
  .big span {
    font-size: 116px;
  }
  .designer {
    font-size: 90px;
  }
  .card-title h1 {
    font-size: 2.6rem;
  }
  .card-description p {
    font-size: 0.85rem;
  }
  .card-content .card-title {
    top: 16%;
    left: 5%;
    width: 90%;
  }

  .card-content .card-description {
    top: 152px; /* Lower under title */
    left: 5%;
    width: 85%;
    margin-top: 10px;
  }

  .card-link {
    top: 250px; /* Adjusted calculations */
    left: 5%;
    margin-top: 10px;
  }

  .card-topright {
    top: 160px; /* Adjusted calculations */
    left: 5%;
    margin-top: 10px;
  }

  .card-title h1 {
    font-size: 2.6rem;
  }

  .card-description p {
    font-size: 0.85rem;
  }

  .image-stack {
    height: 170px;
    margin: 70% auto 10%; /* Adjust margin for smaller screens */
  }
  .theme-switch {
    left: 12px;
    bottom: 12px;
  }
  .card-meta {
    width: 58px;
    height: 58px;
    left: 30px !important;
  }
  .card-meta-fixed {
    left: 30px !important;
  }
  .card-label {
    font-size: 7px;
  }
  .card-count {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .outro {
    padding: 2.5em 1.2em !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .outro-inner {
    width: 100% !important;
    padding: 0;
    text-align: center !important;
    align-items: center !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .outro h2 {
    font-size: clamp(2.8rem, 9vw, 7rem);
    text-align: center !important;
    margin: 0 auto 0.5rem auto !important;
    width: 100%;
    display: block;
  }

  .outro h1 {
    font-size: clamp(3.2rem, 14vw, 9rem);
    text-align: center !important;
    margin: 0 auto !important;
    width: 100%;
    display: block;
    line-height: 0.9;
  }

  .outro h1,
  .outro h2 {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .outro-kicker {
    font-size: 0.8rem;
    margin-top: 2rem;
    text-align: center;
    width: 100%;
    display: block;
  }

  .outro-email {
    font-size: clamp(1.8rem, 4.5vw, 3.5rem);
    margin-top: 0.6rem;
    text-align: center;
    width: 100%;
    display: block;
  }

  /* Fix the links positioning */
  .outro-links {
    position: absolute !important;
    right: 1.2em;
    bottom: 1.1em;
    left: auto;
    transform: none;
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 1.2em;
    font-size: 0.75rem;
    margin-top: 0;
    width: auto;
  }

  /* Ensure dark mode colors are correct */
  body.dark .outro,
  body.dark .outro h1,
  body.dark .outro h2,
  body.dark .outro-kicker,
  body.dark .outro-email,
  body.dark .outro-link {
    color: #efe9df !important;
  }

  body.dark .outro-link.instagram {
    color: #efe9df !important;
  }

  body:not(.dark) .outro,
  body:not(.dark) .outro h1,
  body:not(.dark) .outro h2,
  body:not(.dark) .outro-kicker,
  body:not(.dark) .outro-email,
  body:not(.dark) .outro-link {
    color: #000000 !important;
  }

body:not(.dark) .outro-link.instagram {
  color: #000000 !important;
}

/* Match home outro responsiveness to about page */
.outro {
  height: 100svh !important;
  padding: 4em 2em !important;
}
.outro-inner {
  text-align: center !important;
  width: min(1200px, 92vw) !important;
}
.outro h1,
.outro h2 {
  text-align: center !important;
}
.outro h2 {
  font-size: clamp(3rem, 8vw, 8rem) !important;
  letter-spacing: 0.05em !important;
}
.outro h1 {
  font-size: clamp(4rem, 12vw, 12rem) !important;
  line-height: 0.95 !important;
  letter-spacing: 0.02em !important;
}
.outro-kicker {
  margin-top: 2.5rem !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.35em !important;
}
.outro-email {
  margin-top: 0.8rem !important;
  font-size: clamp(2rem, 5vw, 4rem) !important;
}
.outro-links {
  position: absolute !important;
  right: 2.5em !important;
  bottom: 2em !important;
  display: grid !important;
  grid-auto-flow: column !important;
  gap: 2.5em !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.2em !important;
}
@media (max-width: 1000px) {
  .outro h2 {
    font-size: clamp(2.5rem, 8vw, 6rem) !important;
  }
  .outro h1 {
    font-size: clamp(3rem, 12vw, 9rem) !important;
  }
  .outro-links {
    right: 1.5em !important;
    bottom: 1.2em !important;
    gap: 1.5em !important;
    font-size: 0.85rem !important;
  }
}
}

/* PERFECT TABLET / 1000px LAYOUT */
@media (max-width: 1000px) and (min-width: 721px) {
  .menu {
    top: 44px;
    right: 32px;
  }
  .card-content {
    position: absolute;
    z-index: 10;
  }
  .card-content .card-title {
    position: absolute;
    left: 6%;
    bottom: 20%;
    width: 50%;
  }

  .card-title h1 {
    font-size: 4rem;
  }

  .card-content .card-description {
    position: absolute;
    left: 6%;
    bottom: 29%;
    width: 42%;
  }

  .card-link {
    position: absolute;
    left: 6%;
    bottom: 16%;
  }

  .card-topright {
    position: absolute;
    top: 6%;
    right: 6%;
    text-align: right;
    z-index: 20;
  }
  .card-kicker,
  .card-tech {
    display: none;
  }
  .image-stack {
    z-index: 3;
  }

  .image-stack {
    position: absolute;
    right: 6%;
    bottom: 6%;
    width: 320px;
    height: 200px;
  }

  .card-img {
    border-radius: 120px;
  }

  .cards {
    gap: 20svh;
  }
}

/* Final override to hide kicker/tech at 721–1000px */
@media (max-width: 1000px) and (min-width: 721px) {
  .card-topright,
  .card-topright * {
    display: none !important;
  }
}
