/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important;
}

html, body{
  scrollbar-width: none;
  -ms-overflow-style: none; 
}

body::-webkit-scrollbar {
  display: none;
}

/* Text Selection */
::selection {
  background: rgba(34, 197, 94, 0.15);
}

::-moz-selection {
  background: rgba(34, 197, 94, 0.15);
}

/* GLOBAL */
body {
  font-family: "Poppins", sans-serif;
  overflow: hidden;
  overflow-y: auto;
  cursor: none;
}

h1, h2 {
  font-family: "Space Grotesk", sans-serif;
}

/* =========================
   CUSTOM SCROLLBAR
========================= */

.custom-scrollbar {
  position: fixed;
  top: 0;
  right: 18px;
  height: 100vh;
  width: 14px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.custom-scrollbar.visible {
  opacity: 1;
}

/* Track (fixed height, centered) */
.scroll-track {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 20%;              /* Fixed height */
  width: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  transition: background 0.4s ease;
}

/* Thumb */
.scroll-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 38px;             /* Fixed thumb height */
  background: #ffffff;      /* Default for dark backgrounds */
  border-radius: 10px;
  transition: background 0.4s ease;
  will-change: transform;
}

/* Dark variant (for light sections) */
.scroll-thumb.dark {
  background: #0f3d2e;
}

.scroll-track.dark {
  background: rgba(15, 61, 46, 0.18);
}


/* =========================
   CUSTOM CURSOR
========================= */

.cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* Dot */
.cursor-dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  z-index: 2;
}

/* Ring */
.cursor-ring {
  width: 28px;
  height: 28px;
  border: 1.5px solid white;
  border-radius: 50%;
  background: transparent; /* keep it hollow */
  transition: 
    width 0.3s ease,
    height 0.3s ease,
    border-radius 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    opacity 0.3s ease;
}

/* Theme switching */

/* Light sections (white background → dark cursor) */
.cursor.light .cursor-dot {
  background: black;
}

.cursor.light .cursor-ring {
  border-color: black;
  background: transparent; /* remain hollow */
}

/* Dark sections (dark background → light cursor) */
.cursor.dark .cursor-dot {
  background: white;
}

.cursor.dark .cursor-ring {
  border-color: white;
  background: transparent; /* remain hollow */
}

/* Magnetic scale */
.cursor.magnetic .cursor-ring {
  transform: translate(-50%, -50%) scale(1.6);
}

/* Project pill mode */
.cursor.project .cursor-dot {
  opacity: 0;
}

.cursor.project .cursor-ring {
  width: 160px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor.project .cursor-ring::after {
  content: "View Project →";
  color: white;
  font-size: 14px;
  font-weight: 500;
}

/* Orb states */
.cursor.grab .cursor-ring::after {
  content: "Grab";
  color: white;
  font-size: 13px;
}

.cursor.dragging .cursor-ring {
  transform: translate(-50%, -50%) scale(0.9);
}

.cursor.dragging .cursor-ring::after {
  content: "Dragging";
  color: white;
  font-size: 13px;
}

@media (pointer: coarse) {
  .cursor {
    display: none;
  }

  *,
  *::before,
  *::after {
    cursor: auto !important;
  }
}





/* ================= HEADER ================= */

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 6vw;
  z-index: 20;

  transform: translate3d(0, -120%, 0);
  opacity: 0;

  transition:
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1.1s ease,
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    border-color 0.4s ease;

  will-change: transform, opacity, backdrop-filter;
}

/* Active state (intro finished) */
.site-header.active {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

/* Scroll blur state */
.site-header.scrolled {
  background: rgba(10, 18, 32, 0.45);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}


.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 
    transform 0.25s ease,
    text-shadow 0.3s ease,
    filter 0.3s ease;
  will-change: transform;
}

.brand.active {
  text-shadow:
    0 0 10px rgba(15, 61, 46, 0.6),
    0 0 22px rgba(15, 61, 46, 0.4);
  filter: brightness(1.15);
}


/* ===========================
   BASE BUTTON
=========================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 48px;
  border-radius: 60px;

  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;

  cursor: pointer;
  overflow: hidden;

  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  will-change: transform;
}

/* ===========================
   THIN GLASS STYLE
=========================== */

.btn-glass {
  color: #ffffff;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.08) 0%,
      rgba(255,255,255,0.02) 20%,
      rgba(255,255,255,0.04) 100%
    );

  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);

  border: 1px solid rgba(255,255,255,0.18);


}

/* ===========================
   SUBTLE TOP SHINE
=========================== */

.btn-glass::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(255,255,255,0.35),
      transparent 60%
    );

  opacity: 0.25;
  pointer-events: none;
}

/* ===========================
   SLIDE FOREST FILL
=========================== */

.btn-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #0f3d2e;
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.btn-glass .btn-text {
  position: relative;
  z-index: 2;
  transition: letter-spacing 0.25s ease;
}


/* ===========================
   HOVER STATE (NO SHADOW)
=========================== */

.btn-glass:hover::before {
  transform: translateX(0);
}


/* ===========================
   PRESS EFFECT
=========================== */

.btn-glass:active {
  transform: translateY(4px);
}



/* ================= OVERLAY ================= */

.menu-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(8px);
  background: rgba(10,15,25,0.4);
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s ease;
  z-index: 100;
}

/* ACTIVE STATE */
.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ================= PANEL ================= */

