:root {
  --crimson: #b7001a;
  --crimson-deep: #7a000f;
  --peach: #ffd8ce;
  --blush: #e2827e;
  --ink: #241512;
  --ink-soft: rgba(36, 21, 18, 0.62);
  --ink-faint: rgba(36, 21, 18, 0.38);
  --paper: #fff8f4;
  --ring: rgba(183, 0, 26, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
}

.ambient {
  position: absolute;
  top: -10%;
  right: -8%;
  width: 560px;
  height: 560px;
  background: radial-gradient(
    circle,
    rgba(255, 216, 206, 0.85) 0%,
    rgba(255, 216, 206, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

/* ============ CUSTOM DIRECTIONAL CURSOR ============ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 28px;
  pointer-events: none;
  z-index: 9999;
  display: none;
  transform: translate(-50%, -50%) rotate(0deg);
  transition:
    left 0.11s cubic-bezier(0.16, 0.9, 0.35, 1),
    top 0.11s cubic-bezier(0.16, 0.9, 0.35, 1),
    transform 0.16s ease-out;
  will-change: transform, left, top;
}

body.custom-cursor-active .cursor {
  display: block;
}

body.custom-cursor-active,
body.custom-cursor-active * {
  cursor: none !important;
}

body.custom-cursor-active input,
body.custom-cursor-active textarea {
  cursor: text !important;
}

/* ============ NAVBAR ============ */
.navbar-wrap {
  padding: clamp(18px, 3vw, 28px) 0;
}

.navbar {
  /* position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, calc(100% - clamp(20px, 5vw, 56px)));
  z-index: 999; */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(183, 0, 26, 0.1);
  border-radius: 999px;
  padding: 10px 10px 10px 22px;
  box-shadow: 0 20px 40px -28px rgba(36, 21, 18, 0.35);
}

.nav-logo {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-logo span {
  color: var(--crimson);
}

.nav-links {
  display: flex;
  gap: clamp(18px, 2.5vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--crimson);
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
  }
}

/* ============ ORIGIN BUTTON (cursor-anchored fill) ============ */
.origin-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--crimson);
  background: transparent;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--crimson-deep);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.origin-btn--inverse {
  background: var(--crimson);
  color: var(--paper);
}

.origin-btn--secondary {
  border-color: rgba(36, 21, 18, 0.22);
}

.origin-fill {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--crimson);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  pointer-events: none;
}

.origin-btn--inverse .origin-fill {
  background: var(--paper);
}

.origin-btn--secondary .origin-fill {
  background: var(--ink);
}

.origin-btn.is-hover .origin-fill {
  transform: translate(-50%, -50%) scale(1);
}

.origin-label {
  position: relative;
  z-index: 1;
  color: var(--crimson);
  transition: color 0.35s ease;
}

.origin-btn--inverse .origin-label {
  color: var(--paper);
}

.origin-btn--secondary .origin-label {
  color: var(--ink);
}

.origin-btn.origin-btn--inverse.is-hover .origin-label {
  color: var(--crimson);
}

.origin-btn.is-hover .origin-label {
  color: var(--paper);
}

.nav-cta {
  padding: 10px 20px;
  font-size: 0.88rem;
}

/* ============ HERO ============ */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
  padding: clamp(12px, 2vh, 28px) 0 clamp(40px, 7vh, 72px);
  min-height: 78vh;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--peach);
  color: var(--crimson-deep);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(183, 0, 26, 0.45);
  }

  70% {
    box-shadow: 0 0 0 7px rgba(183, 0, 26, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(183, 0, 26, 0);
  }
}

@media (max-width: 900px) {
  .pill {
    margin-left: auto;
    margin-right: auto;
  }
}

.name {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.name .stop {
  color: var(--crimson);
}

.role-line {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-soft);
  margin: 0 0 22px;
  min-height: 1.5em;
}

.role-line .prompt {
  color: var(--ink-faint);
  margin-right: 10px;
}

.role-line .role-text {
  color: var(--crimson);
  font-weight: 500;
}

