/* =========================
   THEME TOKENS
   ========================= */

:root {
  --bg: #02030a;
  --bg-alt: #060713;
  --accent: #e9333b;
  --accent-soft: rgba(233, 51, 59, 0.14);
  --accent-glow: 0 0 40px rgba(233, 51, 59, 0.85);
  --text: #f7f7fb;
  --muted: #a3a3b7;
  --card: #0d0f1c;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.18);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.78);
  --transition-fast: 160ms ease-out;
  --transition-med: 220ms ease-out;
}

/* =========================
   GLOBAL BASE / RESET
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #181720, #02030a 46%, #000 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   CINEMATIC INTRO
   ========================= */

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: radial-gradient(circle at center, #080812 0%, #000 48%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  animation: intro-fade-out 0.9s ease-out 3.4s forwards;
}

.intro-flare {
  position: absolute;
  width: 200%;
  height: 220%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15), transparent 60%),
    radial-gradient(circle at 0% 20%, rgba(233, 51, 59, 0.6), transparent 55%),
    radial-gradient(circle at 100% 80%, rgba(233, 51, 59, 0.4), transparent 55%);
  opacity: 0;
  mix-blend-mode: screen;
  animation:
    intro-flare-in 0.8s ease-out 0.1s forwards,
    intro-flare-drift 3s ease-in-out 0.9s forwards;
}

.intro-title-wrapper {
  position: relative;
  display: inline-flex;
  padding: 18px 32px;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 75%);
  overflow: visible;
  transform: scale(1.08);
  animation:
    intro-scale-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards,
    intro-title-float 2.6s ease-in-out 1.1s forwards;
}

.intro-title-ring {
  position: absolute;
  inset: -20%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  filter: blur(2px);
  animation: intro-ring-reveal 0.9s ease-out 0.6s forwards;
}

.intro-title {
  position: relative;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
}

.intro-title span {
  display: inline-block;
  background: linear-gradient(120deg, #ffffff, #ffb7b7, #ff6969);
  -webkit-background-clip: text;
  color: transparent;
  transform: translateY(120%);
  opacity: 0;
  animation: intro-letter-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-title span:nth-child(1)  { animation-delay: 0.45s; }
.intro-title span:nth-child(2)  { animation-delay: 0.5s; }
.intro-title span:nth-child(3)  { animation-delay: 0.53s; }
.intro-title span:nth-child(4)  { animation-delay: 0.56s; }
.intro-title span:nth-child(5)  { animation-delay: 0.59s; }
.intro-title span:nth-child(6)  { animation-delay: 0.62s; }
.intro-title span:nth-child(7)  { animation-delay: 0.65s; }
.intro-title span:nth-child(8)  { animation-delay: 0.68s; }
.intro-title span:nth-child(9)  { animation-delay: 0.71s; }
.intro-title span:nth-child(10) { animation-delay: 0.74s; }
.intro-title span:nth-child(11) { animation-delay: 0.77s; }
.intro-title span:nth-child(12) { animation-delay: 0.8s; }
.intro-title span:nth-child(13) { animation-delay: 0.83s; }
.intro-title span:nth-child(14) { animation-delay: 0.86s; }
.intro-title span:nth-child(15) { animation-delay: 0.89s; }
.intro-title span:nth-child(16) { animation-delay: 0.92s; }
.intro-title span:nth-child(17) { animation-delay: 0.95s; }

.intro-streak {
  position: absolute;
  height: 2px;
  width: 0;
  left: -12%;
  bottom: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.9),
    0 0 18px rgba(233, 51, 59, 0.9);
  opacity: 0;
  transform: translate3d(-40%, 0, 0);
  animation:
    intro-streak-run 1.1s cubic-bezier(0.19, 1, 0.22, 1) 1.2s forwards,
    intro-streak-fade 0.6s ease-out 2.2s forwards;
}

/* =========================
   BACKGROUND + LAYOUT
   ========================= */

.bg-rotator {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.9;
}

.bg-rotator-layer {
  position: absolute;
  inset: -8%;
  background-position: center;
  background-size: cover;
  filter: blur(10px) saturate(1.1);
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  mix-blend-mode: soft-light;
}

.bg-rotator-layer.bg-1 {
  background-image: url("https://i.ibb.co/tTp0mCN0/image.png");
}

.bg-rotator-layer.bg-2 {
  background-image: url("https://i.ibb.co/VpMg1ksj/image.png");
}

.bg-rotator-layer.is-active {
  opacity: 0.3;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(12px);
  animation: app-reveal 0.7s ease-out 3s forwards;
}

/* =========================
   HEADER / NAV
   ========================= */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(2, 3, 15, 0.96),
    rgba(2, 3, 15, 0.86),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 22px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-dot {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #ffd6d6, #e9333b 55%, #7c1018 100%);
  box-shadow: var(--accent-glow);
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    filter var(--transition-med);
}

.logo-dot img {
  width: 115%;
  height: 115%;
  object-fit: cover;
  display: block;
}

.logo-dot:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 0 46px rgba(233, 51, 59, 0.95);
  filter: saturate(1.1);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 13px;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

.nav-links a {
  padding: 6px 0;
  position: relative;
  cursor: pointer;
  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e9333b, #ff6a3d);
  transition: width 0.2s ease-out;
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  width: 26px;
}

.pill-small {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.4);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #35d37d;
  box-shadow: 0 0 8px rgba(53, 211, 125, 0.9);
}