.menu-panel {
  width: 65%;
  max-width: 1100px;
  height: 100%;
  background: #f6f6f6;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  transform: translateX(-100%);
  transition: 1s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 60px;
  position: relative;
}

.menu-overlay.active .menu-panel {
  transform: translateX(0);
}

/* CLOSE BUTTON */
.close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
}

.menu-content {
  display: flex;
  gap: 60px;
  height: 100%;
}

.menu-left {
  flex: 1;
}

.menu-right {
  flex: 1;
}

.menu-left h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  margin-bottom: 10px;
}

.menu-sub {
  margin-bottom: 30px;
  opacity: 0.7;
}

/* FORM */

.menu-left form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input, select, textarea {
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid #ddd;
  font-family: "Poppins", sans-serif;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #0f3d2e;
  box-shadow: 0 0 0 3px rgba(15, 61, 46, 0.11);
}

textarea {
  resize: none;
}

.form-submit-btn {
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
  color: #ffffff;
  border: 1px solid rgba(8, 20, 36, 0.24);
  background:
    linear-gradient(
      145deg,
      rgba(11, 21, 38, 0.86) 0%,
      rgba(13, 25, 44, 0.78) 20%,
      rgba(16, 31, 54, 0.86) 100%
    );
}

.form-submit-btn::after {
  opacity: 0.16;
}

.form-submit-btn .btn-text {
  font-weight: 600;
  letter-spacing: 0.25px;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
}

.form-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form-submit-btn.loading {
  pointer-events: none;
}

.form-message {
  min-height: 24px;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.form-message.show {
  opacity: 1;
  transform: translateY(0);
}

.form-message.success {
  color: #0f3d2e;
}

.form-message.error {
  color: #b3261e;
}

/* PROFILE */

.profile {
  margin-top: 40px;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.email-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
  opacity: 0.6;
  transition: 0.3s ease;
}

.copy-btn:hover {
  opacity: 1;
}

.copy-btn svg {
  display: block;
}

/* Micro Bounce */
.copy-btn.bounce {
  animation: microBounce 0.35s ease;
}

@keyframes microBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18); }
  70%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}

.copy-btn:hover + .email-text {
  color: #0f3d2e;
}

/* Feedback text */
.copy-feedback {
  margin-top: 6px;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(4px);
  transition: 0.3s ease;
}

.copy-feedback.show {
  opacity: 0.7;
  transform: translateY(0);
}


/* ================= HERO SECTION ================= */
.hero {
  position: relative;
  height: clamp(520px, 88vh, 860px);
  width: 100%;
  background: #0b1220;
  overflow: hidden;
  isolation: isolate;
}

/* BLUE BACKGROUND */
.hero-bg {
  position: relative;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #0b1220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(140px, 19vh, 200px) 20px clamp(118px, 15vh, 170px);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  z-index: 3;
  will-change: transform;
  box-shadow:
    0 12px 30px rgba(3, 10, 26, 0.25),
    0 0 22px rgba(40, 92, 180, 0.03),
    inset -18px -18px 34px rgba(0, 6, 20, 0.24),
    inset 8px 8px 14px rgba(255, 255, 255, 0.02);
}

.hero-orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.11) 16%, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0) 52%),
    radial-gradient(circle at 78% 78%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 62%);
  opacity: 0.6;
}

.hero-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, 0.18) 100%);
  opacity: 0.4;
}

.hero-orb.is-dragging {
  cursor: grabbing;
}