.role-line .cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--crimson);
  margin-left: 2px;
  vertical-align: -0.15em;
  animation: blink 1s step-end infinite;
}

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

.tagline {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 0 32px;
}

@media (max-width: 900px) {
  .tagline {
    margin-left: auto;
    margin-right: auto;
  }
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

@media (max-width: 900px) {
  .cta-row {
    justify-content: center;
  }
}

/* ============ DOCK (magnify, social links) ============ */
.dock {
  display: flex;
  align-items: flex-end;
  gap: 25px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

#dock {
  margin: 50px auto 0;
}

@media (max-width: 900px) {
  .dock {
    margin: 0 auto;
  }
}

.dock-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.18s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
  transform-origin: bottom center;
}

.dock-icon:hover {
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 12px 28px rgba(183, 0, 26, 0.25);
}

.dock-icon svg {
  width: 20px;
  height: 20px;
}

/* ============ PHOTO STACK ============ */
.photo-col {
  display: flex;
  justify-content: center;
}

.photo-stack {
  position: relative;
  width: min(340px, 72vw);
  aspect-ratio: 835/985;
}

.card {
  position: absolute;
  inset: 0;
  border-radius: 20px;
}

.card-back-2 {
  background: var(--peach);
  transform: translate(20px, 20px) rotate(6deg);
  z-index: 1;
}

.card-back-1 {
  background: var(--blush);
  transform: translate(10px, 10px) rotate(-3deg);
  z-index: 2;
}

.card-front {
  z-index: 3;
  overflow: hidden;
  box-shadow: 0 36px 70px -26px rgba(36, 21, 18, 0.4);
  animation: driftTilt 8s ease-in-out infinite;
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes driftTilt {
  0% {
    transform: translateY(0) rotate(-0.6deg);
  }

  50% {
    transform: translateY(-12px) rotate(0.8deg);
  }

  100% {
    transform: translateY(0) rotate(-0.6deg);
  }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .pill .dot,
  .cursor-blink,
  .card-front {
    animation: none !important;
  }
}

/* ============ ABOUT ME SECTION ============ */
.about-section {
  padding: clamp(60px, 10vh, 120px) 0;
  border-top: 1px solid rgba(183, 0, 26, 0.08);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

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

.about-left {
  display: flex;
  flex-direction: column;
}

.about-header {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 24px 0;
  letter-spacing: -0.01em;
}

.about-header span {
  color: var(--crimson);
}

.about-subtitle {
  font-family: "Inter", sans-serif;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--crimson);
  margin: 0 0 28px 0;
}

.about-text {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 22px 0;
}

.about-text strong {
  color: var(--ink);
  font-weight: 600;
}

.about-text:last-of-type {
  margin-bottom: 0;
}

/* ============ RAG BOT COMPONENT ============ */
.bot-container {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(183, 0, 26, 0.12);
  border-radius: 28px;
  box-shadow: 0 30px 60px -25px rgba(36, 21, 18, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 520px;
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.bot-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 35px 70px -20px rgba(36, 21, 18, 0.25);
}

.bot-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(183, 0, 26, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 216, 206, 0.25);
}

.bot-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bot-title {
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.bot-title span {
  color: var(--crimson);
}

.bot-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(183, 0, 26, 0.05);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.bot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.bot-messages::-webkit-scrollbar {
  width: 6px;
}
.bot-messages::-webkit-scrollbar-track {
  background: transparent;
}
.bot-messages::-webkit-scrollbar-thumb {
  background: var(--peach);
  border-radius: 99px;
}

.chat-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.45;
  animation: bubblePop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes bubblePop {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.chat-bubble.bot {
  background: #fff;
  color: var(--ink);
  align-self: flex-start;
  border-top-left-radius: 4px;
  box-shadow: 0 4px 12px rgba(36, 21, 18, 0.04);
  border: 1px solid rgba(36, 21, 18, 0.05);
}
.chat-bubble.user {
  background: var(--crimson);
  color: var(--paper);
  align-self: flex-end;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(183, 0, 26, 0.12);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 8px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: var(--blush);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}
.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typingBounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

.bot-quick-prompts {
  padding: 12px 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(183, 0, 26, 0.05);
  background: rgba(255, 255, 255, 0.3);
}

.prompt-chip {
  background: #fff;
  border: 1px solid rgba(183, 0, 26, 0.15);
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--crimson-deep);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.prompt-chip:hover {
  background: var(--peach);
  border-color: var(--crimson);
  transform: translateY(-1px);
}

.bot-input-area {
  padding: 12px 24px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-top: 1px solid rgba(183, 0, 26, 0.05);
}

.bot-input {
  flex: 1;
  border: 1.5px solid rgba(36, 21, 18, 0.1);
  border-radius: 99px;
  padding: 10px 18px;
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
  font-family: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.bot-input:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px var(--ring);
}

.bot-send-btn {
  background: var(--crimson);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bot-send-btn:hover {
  background: var(--crimson-deep);
  transform: scale(1.05);
}

.bot-send-btn svg {
  width: 16px;
  height: 16px;
  transform: translate(1px, -0.5px);
}

/* ============ MARQUEE COMPONENT ============ */
.marquee-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  background: var(--peach);
  border-top: 1.5px solid var(--crimson);
  border-bottom: 1.5px solid var(--crimson);
  padding: 16px 0;
  margin-top: clamp(40px, 8vh, 80px);
  user-select: none;
}

.marquee-content {
  display: flex;
  gap: 45px;
  white-space: nowrap;
  animation: scrollMarquee 30s linear infinite;
  width: max-content;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-item {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--crimson-deep);
  display: flex;
  align-items: center;
  gap: 16px;
}

.marquee-star {
  color: var(--crimson);
  font-size: 1.1rem;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 22.5px));
  }
}

