:root {
  --bg: #080bdb;
  --bg-deep: #040746;
  --bg-dark: #020204;
  --panel: rgba(9, 18, 86, 0.56);
  --panel-strong: rgba(8, 14, 78, 0.78);
  --line: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --subtle: rgba(255, 255, 255, 0.5);
  --accent: #ff3852;
  --shadow: 0 22px 60px rgba(0, 4, 30, 0.45);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #010103 0 66px, #0910c6 66px 420px, #060d8d 420px 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 66px 0 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(79, 101, 255, 0.42), transparent 20%),
    radial-gradient(circle at 14% 44%, rgba(115, 80, 255, 0.18), transparent 18%),
    radial-gradient(circle at 86% 26%, rgba(84, 105, 255, 0.2), transparent 20%),
    linear-gradient(180deg, rgba(5, 8, 60, 0.08), rgba(1, 2, 16, 0.22));
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 66px 0 0;
  background-image: linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 34%, transparent 86%);
  pointer-events: none;
  z-index: -1;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 42px));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding-top: 38px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.nav-wrap,
.footer-wrap {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.brand-copy small {
  color: rgba(255,255,255,0.56);
  font-size: 0.78rem;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.nav-links a span {
  opacity: 0.72;
}

.search-button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  color: white;
  font-size: 1.4rem;
}

.hero {
  position: relative;
  min-height: calc(100vh - 66px);
  overflow: hidden;
  padding: 24px 0 0;
}

.hero-backdrop,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-backdrop {
  background:
    radial-gradient(circle at 17% 56%, rgba(255, 255, 255, 0.08), transparent 20%),
    radial-gradient(circle at 50% 28%, rgba(255,255,255,0.06), transparent 16%),
    radial-gradient(circle at 84% 28%, rgba(255,255,255,0.08), transparent 20%),
    linear-gradient(180deg, rgba(10, 15, 214, 0.96), rgba(6, 12, 145, 0.94));
}

.hero-backdrop::before {
  content: "";
  position: absolute;
  inset: -8% -6% 0;
  background: url("assets/tiger-logo-transparent.png") center 24% / 1000px auto no-repeat;
  opacity: 0.08;
  filter: blur(12px) saturate(0.6);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(4, 5, 20, 0.02) 0%, rgba(5, 8, 36, 0.18) 58%, rgba(3, 4, 14, 0.36) 100%),
    linear-gradient(90deg, rgba(4,5,18,0.24), rgba(4,5,18,0.06) 28%, rgba(4,5,18,0.24));
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 66px);
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: 42px 0 30px;
}

.hero-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.74);
}

.hero-copy {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero-copy h1 {
  margin: 14px 0 0;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p {
  width: min(700px, 100%);
  margin: 18px auto 0;
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-stage {
  position: relative;
  padding: 44px 24px 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(5, 12, 68, 0.1), rgba(2, 4, 30, 0));
}

.hero-ghost,
.hero-ghost-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.08);
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

.hero-ghost {
  top: 34px;
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.hero-ghost-line {
  top: 128px;
  font-size: 0.92rem;
  letter-spacing: 0.36em;
  color: rgba(255,255,255,0.14);
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 0 16px;
  min-height: 430px;
}

.hero-logo {
  width: min(520px, 52vw);
  max-height: 58vh;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.34));
}

.showcase-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.showcase-card {
  padding: 20px 20px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(10, 15, 86, 0.76), rgba(7, 10, 54, 0.64));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.showcase-label,
.section-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.62);
}

.showcase-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.18rem;
}

.showcase-card p {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  line-height: 1.7;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head > div:first-child {
  max-width: 700px;
}

.section h2,
.project-card h3,
.gallery-body h3,
.ability-card h3,
.cta-card h2,
.contact-card h2,
.about-card h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.section-head h2,
.about-card h2,
.cta-card h2,
.contact-card h2 {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 1.04;
  margin-top: 10px;
}

.section-head p,
.about-card p,
.cta-card p,
.contact-card p,
.project-desc,
.gallery-body p,
.ability-card p,
.empty-state p {
  color: var(--muted);
  font-size: 1rem;
}

.filters {
  display: grid;
  gap: 14px;
  min-width: min(100%, 460px);
}

.filters input {
  min-height: 48px;
  padding: 0 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  color: white;
}

.filters input::placeholder {
  color: rgba(255,255,255,0.44);
}

.chip-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: white;
  cursor: pointer;
}