.hero-orb-a {
  top: clamp(122px, 17vh, 210px);
  left: clamp(-18px, 2.6vw, 68px);
  width: clamp(108px, 11.4vw, 168px);
  aspect-ratio: 1 / 1;
  z-index: 4;
  background:
    radial-gradient(circle at 26% 18%, rgba(205, 245, 229, 0.45) 0%, rgba(205, 245, 229, 0.11) 28%, rgba(205, 245, 229, 0) 54%),
    radial-gradient(circle at 68% 74%, rgba(10, 33, 26, 0.74), rgba(10, 33, 26, 0) 60%),
    linear-gradient(154deg, #5a9a85 0%, #1f694f 32%, #0f4b3b 58%, #072e25 100%);
  transform: translate3d(
    calc(var(--hero-orb-a-x, 0px) + var(--hero-orb-a-drag-x, 0px)),
    calc(var(--hero-orb-a-y, 0px) + var(--hero-orb-a-drag-y, 0px)),
    0
  );
}

.hero-orb-b {
  right: clamp(-28px, 4vw, 92px);
  bottom: clamp(44px, 8vh, 112px);
  width: clamp(146px, 15.4vw, 228px);
  aspect-ratio: 1 / 1;
  z-index: 3;
  background:
    radial-gradient(circle at 28% 18%, rgba(198, 226, 250, 0.34) 0%, rgba(198, 226, 250, 0.08) 30%, rgba(198, 226, 250, 0) 56%),
    radial-gradient(circle at 70% 74%, rgba(7, 29, 52, 0.72), rgba(7, 29, 52, 0) 62%),
    linear-gradient(160deg, #5f86a8 0%, #285679 34%, #173f5d 60%, #0a2741 100%);
  transform: translate3d(
    calc(var(--hero-orb-b-x, 0px) + var(--hero-orb-b-drag-x, 0px)),
    calc(var(--hero-orb-b-y, 0px) + var(--hero-orb-b-drag-y, 0px)),
    0
  );
}

/* HERO TEXT (IMPORTANT: INITIAL STATE) */
.hero-text {
  text-align: center;
  max-width: 1200px;
  padding: 0 6vw;
  color: #ffffff;

  opacity: 0;
  transform: translateY(0px) scale(0.92);
  transition:
    opacity 1.1s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  z-index: 5;
}

/* ACTIVE STATE */
.hero-text.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* TEXT SIZES */
.hero-text h2 {
  font-size: clamp(2.6rem, 5.4vw, 3.9rem);
  text-transform: capitalize;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  opacity: 0.75;
}

.hero-rotating-line {
  transition:
    opacity 1.02s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.02s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.02s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.hero-headline.is-changing {
  opacity: 0;
  transform: translate3d(0, -14px, 0);
  filter: blur(1.6px);
}

.hero-subline.is-changing {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  filter: blur(1.1px);
}

/* HERO GRID BACKGROUND */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);

  background-size: 55px 55px;

  /* subtle fade toward edges */
  mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
}

@media (max-width: 900px) {
  .hero-orb-a {
    top: 104px;
    left: -8px;
    width: 96px;
  }

  .hero-orb-b {
    right: -6px;
    bottom: 76px;
    width: 124px;
  }
}


/* WHITE INTRO */
.intro {
  position: fixed;
  inset: 0;
  background: #fffefe;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  transform: translateY(0);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.intro h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 600;
  text-align: center;
  color: #0f3d2e;
  opacity: 0;
}

/* ================= MARQUEE SECTION ================= */

.marquee-section {
  background: #ffffff;
  padding: 12px 0;
  overflow: hidden;
}

.marquee {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  will-change: transform;
}

/* Text style */
.marquee-item {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: default;

  color: #111;
  transition:
    color 0.3s ease,
    -webkit-text-stroke 0.3s ease;
}

/* Hover = outline */
.marquee-item:hover {
  color: transparent;
  -webkit-text-stroke: 1.2px #0f3d2e;
}

/* ===============================
   FEATURED SECTION
=============================== */

.featured-section {
  --featured-freeze-y: 0px;
  background: #060d1a;
  padding: 180px 6vw 96px;
  position: relative;
  z-index: 1;
  transform: translate3d(0, var(--featured-freeze-y), 0);
  will-change: transform;
}

.featured-container {
  max-width: 1400px;
  margin: auto;
}

.featured-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 6;
}

.featured-header h2 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  color: #fff;
  margin-bottom: 16px;
}

.featured-header p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
}

/* ===============================
   GRID
=============================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

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


/* ===============================
   CARD
=============================== */

.project-card {
  position: relative;
  height: 380px;
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 40px;

  opacity: 0;
  transform: translateY(80px) scale(0.96);
  filter: blur(6px);

  transition:
    transform 1s cubic-bezier(0.18, 1.6, 0.3, 1),
    opacity 0.8s ease,
    filter 0.8s ease,
    box-shadow 0.6s ease;
}

.project-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ===============================
   BACKGROUND
=============================== */

.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.8) 100%
  );
  z-index: 1;
}

/* ===============================
   CONTENT
=============================== */

.card-content {
  position: relative;
  z-index: 2;
  max-width: 70%;
}

.card-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: 40px;
  background: rgba(255,255,255,0.12);
  margin-bottom: 14px;
}

.card-content h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.card-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
}

/* ===============================
   ARROW
=============================== */

.card-arrow {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.4s ease, background 0.4s ease;
  z-index: 2;
}

/* ===============================
   HOVER EFFECTS
=============================== */

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.project-card:hover .card-bg {
  transform: scale(1.08);
}

.project-card:hover .card-arrow {
  background: rgba(255,255,255,0.2);
  transform: translateX(6px);
}

/* Scroll Line Wrapper */
.scroll-line-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.scroll-line {
  width: 100%;
  height: 100%;
}

/* Make sure project cards sit above */
.project-card {
  position: relative;
  z-index: 2;
}

/* ===============================
   ABOUT SECTION
=============================== */

.about-section {
  --about-offset: 2px;
  --about-orb-x: 0px;
  --about-orb-y: 0px;
  --about-orb-drag-x: 0px;
  --about-orb-drag-y: 0px;
  position: relative;
  background: #f8f9fb;
  padding: 124px 6vw 72px;
  margin-top: -2px;
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  box-shadow: none;
  z-index: 5;
  overflow: visible;
  transform: translate3d(0, var(--about-offset), 0);
  will-change: transform;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(15, 61, 46, 0.04), transparent 46%),
    radial-gradient(circle at 85% 0%, rgba(63, 94, 251, 0.03), transparent 50%);
  opacity: 0.55;
  pointer-events: none;
}

.about-sticky {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
}

.about-orb {
  position: absolute;
  right: clamp(18px, 6.4vw, 120px);
  top: clamp(60px, 12vw, 160px);
  width: clamp(116px, 10.6vw, 154px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  opacity: 0.9;
  background:
    radial-gradient(circle at 24% 20%, rgba(198, 235, 219, 0.45), rgba(198, 235, 219, 0) 45%),
    radial-gradient(circle at 68% 72%, rgba(14, 41, 32, 0.72), rgba(14, 41, 32, 0) 52%),
    linear-gradient(158deg, #1a5b46 0%, #0e3529 56%, #08221b 100%);
  transform: translate3d(
    calc(var(--about-orb-x) + var(--about-orb-drag-x)),
    calc(var(--about-orb-y) + var(--about-orb-drag-y)),
    0
  );
  will-change: transform;
  z-index: 34;
  box-shadow:
    0 6px 14px rgba(8, 34, 27, 0.14),
    inset -12px -14px 24px rgba(6, 22, 17, 0.28);
}

.about-orb.is-dragging {
  cursor: grabbing;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 3.4vw, 64px);
  align-items: flex-start;
}

.about-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.1rem, 7.8vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: #0f3d2e;
  max-width: 10ch;
  opacity: 0;
  transform: translate3d(-48px, 0, 0);
  transition:
    transform 1.38s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 1.38s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform, opacity;
}