/* ============ PROJECTS SECTION ============ */
.projects-section {
  padding: clamp(60px, 10vh, 120px) 0;
  border-top: 1px solid rgba(183, 0, 26, 0.08);
  position: relative;
}

.projects-title {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 clamp(30px, 6vh, 60px) 0;
  letter-spacing: -0.01em;
}
#skill-title {
  text-align: center;
}
.projects-title span {
  color: var(--crimson);
}

.projects-grid {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: stretch;
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
  }
}

.projects-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 900px) {
  .projects-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 12px;
    gap: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--peach) transparent;
  }
  .projects-tabs::-webkit-scrollbar {
    height: 4px;
  }
  .projects-tabs::-webkit-scrollbar-thumb {
    background: var(--peach);
    border-radius: 99px;
  }
}

.project-tab {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(183, 0, 26, 0.08);
  border-radius: 18px;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-family: "Inter", sans-serif;
  outline: none;
}

@media (max-width: 900px) {
  .project-tab {
    padding: 12px 20px;
    flex-shrink: 0;
  }
}

.project-tab:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(183, 0, 26, 0.2);
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .project-tab:hover {
    transform: translateY(-2px);
  }
}

.project-tab.active {
  background: #fff;
  border-color: var(--crimson);
  box-shadow: 0 15px 35px -12px rgba(183, 0, 26, 0.12);
  transform: translateX(8px);
}

@media (max-width: 900px) {
  .project-tab.active {
    transform: translateY(-4px);
  }
}

.tab-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blush);
  background: rgba(255, 216, 206, 0.35);
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.project-tab.active .tab-num {
  color: var(--crimson);
  background: var(--peach);
}

.tab-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.project-tab.active .tab-name {
  color: var(--ink);
}