.chip.active {
  background: white;
  color: #09103d;
}

.projects-grid,
.gallery-grid,
.abilities-grid {
  display: grid;
  gap: 22px;
}

.projects-grid {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-grid {
  grid-template-columns: repeat(3, 1fr);
}

.abilities-grid {
  grid-template-columns: repeat(2, 1fr);
}

.project-card,
.gallery-card,
.panel-card,
.ability-card,
.empty-state {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(17, 26, 114, 0.8), rgba(8, 12, 54, 0.76));
  box-shadow: var(--shadow);
}

.project-card,
.ability-card {
  padding: 22px;
}

.project-top,
.project-bottom,
.gallery-meta,
.contact-card,
.cta-card,
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
}

.project-cover,
.gallery-cover {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.project-cover {
  height: 220px;
  margin: 16px 0 18px;
  background: linear-gradient(145deg, rgba(14, 22, 140, 0.9), rgba(6, 10, 70, 0.82));
}

.project-cover::before,
.gallery-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/tiger-logo-transparent.png") center / 70% auto no-repeat;
  opacity: 0.18;
}

.project-cover::after,
.gallery-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,6,28,0.06), rgba(4,5,20,0.48));
}

.project-cover span,
.gallery-cover span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.84);
}

.project-card h3,
.gallery-body h3,
.ability-card h3 {
  font-size: 1.34rem;
}

.project-desc,
.ability-card p,
.gallery-body p {
  margin: 10px 0 0;
}

.project-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.project-tags span,
.tag-list span {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.84rem;
}

.project-link {
  font-size: 0.92rem;
  white-space: nowrap;
}

.gallery-card {
  overflow: hidden;
}

.gallery-cover {
  height: 300px;
  background: linear-gradient(160deg, rgba(13, 21, 132, 0.94), rgba(4, 6, 45, 0.88));
}

.gallery-cover::before {
  background-size: 62% auto;
  opacity: 0.14;
}

.gallery-body {
  padding: 18px 20px 20px;
}

.gallery-body p {
  margin-top: 8px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 22px;
}

.about-card,
.cta-card,
.contact-card {
  padding: 30px;
}

.ability-card {
  min-height: 100%;
}

.ability-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 1.25rem;
}

.empty-state {
  padding: 34px 24px;
  text-align: center;
}

.empty-state strong {
  font-size: 1.1rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.search-button:hover,
.nav-links a:hover,
.project-link:hover,
.site-footer a:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: white;
  color: #09103d;
}

.button-secondary {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.24);
}

.footer-wrap {
  min-height: 72px;
  color: rgba(255,255,255,0.7);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.14s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .nav-links {
    gap: 18px;
    font-size: 0.88rem;
  }

  .showcase-strip,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid,
  .about-grid,
  .abilities-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .nav-links,
  .brand-copy small {
    display: none;
  }

  .hero-inner {
    padding-top: 24px;
  }

  .hero-topline {
    font-size: 0.82rem;
    flex-direction: column;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10vw, 3.4rem);
  }

  .hero-copy p {
    font-size: 0.96rem;
  }

  .hero-ghost {
    font-size: 3rem;
    letter-spacing: 0.08em;
    top: 26px;
  }

  .hero-ghost-line {
    top: 88px;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    text-align: center;
    width: 100%;
  }

  .hero-logo-wrap {
    min-height: auto;
    padding-top: 32px;
  }

  .hero-logo {
    width: min(420px, 72vw);
  }

  .showcase-strip,
  .section-head,
  .cta-card,
  .contact-card,
  .project-top,
  .project-bottom,
  .gallery-meta,
  .projects-grid,
  .gallery-grid,
  .abilities-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }
}