.about-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: clamp(8px, 1.2vw, 20px);
}

.about-line {
  margin: 0;
  font-size: clamp(1.08rem, 1.6vw, 1.56rem);
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: #1a1f2a;
  opacity: 0;
  transform: translateX(0);
  --about-line-delay: 0ms;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0ms,
    opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1) var(--about-line-delay),
    color 0.25s ease 0ms;
  will-change: transform, opacity;
}

.about-section.about-content-visible .about-title {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.about-section.about-content-visible .about-line {
  opacity: 0.9;
}

.about-section.about-content-visible .about-line:nth-child(1) {
  --about-line-delay: 180ms;
}

.about-section.about-content-visible .about-line:nth-child(2) {
  --about-line-delay: 320ms;
}

.about-section.about-content-visible .about-line:nth-child(3) {
  --about-line-delay: 460ms;
}

.about-section.about-content-visible .about-line:nth-child(4) {
  --about-line-delay: 600ms;
}

.about-section.about-content-visible .about-line:hover {
  opacity: 1;
  --about-line-delay: 0ms;
}

.about-section.about-content-visible .about-line:nth-child(odd):hover {
  transform: translateX(-12px);
}

.about-section.about-content-visible .about-line:nth-child(even):hover {
  transform: translateX(12px);
}

@media (max-width: 900px) {
  .about-section {
    padding: 96px 6vw 66px;
    margin-top: 0;
  }

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

  .about-title {
    font-size: clamp(2.7rem, 12.3vw, 4.6rem);
    max-width: none;
  }

  .about-lines {
    gap: 10px;
    padding-top: 0;
  }

  .about-line {
    font-size: clamp(1.02rem, 4.6vw, 1.34rem);
    line-height: 1.4;
  }

  .about-orb {
    right: 18px;
    top: 24px;
    width: 96px;
    opacity: 0.86;
  }
}

/* ===============================
   CONTACT SECTION
=============================== */

.contact-section {
  --contact-orb-x: 0px;
  --contact-orb-y: 0px;
  --contact-orb-drag-x: 0px;
  --contact-orb-drag-y: 0px;
  position: relative;
  z-index: 4;
  background: #f8f9fb;
  padding: 54px 6vw 126px;
  overflow: visible;
}

.contact-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 18, 32, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 18, 32, 0.038) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.45;
  mask-image: radial-gradient(circle at 55% 32%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at 55% 32%, black 40%, transparent 100%);
}

.contact-container {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(34px, 4.8vw, 88px);
  align-items: start;
}

.contact-left h2 {
  font-size: clamp(2.5rem, 5.7vw, 4.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: #0e1b30;
  margin-bottom: 14px;
}

.contact-subtext {
  max-width: 29ch;
  font-size: clamp(1.03rem, 1.45vw, 1.2rem);
  line-height: 1.5;
  color: rgba(14, 27, 48, 0.74);
}

.contact-profile-block {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 560px;
}

.contact-photo-wrap {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: #e5e8ee;
}

.contact-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-profile-meta h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.72rem, 2.5vw, 2.25rem);
  line-height: 1.1;
  color: #0e1b30;
  letter-spacing: -0.02em;
}

.contact-profile-meta p {
  margin-top: 8px;
  max-width: 40ch;
  font-size: clamp(1.08rem, 1.52vw, 1.28rem);
  line-height: 1.45;
  color: rgba(14, 27, 48, 0.78);
}

.contact-email-wrap {
  margin-top: 12px;
}

.contact-email-copy {
  gap: 10px;
}

.contact-email-copy .email-text {
  font-size: clamp(0.98rem, 1.28vw, 1.12rem);
  font-weight: 400;
  color: #124d3a;
}

.contact-email-copy .copy-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(18, 77, 58, 0.18);
  color: #124d3a;
}

.contact-copy-feedback {
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0;
}