/* --- Project Details Viewport --- */
.project-details {
  background: #fff;
  border: 1px solid rgba(183, 0, 26, 0.1);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 44px);
  box-shadow: 0 25px 50px -20px rgba(36, 21, 18, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.project-details.fade-out {
  opacity: 0;
  transform: translateY(12px);
}

.project-showcase {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-visual {
  flex: 1;
  min-height: 168px;
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid rgba(183, 0, 26, 0.12);
  border-radius: 22px;
  isolation: isolate;
  background:
    linear-gradient(
      115deg,
      rgba(255, 216, 206, 0.42),
      rgba(255, 255, 255, 0.86)
    ),
    var(--paper);
  box-shadow: inset 0 0 40px rgba(183, 0, 26, 0.05);
  transform: perspective(900px) rotateX(2deg);
}

.project-visual-grid {
  position: absolute;
  inset: -40%;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(183, 0, 26, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 0, 26, 0.16) 1px, transparent 1px);
  background-size: 28px 28px;
  transform: perspective(300px) rotateX(58deg) translateY(26px);
  animation: projectGridDrift 12s linear infinite;
}

.project-visual-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(183, 0, 26, 0.42);
  border-radius: 20px;
  background: rgba(255, 248, 244, 0.88);
  box-shadow:
    0 12px 30px rgba(183, 0, 26, 0.14),
    inset 0 0 0 6px rgba(255, 216, 206, 0.32);
  color: var(--ink);
  text-align: center;
  transform: translate(-50%, -50%) rotate(-5deg);
  animation: projectCoreFloat 4s ease-in-out infinite;
}

.project-core-mark {
  margin-bottom: -6px;
  color: var(--crimson);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  font-weight: 600;
}

.project-visual-core strong {
  font-family: "Fraunces", serif;
  font-size: 0.82rem;
  line-height: 0.92;
}

.project-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  border: 1px solid rgba(183, 0, 26, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.project-orbit--outer {
  width: min(42vw, 430px);
  height: min(20vw, 205px);
  animation: projectOrbit 9s linear infinite;
}

.project-orbit--inner {
  width: min(30vw, 300px);
  height: min(14vw, 140px);
  border-color: rgba(183, 0, 26, 0.18);
  transform: translate(-50%, -50%) rotate(35deg);
  animation: projectOrbitReverse 7s linear infinite;
}

.project-orbit--wide {
  width: min(56vw, 570px);
  height: min(25vw, 255px);
  border-color: rgba(183, 0, 26, 0.14);
  transform: translate(-50%, -50%) rotate(62deg);
  animation: projectOrbitWide 13s linear infinite;
}

.project-orbit--tilted {
  width: min(48vw, 490px);
  height: min(17vw, 175px);
  border-color: rgba(183, 0, 26, 0.11);
  transform: translate(-50%, -50%) rotate(-52deg);
  animation: projectOrbitTilted 11s linear infinite;
}

.project-node {
  position: absolute;
  z-index: 3;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--crimson);
  box-shadow:
    0 0 0 4px rgba(183, 0, 26, 0.12),
    0 0 18px rgba(183, 0, 26, 0.32);
}

.project-node--one {
  top: 22%;
  left: 31%;
  animation: projectNodeBlink 2.2s ease-in-out infinite;
}

.project-node--two {
  top: 67%;
  left: 66%;
  animation: projectNodeBlink 2.2s 0.7s ease-in-out infinite;
}

.project-node--three {
  top: 31%;
  left: 72%;
  animation: projectNodeBlink 2.2s 1.3s ease-in-out infinite;
}

.project-node--four {
  top: 18%;
  left: 51%;
  animation: projectNodeBlink 2.2s 0.35s ease-in-out infinite;
}

.project-node--five {
  top: 76%;
  left: 42%;
  animation: projectNodeBlink 2.2s 0.9s ease-in-out infinite;
}

.project-node--six {
  top: 47%;
  left: 18%;
  animation: projectNodeBlink 2.2s 1.55s ease-in-out infinite;
}

.project-node--seven {
  top: 80%;
  left: 78%;
  animation: projectNodeBlink 2.2s 1.85s ease-in-out infinite;
}

.project-node--eight {
  top: 54%;
  left: 84%;
  animation: projectNodeBlink 2.2s 0.15s ease-in-out infinite;
}