/* =========================
   MAIN WRAPPER
   ========================= */

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px 22px 72px;
  position: relative;
  z-index: 1;
}

/* =========================
   HERO
   ========================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 10px 0 34px;
}

.hero-left-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at left, rgba(233, 51, 59, 0.32), transparent 58%);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
  box-shadow: 0 0 0 0 rgba(233, 51, 59, 0);
  transition:
    box-shadow 220ms ease-out,
    transform 220ms ease-out,
    border-color 220ms ease-out;
}

.hero-left-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #e9333b;
  box-shadow: 0 0 10px rgba(233, 51, 59, 0.9);
}

.hero-title {
  font-size: clamp(36px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.04;
  margin-bottom: 12px;
}

.hero-title span {
  background: linear-gradient(120deg, #ffffff, #ffb4b4);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-tagline {
  font-size: 14px;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 22px;
}

.hero-tagline strong {
  color: var(--text);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-primary {
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  outline: none;
  cursor: pointer;
  background: radial-gradient(circle at 20% 0, #ffd3c0, #e9333b 50%, #7b111a 100%);
  color: #050509;
  box-shadow: 0 14px 32px rgba(233, 51, 59, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 40px rgba(233, 51, 59, 0.9);
  filter: saturate(1.05);
}

.btn-secondary {
  border-radius: 999px;
  padding: 9px 17px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 8, 15, 0.82);
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(14, 14, 24, 0.96);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.hero-note {
  font-size: 11px;
  color: var(--muted);
}

.hero-right {
  padding: 16px;
}

.hero-panel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #050509;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
  transform-origin: center;
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    border-color var(--transition-med);
}

.hero-panel:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 28px 66px rgba(0, 0, 0, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.9)),
    url("https://i.ibb.co/1GLCrwHP/image.png") center/cover no-repeat;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 10% 10%, rgba(233, 51, 59, 0.4), transparent 55%),
    url("https://i.ibb.co/2YfFyjk9/image.png") right/60% auto no-repeat,
    url("https://i.ibb.co/bg10nhmf/image.png") left/55% auto no-repeat;
  opacity: 0.55;
}

.hero-panel-inner {
  position: relative;
  padding: 16px 16px 14px;
  z-index: 1;
  background: linear-gradient(180deg, rgba(4, 4, 8, 0.86), rgba(4, 4, 8, 0.96));
}

.hero-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 11px;
  color: var(--muted);
}

.hero-panel-dots {
  display: flex;
  gap: 4px;
}

.hero-panel-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.hero-panel-main {
  font-size: 12px;
  color: var(--muted);
}

.hero-panel-main h2 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text);
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.hero-pill {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--muted);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.hero-pill:hover {
  background: rgba(0, 0, 0, 0.86);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* =========================
   GENERIC SECTIONS
   ========================= */

section {
  margin-top: 46px;
}

.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
}

.section-lead {
  font-size: 13px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 18px;
}

/* =========================
   ABOUT
   ========================= */

.about-card {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(233, 51, 59, 0.14), rgba(7, 7, 15, 0.98)),
    url("https://i.ibb.co/bg10nhmf/image.png") right bottom/38% auto no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
  background-blend-mode: darken;
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    border-color var(--transition-med);
}

.about-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.94);
  border-color: rgba(255, 255, 255, 0.2);
}

.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--muted);
}

.about-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.about-body {
  font-size: 13px;
  color: #e0e0f0;
  max-width: 520px;
}