.contact-profile-meta a {
  display: inline-block;
  margin-top: 10px;
  color: #0f3d2e;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(15, 61, 46, 0.26);
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.contact-profile-meta a:hover {
  color: #0a271d;
  border-color: rgba(10, 39, 29, 0.5);
}

.contact-form-card {
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(11, 18, 32, 0.08);
  box-shadow: 0 24px 60px rgba(14, 27, 48, 0.09);
  padding: clamp(24px, 3vw, 38px);
}

.contact-form-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form-card textarea {
  min-height: 160px;
}

.contact-card-submit {
  margin-top: 6px;
}

.contact-orb {
  position: absolute;
  left: clamp(14px, 3vw, 62px);
  bottom: clamp(-106px, -7.8vw, -58px);
  width: clamp(170px, 17vw, 228px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  z-index: 34;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  background:
    radial-gradient(circle at 25% 20%, rgba(198, 235, 219, 0.44), rgba(198, 235, 219, 0) 48%),
    radial-gradient(circle at 65% 74%, rgba(14, 41, 32, 0.74), rgba(14, 41, 32, 0) 56%),
    linear-gradient(162deg, #1a5b46 0%, #0f3d2e 52%, #08231c 100%);
  transform: translate3d(
    calc(var(--contact-orb-x) + var(--contact-orb-drag-x)),
    calc(var(--contact-orb-y) + var(--contact-orb-drag-y)),
    0
  );
  box-shadow:
    0 7px 16px rgba(8, 34, 27, 0.14),
    inset -13px -15px 28px rgba(7, 22, 17, 0.28);
  will-change: transform;
}

.contact-orb.is-dragging {
  cursor: grabbing;
}

@media (max-width: 900px) {
  .contact-section {
    padding: 48px 6vw 98px;
  }

  .contact-grid-overlay {
    opacity: 0.38;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .contact-profile-block {
    max-width: none;
  }

  .contact-profile-meta p {
    max-width: none;
  }

  .contact-orb {
    left: 12px;
    bottom: -56px;
    width: 128px;
    opacity: 0.9;
  }
}

/* ===============================
   FOOTER SECTION
=============================== */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 14% 0%, rgba(63, 94, 251, 0.2), transparent 42%),
    radial-gradient(circle at 92% 92%, rgba(30, 72, 180, 0.26), transparent 46%),
    linear-gradient(140deg, #070f1d 0%, #081529 54%, #060f1f 100%);
  padding: clamp(60px, 7vw, 84px) 6vw clamp(18px, 2.8vw, 30px);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(28px, 4.6vw, 70px);
  align-items: start;
}

.footer-left {
  max-width: 560px;
}

.footer-email-wrap {
  margin: 0;
  text-align: center;
}

.footer-action-stack {
  margin-top: 24px;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-email-copy {
  margin-top: 0;
  gap: 8px;
  justify-content: center;
}

.footer-email-copy .copy-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(235, 243, 255, 0.22);
  color: rgba(235, 243, 255, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.footer-email-copy .copy-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.44);
  transform: translateY(-1px);
}

.footer-email-text {
  font-size: clamp(0.88rem, 1.02vw, 0.98rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(236, 244, 255, 0.86);
}

.footer-email-copy .copy-btn:hover + .footer-email-text {
  color: rgba(236, 244, 255, 0.86);
}

.footer-copy-feedback {
  margin-top: 4px;
  font-size: 0.78rem;
  color: rgba(222, 233, 251, 0.72);
}

.footer-title {
  font-size: clamp(1.34rem, 2.35vw, 2.04rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: #f4f8ff;
  max-width: 18ch;
}

.footer-support {
  margin-top: 12px;
  max-width: 48ch;
  font-size: clamp(0.92rem, 1.08vw, 1rem);
  line-height: 1.5;
  color: rgba(222, 231, 244, 0.74);
}

.footer-cta {
  margin-top: 0;
  min-height: 52px;
  padding: 10px 56px;
  width: fit-content;
  text-decoration: none;
}

.footer-projects-heading {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.02rem, 1.42vw, 1.24rem);
  letter-spacing: -0.015em;
  color: #eff4ff;
  margin-bottom: 12px;
}

.footer-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 178px));
  gap: 11px;
}

.footer-project-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d172b;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease;
}

.footer-project-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.55;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.footer-project-tile:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.26);
}

.footer-project-tile:hover img {
  opacity: 0.78;
  transform: scale(1.04);
}

.footer-bottom {
  margin: 24px auto 0;
  max-width: 1240px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 10px;
}

.footer-bottom p {
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(222, 231, 244, 0.62);
  text-align: center;
}