.project-visual-caption {
  position: absolute;
  right: 18px;
  bottom: 15px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: var(--crimson-deep);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@keyframes projectGridDrift {
  to {
    transform: perspective(300px) rotateX(58deg) translateY(54px);
  }
}

@keyframes projectCoreFloat {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -7px;
  }
}

@keyframes projectOrbit {
  to {
    transform: translate(-50%, -50%) rotate(342deg);
  }
}

@keyframes projectOrbitReverse {
  to {
    transform: translate(-50%, -50%) rotate(-325deg);
  }
}

@keyframes projectOrbitWide {
  to {
    transform: translate(-50%, -50%) rotate(-298deg);
  }
}

@keyframes projectOrbitTilted {
  to {
    transform: translate(-50%, -50%) rotate(308deg);
  }
}

@keyframes projectNodeBlink {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

.project-build-loop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 14px 4px 0;
  border-top: 1px solid rgba(183, 0, 26, 0.1);
  color: var(--ink-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.project-loop-label,
.project-loop-steps {
  display: flex;
  align-items: center;
  gap: 9px;
}

.project-loop-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 0 rgba(183, 0, 26, 0.35);
  animation: projectPulse 2s infinite;
}

.project-loop-steps {
  color: var(--crimson-deep);
}

.project-loop-steps i {
  width: 28px;
  height: 1px;
  position: relative;
  overflow: hidden;
  background: rgba(183, 0, 26, 0.18);
}

.project-loop-steps i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 9px;
  background: var(--crimson);
  animation: projectSignal 1.8s ease-in-out infinite;
}

@keyframes projectPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(183, 0, 26, 0.32);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(183, 0, 26, 0);
  }
}

@keyframes projectSignal {
  0% {
    transform: translateX(-10px);
  }
  100% {
    transform: translateX(30px);
  }
}

@media (max-width: 600px) {
  .project-visual {
    flex: none;
    min-height: 148px;
  }

  .project-build-loop {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-visual-grid,
  .project-visual-core,
  .project-orbit,
  .project-node {
    animation: none;
  }

  .project-loop-dot,
  .project-loop-steps i::after {
    animation: none;
  }
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-name {
  font-family: "Fraunces", serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.project-subtitle {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--crimson);
  margin: 0;
}

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

.project-link-btn {
  background: var(--paper);
  border: 1px solid rgba(183, 0, 26, 0.15);
  border-radius: 99px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--crimson-deep);
  transition: all 0.25s ease;
  user-select: none;
}

.project-link-btn:hover {
  background: var(--crimson);
  color: var(--paper);
  border-color: var(--crimson);
  box-shadow: 0 10px 20px -8px rgba(183, 0, 26, 0.2);
}

.project-link-btn.coming-soon {
  opacity: 0.7;
  cursor: default;
  border-style: dashed;
}

.project-link-btn.coming-soon:hover {
  background: var(--paper);
  color: var(--crimson-deep);
  border-color: rgba(183, 0, 26, 0.25);
  box-shadow: none;
}

.project-link-btn svg {
  width: 14px;
  height: 14px;
}

.project-body {
  flex: 1;
  margin-bottom: 30px;
}

.project-description {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

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

.project-tag {
  background: rgba(255, 216, 206, 0.35);
  border: 1px solid rgba(183, 0, 26, 0.06);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--crimson-deep);
  transition: all 0.25s ease;
}

.project-tag:hover {
  background: var(--peach);
  border-color: var(--crimson);
}

/* ============ SCROLL INDICATOR ============ */
.scroll-indicator {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -10px;
  opacity: 0.8;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  z-index: 10;
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateY(2px);
}

.scroll-indicator a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--crimson);
  border-radius: 99px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--crimson);
  border-radius: 99px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(8px);
    opacity: 0;
  }
  51% {
    transform: translateY(-4px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.scroll-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-arrows span {
  display: block;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--crimson);
  border-right: 2px solid var(--crimson);
  transform: rotate(45deg);
  margin: -2px 0;
  animation: scrollArrow 1.8s infinite;
  opacity: 0;
}

.scroll-arrows span:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes scrollArrow {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-2px, -2px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(2px, 2px);
  }
}