/* =========================
   PROJECTS
   ========================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  border-radius: var(--radius-md);
  background: radial-gradient(circle at top, rgba(233, 51, 59, 0.2), #05050d);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 13px 13px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.86);
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    border-color var(--transition-med),
    background var(--transition-med);
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.96);
  border-color: rgba(255, 255, 255, 0.26);
  background: radial-gradient(circle at top, rgba(233, 51, 59, 0.28), #05050d);
}

.project-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.18;
  mix-blend-mode: soft-light;
}

.project-card:nth-child(1) .project-bg {
  background-image: url("https://i.ibb.co/1GLCrwHP/image.png");
}

.project-card:nth-child(2) .project-bg {
  background-image: url("https://i.ibb.co/2YfFyjk9/image.png");
}

.project-card:nth-child(3) .project-bg {
  background-image: url("https://i.ibb.co/bg10nhmf/image.png");
}

.project-inner {
  position: relative;
  z-index: 1;
}

.project-tag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 3px;
}

.project-label {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  backdrop-filter: blur(6px);
}

.project-title {
  font-size: 15px;
  font-weight: 500;
}

.project-desc {
  font-size: 12px;
  color: var(--muted);
  flex: 1;
  max-width: 260px;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.project-link {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast);
}

.project-link:hover {
  background: rgba(5, 5, 10, 0.98);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-1px);
}

.project-badge {
  font-size: 11px;
  color: var(--muted);
}

/* =========================
   BOARD
   ========================= */

.board-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.member-card {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(5, 5, 12, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.member-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.92);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(8, 8, 18, 0.98);
}

.member-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffc6c6, #e9333b);
}

.member-name {
  color: var(--text);
}

/* =========================
   CONTACT
   ========================= */

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
}

.contact-card {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(233, 51, 59, 0.12), #05050d),
    url("https://i.ibb.co/2YfFyjk9/image.png") center/cover no-repeat;
  background-blend-mode: darken;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  color: var(--muted);
  transition:
    transform var(--transition-med),
    box-shadow var(--transition-med),
    border-color var(--transition-med);
}

.contact-card:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.9), #05050d),
    url("https://i.ibb.co/1GLCrwHP/image.png") right/55% auto no-repeat;
  background-blend-mode: darken;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.18);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.contact-pill {
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* =========================
   FOOTER
   ========================= */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 52px;
  padding-top: 20px;
  padding-bottom: 26px;
  font-size: 11px;
  color: var(--muted);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: flex-start;
}

.footer-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-nav a {
  padding: 2px 0;
  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
}

.footer-nav a:hover {
  color: #ffffff;
  transform: translateX(1px);
}

.footer-connect {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-bottom {
  max-width: 1160px;
  margin: 14px auto 0;
  padding: 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom a {
  color: var(--text);
}

/* =========================
   SCROLL REVEALS
   ========================= */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  transition:
    opacity 500ms ease-out,
    transform 500ms ease-out,
    filter 500ms ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    padding-top: 2px;
  }

  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-links {
    display: none;
  }

  .intro-title-wrapper {
    padding-inline: 22px;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro-title {
    letter-spacing: 0.12em;
  }
}

/* =========================
   KEYFRAMES
   ========================= */

@keyframes intro-flare-in {
  from { opacity: 0; transform: scale(1.08) translate3d(0, 60px, 0); }
  to   { opacity: 1; transform: scale(1) translate3d(0, 0, 0); }
}

@keyframes intro-flare-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.06) translate3d(-40px, -20px, 0); }
}

@keyframes intro-scale-in {
  from { transform: scale(1.18); filter: blur(4px); }
  to   { transform: scale(1); filter: blur(0); }
}

@keyframes intro-title-float {
  from { transform: translateY(0); }
  50%  { transform: translateY(-4px); }
  to   { transform: translateY(0); }
}

@keyframes intro-ring-reveal {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1.02); }
}

@keyframes intro-letter-rise {
  from { transform: translateY(140%); opacity: 0; }
  55%  { transform: translateY(-8%); opacity: 1; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes intro-streak-run {
  0%   { width: 0;   transform: translate3d(-40%, 0, 0); opacity: 0; }
  20%  { opacity: 1; }
  70%  { width: 150%; transform: translate3d(40%, 0, 0); }
  100% { width: 0;   transform: translate3d(120%, 0, 0); }
}

@keyframes intro-streak-fade {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes intro-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; visibility: hidden; }
}

@keyframes app-reveal {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);   filter: blur(0); }
}