@media (max-width: 900px) {
  .site-footer {
    padding: 52px 6vw 26px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-left {
    max-width: none;
  }

  .footer-bottom {
    margin-top: 28px;
  }
}

@media (max-width: 560px) {
  .contact-profile-block {
    align-items: flex-start;
  }

  .contact-photo-wrap {
    width: 102px;
    height: 102px;
  }

  .contact-profile-meta h3 {
    font-size: 1.8rem;
  }

  .contact-profile-meta p {
    font-size: 1.08rem;
  }

  .contact-email-copy .email-text {
    font-size: 1rem;
  }

  .contact-email-copy .copy-btn {
    width: 32px;
    height: 32px;
  }

  .contact-form-card {
    border-radius: 24px;
    padding: 20px;
  }

  .footer-title {
    max-width: none;
  }

  .footer-action-stack {
    width: fit-content;
  }

  .footer-project-grid {
    gap: 12px;
  }

  .footer-cta {
    width: fit-content;
    padding: 9px 40px;
  }
}

@media (max-width: 1024px) {
  .menu-panel {
    width: 100%;
    max-width: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding: 28px 22px 22px;
    overflow-y: auto;
  }

  .menu-content {
    flex-direction: column;
    gap: 24px;
    height: auto;
    min-height: 100%;
  }

  .menu-left,
  .menu-right {
    flex: none;
  }

  .menu-left h2 {
    font-size: clamp(2rem, 6.4vw, 3rem);
  }

  .menu-sub {
    max-width: 34ch;
    margin-bottom: 20px;
  }

  .profile {
    margin-top: 20px;
  }

  .profile-img {
    width: 92px;
    height: 92px;
    margin-bottom: 12px;
  }

  .close-btn {
    top: 14px;
    right: 14px;
  }
}

@media (max-width: 900px) {
  .custom-scrollbar {
    display: none;
  }

  .site-header {
    padding: 12px 4.2vw;
  }

  .brand {
    font-size: 18px;
  }

  #openMenu.btn {
    min-height: 48px;
    padding: 10px 30px;
    font-size: 0.9rem;
  }

  .hero {
    height: clamp(460px, 74vh, 620px);
  }

  .hero-bg {
    padding: 124px 18px 92px;
  }

  .hero-text {
    padding: 0 8vw;
  }

  .hero-text h2 {
    font-size: clamp(2rem, 8.3vw, 2.85rem);
    line-height: 1.09;
    margin-bottom: 1.05rem;
  }

  .hero-text p {
    font-size: clamp(0.96rem, 3.5vw, 1.08rem);
  }

  .hero-orb-a {
    top: 88px;
    left: -24px;
    width: 84px;
  }

  .hero-orb-b {
    right: -28px;
    bottom: 48px;
    width: 108px;
  }

  .marquee-section {
    padding: 10px 0;
  }

  .marquee-item {
    font-size: clamp(0.96rem, 4.6vw, 1.32rem);
  }

  .featured-section {
    padding: 108px 4.8vw 64px;
  }

  .featured-header {
    margin-bottom: 44px;
  }

  .featured-header h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .featured-header p {
    font-size: clamp(1rem, 3.8vw, 1.14rem);
    max-width: 32ch;
    margin-inline: auto;
  }

  .projects-grid {
    gap: 20px;
  }

  .project-card {
    height: 320px;
    border-radius: 22px;
    padding: 24px;
  }

  .card-content {
    max-width: 84%;
  }

  .card-content h3 {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
  }

  .card-content p {
    font-size: 0.94rem;
  }

  .card-tag {
    font-size: 0.72rem;
    padding: 5px 12px;
  }

  .card-arrow {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .about-section {
    padding: 70px 5vw 54px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
  }

  .about-inner {
    gap: 20px;
  }

  .about-title {
    font-size: clamp(2.2rem, 11.5vw, 3.5rem);
    line-height: 0.93;
  }

  .about-line {
    font-size: clamp(1rem, 4.8vw, 1.26rem);
  }

  .about-orb {
    right: 10px;
    top: 8px;
    width: 62px;
    opacity: 0.82;
  }

  .contact-section {
    padding: 44px 5vw 76px;
  }

  .contact-container {
    gap: 28px;
  }

  .contact-left h2 {
    font-size: clamp(2.1rem, 9.4vw, 3rem);
  }

  .contact-subtext {
    max-width: none;
    font-size: clamp(1rem, 4.2vw, 1.14rem);
  }

  .contact-support {
    margin-top: 8px;
    font-size: 0.98rem;
  }

  .contact-profile-block {
    margin-top: 26px;
    gap: 14px;
  }

  .contact-photo-wrap {
    width: 110px;
    height: 110px;
  }

  .contact-profile-meta h3 {
    font-size: clamp(1.56rem, 6.8vw, 2.02rem);
  }

  .contact-profile-meta p {
    font-size: clamp(1rem, 4.2vw, 1.12rem);
  }

  .contact-form-card {
    border-radius: 24px;
    padding: 20px;
  }

  .contact-form-card textarea {
    min-height: 138px;
  }

  .contact-orb {
    left: 8px;
    bottom: -40px;
    width: 106px;
  }

  .site-footer {
    padding: 46px 5vw 20px;
  }

  .footer-inner {
    gap: 24px;
  }

  .footer-title {
    font-size: clamp(1.18rem, 6.6vw, 1.72rem);
  }

  .footer-support {
    font-size: 0.93rem;
  }

  .footer-action-stack {
    margin-top: 18px;
  }

  .footer-cta {
    min-height: 48px;
    padding: 9px 32px;
  }

  .footer-right {
    max-width: none;
  }

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

  .footer-project-tile {
    aspect-ratio: 16 / 10;
  }

  .footer-bottom {
    margin-top: 16px;
    padding-top: 8px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 10px 4vw;
  }

  .brand {
    font-size: 17px;
  }

  #openMenu.btn {
    min-height: 44px;
    padding: 9px 22px;
    font-size: 0.86rem;
  }

  .menu-panel {
    padding: 22px 16px 16px;
  }

  .menu-content {
    gap: 20px;
    padding-top: 12px;
  }

  .hero {
    height: clamp(420px, 68vh, 540px);
  }

  .hero-bg {
    padding: 108px 14px 76px;
  }

  .hero-text {
    padding: 0 6vw;
  }

  .hero-text h2 {
    font-size: clamp(1.62rem, 9.3vw, 2.18rem);
    line-height: 1.1;
  }

  .hero-text p {
    font-size: clamp(0.9rem, 4.2vw, 1rem);
  }

  .hero-orb-a {
    width: 72px;
    left: -24px;
    top: 84px;
  }

  .hero-orb-b {
    width: 94px;
    right: -30px;
    bottom: 34px;
  }

  .featured-section {
    padding: 84px 4.2vw 52px;
  }

  .featured-header {
    margin-bottom: 30px;
  }

  .project-card {
    height: 292px;
    border-radius: 20px;
    padding: 18px;
  }

  .card-content {
    max-width: 92%;
  }

  .card-content h3 {
    font-size: clamp(1.24rem, 7vw, 1.58rem);
  }

  .card-content p {
    font-size: 0.88rem;
  }

  .card-tag {
    font-size: 0.68rem;
    padding: 4px 10px;
  }

  .card-arrow {
    width: 38px;
    height: 38px;
    top: 14px;
    right: 14px;
    font-size: 16px;
  }

  .about-section {
    padding: 56px 4.6vw 48px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
  }

  .about-title {
    font-size: clamp(2rem, 13.1vw, 2.86rem);
  }

  .about-line {
    font-size: clamp(0.98rem, 5.4vw, 1.12rem);
    line-height: 1.35;
  }

  .about-orb {
    width: 56px;
    right: 8px;
    top: 56px;
  }

  .contact-section {
    padding: 36px 4.6vw 64px;
  }

  .contact-grid-overlay {
    opacity: 0.32;
  }

  .contact-photo-wrap {
    width: 96px;
    height: 96px;
  }

  .contact-profile-block {
    margin-top: 20px;
  }

  .contact-form-card {
    border-radius: 20px;
    padding: 18px;
  }

  .contact-orb {
    width: 92px;
    left: 4px;
    bottom: -30px;
  }

  .site-footer {
    padding: 38px 4.6vw 16px;
  }

  .footer-project-grid {
    gap: 10px;
  }

  .footer-project-tile {
    border-radius: 12px;
  }

  .footer-bottom p {
    font-size: 0.72rem;
  }
}