/* ============ WAVY TICKER SKILLS SECTION ============ */
.skills-section {
  background: var(--paper); /* Matches page theme */
  padding: clamp(80px, 11vh, 110px) 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  border-top: 1px solid rgba(183, 0, 26, 0.08);
  border-bottom: 1px solid rgba(183, 0, 26, 0.08);
  user-select: none;
}

/* Radial ambient glows adjusted for light background */
.skills-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 216, 206, 0.45) 0%,
    rgba(255, 216, 206, 0) 70%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.skills-section::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 85%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(226, 130, 126, 0.15) 0%,
    rgba(226, 130, 126, 0) 70%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.wavy-ticker-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 76px; /* Increased from 32px for more distance between text and waves */
  width: 100%;
}

.wavy-track-container {
  width: 100%;
  height: 90px;
  position: relative;
  overflow: visible;
}

.wavy-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

/* Light Glassmorphic Skill Cards */
.skill-card {
  position: absolute;
  top: 15px; /* Vertical center baseline offset */
  left: 0;
  height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(183, 0, 26, 0.08); /* subtle crimson theme boundary */
  border-radius: 16px;
  padding: 10px 22px;
  color: var(--ink); /* main ink text color */
  font-size: 0.95rem;
  font-weight: 550;
  font-family: "Inter", sans-serif;
  white-space: nowrap;
  box-shadow:
    0 8px 30px rgba(36, 21, 18, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.85);
  transition:
    border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.1s ease-out;
  cursor: pointer;
}

.skill-card:hover {
  background: var(--peach); /* theme accent */
  border-color: var(--crimson);
  color: var(--crimson-deep);
  box-shadow:
    0 10px 28px rgba(183, 0, 26, 0.14),
    0 0 10px rgba(183, 0, 26, 0.06);
}

.skill-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skill-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Central Typography */
.skills-caption-wrap {
  text-align: center;
  position: relative;
  z-index: 5;
  padding: 10px 0;
}

.skills-caption {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink); /* Matches standard headers */
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: none;
  display: inline-block;
  position: relative;
}

.skills-caption span {
  color: var(--crimson);
}

.skills-caption::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
}

/* ============ CERTIFICATIONS SECTION ============ */
.certifications-section {
  padding: clamp(60px, 10vh, 120px) 0;
  border-top: 1px solid rgba(183, 0, 26, 0.08);
  position: relative;
}

#certifications-title {
  margin-bottom: clamp(30px, 5vh, 50px);
}

.slice-carousel {
  display: flex;
  gap: 16px;
  width: 100%;
  height: 420px;
  align-items: stretch;
  overflow: hidden;
}

@media (max-width: 768px) {
  .slice-carousel {
    flex-direction: column;
    height: auto;
    gap: 12px;
  }
}

.slice-item {
  flex: 1;
  display: flex;
  position: relative;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(183, 0, 26, 0.08);
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px -15px rgba(36, 21, 18, 0.03);
  transition:
    flex 0.65s cubic-bezier(0.2, 1, 0.22, 1),
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

@media (max-width: 768px) {
  .slice-item {
    flex: none !important;
    height: 90px;
    width: 100%;
    transition: height 0.65s cubic-bezier(0.2, 1, 0.22, 1);
  }
}

.slice-item.active {
  flex: 6;
  background: #fff;
  border-color: var(--crimson);
  box-shadow:
    0 25px 60px -20px rgba(183, 0, 26, 0.08),
    0 1px 2px rgba(183, 0, 26, 0.03);
  cursor: default;
}

@media (max-width: 768px) {
  .slice-item.active {
    height: 380px;
  }
}

.slice-item:not(.active):hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(183, 0, 26, 0.2);
  box-shadow: 0 15px 35px -10px rgba(183, 0, 26, 0.05);
}

/* --- Collapsed View --- */
.slice-collapsed {
  width: 70px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
  flex-shrink: 0;
  user-select: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .slice-collapsed {
    width: 100%;
    height: 90px;
    flex-direction: row;
    padding: 0 24px;
  }
}

.slice-item.active .slice-collapsed {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .slice-item.active .slice-collapsed {
    display: none;
  }
}

.slice-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blush);
  background: rgba(255, 216, 206, 0.35);
  padding: 4px 8px;
  border-radius: 8px;
}

.slice-vertical-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  letter-spacing: 0.05em;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .slice-vertical-title {
    writing-mode: horizontal-tb;
    transform: none;
    margin-top: 0;
  }
}

/* --- Expanded View --- */
.slice-expanded {
  flex: 1;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow: hidden;
}

.slice-item.active .slice-expanded {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.45s ease 0.15s;
}

.cert-card {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 44px);
  padding: clamp(24px, 5vw, 44px);
}

@media (max-width: 768px) {
  .cert-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    height: 100%;
    justify-content: center;
  }
}

.cert-logo-container {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  background: rgba(255, 216, 206, 0.25);
  border: 1.5px solid rgba(183, 0, 26, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--crimson);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cert-logo-container {
    width: 60px;
    height: 60px;
    border-radius: 12px;
  }
}

.cert-svg {
  width: 42px;
  height: 42px;
}

@media (max-width: 768px) {
  .cert-svg {
    width: 28px;
    height: 28px;
  }
}

.cert-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 580px;
}

.cert-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--crimson);
  background: rgba(255, 216, 206, 0.35);
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.cert-name {
  font-family: "Fraunces", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.cert-org {
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.cert-description {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.88rem, 1.1vw, 0.98rem);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 24px 0;
}

@media (max-width: 768px) {
  .cert-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
  }
}

.cert-verify-btn {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* ============ CONTACT SECTION ============ */
.contact-section {
  padding: clamp(60px, 10vh, 120px) 0;
  border-top: 1px solid rgba(183, 0, 26, 0.08);
  position: relative;
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

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

.contact-left {
  display: flex;
  flex-direction: column;
}

.contact-header {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 24px 0;
  letter-spacing: -0.01em;
}

.contact-header span {
  color: var(--crimson);
}

.contact-subtitle {
  font-family: "Inter", sans-serif;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--crimson);
  margin: 0 0 28px 0;
}

.contact-text {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 22px 0;
}

.contact-email {
  color: var(--crimson);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1.5px solid transparent;
  transition:
    border-color 0.25s ease,
    color 0.25s ease;
}

.contact-email:hover {
  color: var(--crimson-deep);
  border-color: var(--crimson-deep);
}

/* Glassmorphic Form Card (Matches RAG Chatbot Card) */
.form-container {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(183, 0, 26, 0.12);
  border-radius: 28px;
  box-shadow: 0 30px 60px -25px rgba(36, 21, 18, 0.15);
  padding: clamp(24px, 4vw, 36px);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.form-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 35px 70px -20px rgba(36, 21, 18, 0.25);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

/* Inputs & Textareas wrappers */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid rgba(36, 21, 18, 0.1);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.5);
  padding: 0 18px;
  height: 48px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
  overflow: hidden;
}

.input-wrapper svg {
  color: var(--ink-soft);
  flex-shrink: 0;
  transition: color 0.25s ease;
}

.form-input {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
}