/* ===============================
   PROJECT PAGE TEMPLATE
=============================== */

.project-page {
  background: #081224;
}

.project-main {
  color: #ecf2ff;
  background:
    radial-gradient(circle at 14% 0%, rgba(63, 94, 251, 0.16), transparent 40%),
    radial-gradient(circle at 92% 88%, rgba(25, 67, 150, 0.14), transparent 46%),
    linear-gradient(140deg, #070f1d 0%, #081326 58%, #060f1f 100%);
  padding-top: clamp(84px, 9vw, 116px);
  padding-bottom: clamp(68px, 8vw, 110px);
}

.project-shell {
  width: min(1240px, calc(100% - 12vw));
  margin-inline: auto;
}

.project-hero-banner {
  padding-bottom: clamp(42px, 5.4vw, 72px);
}

.project-hero-visual {
  position: relative;
  min-height: clamp(420px, 62vh, 640px);
  border-radius: clamp(24px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(241, 246, 255, 0.16);
  box-shadow: 0 24px 56px rgba(3, 8, 20, 0.48);
  isolation: isolate;
}

.project-hero-image {
  position: absolute;
  inset: 0;
}

.project-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.08);
  transform-origin: center;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 10, 20, 0.1) 0%, rgba(5, 10, 20, 0.72) 76%),
    linear-gradient(90deg, rgba(5, 10, 20, 0.52) 0%, rgba(5, 10, 20, 0.12) 66%);
}

.project-hero-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: clamp(24px, 3.6vw, 46px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-hero-content > * {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-page-ready .project-hero-image img {
  transform: scale(1);
}

.project-page-ready .project-hero-content > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.project-page-ready .project-hero-content > :nth-child(1) {
  transition-delay: 0.18s;
}

.project-page-ready .project-hero-content > :nth-child(2) {
  transition-delay: 0.26s;
}

.project-page-ready .project-hero-content > :nth-child(3) {
  transition-delay: 0.34s;
}

.project-page-ready .project-hero-content > :nth-child(4) {
  transition-delay: 0.42s;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(244, 248, 255, 0.28);
  background: rgba(6, 14, 28, 0.36);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 248, 255, 0.9);
}

.project-hero-title {
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: #f7fbff;
}

.project-hero-support {
  max-width: 64ch;
  font-size: clamp(0.98rem, 1.3vw, 1.16rem);
  line-height: 1.48;
  color: rgba(236, 244, 255, 0.84);
}

.project-live-btn {
  width: fit-content;
  min-height: 48px;
  padding-inline: 34px;
  text-decoration: none;
}

.project-about {
  padding-block: clamp(24px, 3.6vw, 54px);
}

.project-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(22px, 3.8vw, 60px);
  align-items: start;
}

.project-about-copy h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.7rem);
  color: #f3f8ff;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.project-about-copy p {
  max-width: 68ch;
  color: rgba(223, 233, 247, 0.82);
  line-height: 1.7;
  font-size: clamp(0.98rem, 1.16vw, 1.06rem);
}

.project-about-copy p + p {
  margin-top: 12px;
}

.project-info-card {
  border-radius: 22px;
  border: 1px solid rgba(244, 248, 255, 0.14);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 18, 35, 0.62);
  box-shadow: 0 16px 36px rgba(2, 8, 20, 0.28);
  padding: clamp(18px, 2.1vw, 26px);
}

.project-info-card h3 {
  font-size: clamp(1.08rem, 1.56vw, 1.34rem);
  letter-spacing: -0.02em;
  color: #f3f8ff;
  margin-bottom: 10px;
}

.project-info-list {
  display: grid;
  gap: 11px;
}

.project-info-row {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(239, 245, 255, 0.12);
}

.project-info-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.project-info-row dt {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(179, 199, 226, 0.86);
}

.project-info-row dd {
  margin-top: 4px;
  color: rgba(239, 245, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.45;
}

.project-visuals {
  padding-block: clamp(14px, 3.2vw, 48px);
}

.project-shot {
  margin: 0;
  border-radius: clamp(18px, 2.2vw, 26px);
  overflow: hidden;
  border: 1px solid rgba(240, 246, 255, 0.14);
  background: #0d172b;
  box-shadow: 0 20px 42px rgba(2, 8, 20, 0.32);
}

.project-shot-large {
  margin-bottom: clamp(22px, 3.6vw, 44px);
}

.project-shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.3vw, 22px);
}

.project-shot img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-shot-large img {
  aspect-ratio: 16 / 9;
}

.project-shot:hover img {
  transform: scale(1.04);
}

.project-results {
  padding-block: clamp(30px, 4.4vw, 64px);
  text-align: center;
}

.project-results h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  color: #f4f8ff;
  letter-spacing: -0.025em;
}

.project-results-note {
  margin-top: 10px;
  color: rgba(217, 228, 245, 0.8);
  font-size: clamp(0.96rem, 1.2vw, 1.08rem);
}

.project-metric-grid {
  margin-top: clamp(20px, 2.8vw, 34px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 18px);
}

.project-metric {
  border-radius: 18px;
  border: 1px solid rgba(241, 246, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(8, 18, 35, 0.62);
  padding: clamp(16px, 2.1vw, 22px);
}

.project-metric h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1;
  color: #f4f8ff;
  letter-spacing: -0.02em;
}

.project-metric p {
  margin-top: 8px;
  color: rgba(223, 233, 247, 0.8);
  font-size: 0.94rem;
  line-height: 1.48;
}

.project-cta {
  margin-top: clamp(22px, 3.8vw, 52px);
  border-radius: clamp(22px, 2.4vw, 30px);
  border: 1px solid rgba(242, 247, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(9, 19, 38, 0.72);
  padding: clamp(28px, 4.8vw, 56px) clamp(18px, 4vw, 46px);
  text-align: center;
}

.project-cta h2 {
  font-size: clamp(1.68rem, 2.7vw, 2.6rem);
  color: #f5f9ff;
  letter-spacing: -0.024em;
}

.project-cta p {
  margin: 12px auto 0;
  max-width: 52ch;
  color: rgba(223, 233, 247, 0.82);
  line-height: 1.62;
  font-size: clamp(0.96rem, 1.18vw, 1.06rem);
}

.project-cta-btn {
  margin-top: 22px;
  min-height: 54px;
  padding-inline: clamp(30px, 3.8vw, 54px);
}

.project-reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.project-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.project-metric.project-reveal:nth-child(1) {
  transition-delay: 40ms;
}

.project-metric.project-reveal:nth-child(2) {
  transition-delay: 120ms;
}

.project-metric.project-reveal:nth-child(3) {
  transition-delay: 200ms;
}

@media (max-width: 1024px) {
  .project-shell {
    width: min(1240px, calc(100% - 10vw));
  }

  .project-hero-visual {
    min-height: clamp(380px, 58vh, 560px);
  }

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

  .project-info-card {
    max-width: 560px;
  }

  .project-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .project-main {
    padding-top: 76px;
    padding-bottom: 56px;
  }

  .project-shell {
    width: calc(100% - 8vw);
  }

  .project-hero-banner {
    padding-bottom: 34px;
  }

  .project-hero-visual {
    min-height: clamp(330px, 58vh, 450px);
    border-radius: 20px;
  }

  .project-hero-content {
    padding: 18px;
    gap: 10px;
  }

  .project-tags {
    gap: 8px;
  }

  .project-tag {
    font-size: 0.68rem;
    padding: 5px 10px;
  }

  .project-hero-title {
    font-size: clamp(1.62rem, 8.6vw, 2.44rem);
  }

  .project-hero-support {
    font-size: clamp(0.92rem, 4vw, 1rem);
    line-height: 1.46;
  }

  .project-live-btn {
    min-height: 46px;
    padding-inline: 28px;
  }

  .project-about {
    padding-block: 20px 34px;
  }

  .project-about-copy h2 {
    font-size: clamp(1.36rem, 6.8vw, 1.94rem);
  }

  .project-about-copy p {
    font-size: 0.95rem;
    line-height: 1.62;
  }

  .project-info-card {
    border-radius: 18px;
    padding: 16px;
  }

  .project-visuals {
    padding-block: 0 32px;
  }

  .project-shot {
    border-radius: 16px;
  }

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

  .project-results {
    padding-block: 26px 34px;
  }

  .project-results-note {
    font-size: 0.92rem;
  }

  .project-metric-grid {
    margin-top: 16px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .project-metric {
    border-radius: 14px;
    padding: 14px;
  }

  .project-cta {
    margin-top: 14px;
    border-radius: 20px;
    padding: 24px 16px;
  }

  .project-cta p {
    font-size: 0.94rem;
    line-height: 1.58;
  }

  .project-cta-btn {
    width: 100%;
    margin-top: 18px;
    min-height: 50px;
    padding-inline: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rotating-line,
  .hero-text,
  .project-card,
  .about-title,
  .project-hero-image img,
  .project-hero-content > *,
  .project-reveal,
  .about-line,
  .btn,
  .form-message {
    transition-duration: 0.01ms !important;
  }

  .hero-headline.is-changing,
  .hero-subline.is-changing {
    transform: none;
    filter: none;
  }
}













/* .spline-wrapper {
  width: 100%;
  height: 100%;
  min-height: 500px;
  position: absolute;
}

spline-viewer {
  width: 100%;       
  height: 100%;
} */