.form-textarea {
  width: 100%;
  border: 1.5px solid rgba(36, 21, 18, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  padding: 14px 18px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  resize: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

/* Focus and hover states */
.input-wrapper:focus-within {
  border-color: var(--crimson);
  background: #fff;
  box-shadow: 0 0 0 3px var(--ring);
}

.input-wrapper:focus-within svg {
  color: var(--crimson);
}

.form-textarea:focus {
  border-color: var(--crimson);
  background: #fff;
  box-shadow: 0 0 0 3px var(--ring);
}

/* Submit Button Override */
.form-submit-btn {
  align-self: flex-start;
  width: 100%;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  color: var(--crimson);
  font-size: 0.95rem;
  font-weight: 600;
  height: 48px;
  padding: 0;
}

.form-submit-btn .btn-arrow {
  margin-top: 2px;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-submit-btn.is-hover .btn-arrow {
  transform: translateX(4px);
}

/* Form Success Card style */
.form-success-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 216, 206, 0.35);
  border: 1.5px solid var(--crimson);
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 20px rgba(183, 0, 26, 0.1);
}

.success-icon-wrap svg {
  width: 32px;
  height: 32px;
}

.form-success-card h3 {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px 0;
}

.form-success-card p {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 24px 0;
  line-height: 1.5;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ============ SCROLL VELOCITY TEXT MARQUEE ============ */
.text-marquee-section {
  padding: clamp(30px, 5vh, 60px) 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  background: var(--paper);
  border-top: 1px solid rgba(183, 0, 26, 0.08);
  border-bottom: 1px solid rgba(183, 0, 26, 0.08);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vh, 32px);
  user-select: none;
}

.marquee-track {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.marquee-flex-wrap {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-scroll-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 6.5vw, 5.2rem);
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.07em;
  padding-right: 0.5em; /* relative spacing */
}

/* Row 1 text color: Solid Crimson */
#velocityTrack1 .marquee-scroll-content {
  color: var(--crimson);
}

/* Row 2 text color: Transparent outline using ink color */
#velocityTrack2 .marquee-scroll-content {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

@media (max-width: 768px) {
  #velocityTrack2 .marquee-scroll-content {
    -webkit-text-stroke: 1px var(--ink);
  }
}

/* ============ FOOTER STYLING ============ */
.footer {
  position: relative;
  background: var(--crimson-deep);
  color: var(--paper);
  padding: clamp(60px, 8vh, 100px) 0 clamp(40px, 6vh, 60px) 0;
  margin-top: 140px; /* space for the wave transition */
  text-align: center;
  z-index: 10;
}

.footer-wave {
  position: absolute;
  top: -118px; /* overlap to prevent gaps */
  left: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  color: var(--crimson-deep);
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--paper);
  margin: 0;
}

.footer-logo span {
  color: var(--crimson);
}

.footer-quote-wrap {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: flex-start;
  max-width: 600px;
  margin: 0 auto;
}

.footer-quote {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 248, 244, 0.75);
  margin: 0;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.footer-quote.fade-out {
  opacity: 0;
}

.quote-icon {
  font-family: "Fraunces", serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--crimson);
  user-select: none;
}

.footer-copy {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255, 248, 244, 0.4);
  margin: 12px 0 0 0;
  letter-spacing: 0.02em;
}

/* ============ LENIS SMOOTH SCROLLING ============ */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ============ SCROLL REVEAL ANIMATIONS ============ */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
      opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-reveal--left {
    transform: translateX(-40px);
  }

  .scroll-reveal--right {
    transform: translateX(40px);
  }

  .scroll-reveal--scale {
    transform: scale(0.95) translateY(15px);
  }

  .scroll-reveal--left.revealed,
  .scroll-reveal--right.revealed {
    transform: translateX(0);
  }

  .scroll-reveal--scale.revealed {
    transform: scale(1) translateY(0);
  }

  /* Stagger delays */
  .delay-100 {
    transition-delay: 100ms;
  }
  .delay-200 {
    transition-delay: 200ms;
  }
  .delay-300 {
    transition-delay: 300ms;
  }
  .delay-400 {
    transition-delay: 400ms;
  }
  .delay-500 {
    transition-delay: 500ms;
  }
}

/* ============ HERO ENTRANCE ANIMATIONS ============ */
@media (prefers-reduced-motion: no-preference) {
  .hero-left {
    animation: fadeInUpHero 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .photo-col {
    animation: fadeInHeroPhoto 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.15s;
  }
}

@keyframes fadeInUpHero {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInHeroPhoto {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
