:root {
  --ink: #0e1a24;
  --ink-soft: #243746;
  --ink-muted: #52667a;
  --paper: #eef3f6;
  --mist: #d7e2eb;
  --signal: #d6ff3f;
  --signal-hover: #e5ff78;
  --signal-ink: #14200a;
  --teal: #1f8a7a;
  --teal-light: #2db5a1;
  --deep: #102433;
  --amber: #e07a3a;
  --cyan: #38bdf8;
  --line: rgba(14, 26, 36, 0.12);
  --line-strong: rgba(14, 26, 36, 0.22);
  --white: #f8fbfd;
  --surface: rgba(248, 251, 253, 0.85);
  --surface-border: rgba(14, 26, 36, 0.08);
  --font-display: "Unbounded", sans-serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(31, 138, 122, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(214, 255, 63, 0.12), transparent 50%),
    linear-gradient(165deg, #f4f8fb 0%, #e6eef4 45%, #dfe9f0 100%);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(238, 243, 246, 0.94), rgba(238, 243, 246, 0.65) 70%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14, 26, 36, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-switch {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(14, 26, 36, 0.18);
  background: rgba(248, 251, 253, 0.72);
  border-radius: 4px;
  overflow: hidden;
}

.lang-btn {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0.45rem 0.65rem;
  min-width: 2.4rem;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn + .lang-btn {
  border-left: 1px solid rgba(14, 26, 36, 0.14);
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.is-active {
  background: var(--ink);
  color: var(--white);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.logo-mark {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
}

.logo-word {
  font-weight: 500;
  font-size: 0.85rem;
  opacity: 0.7;
}

.nav {
  display: none;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

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

.nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: transform 0.3s var(--ease), background 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--ink-soft);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: clamp(6rem, 12vh, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 6vh, 4rem);
  color: var(--white);
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 16, 24, 0.94) 0%, rgba(8, 16, 24, 0.78) 46%, rgba(8, 16, 24, 0.45) 100%),
    linear-gradient(to top, rgba(8, 16, 24, 0.95) 0%, transparent 55%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(214, 255, 63, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 255, 63, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 70%, black 20%, transparent 70%);
  opacity: 0.7;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.hero-orb-a {
  width: 280px;
  height: 280px;
  right: 10%;
  top: 15%;
  background: rgba(214, 255, 63, 0.12);
  animation: orb-float 9s ease-in-out infinite;
}

.hero-orb-b {
  width: 240px;
  height: 240px;
  left: 6%;
  bottom: 18%;
  background: rgba(31, 138, 122, 0.22);
  animation: orb-float 11s ease-in-out infinite reverse;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 52rem;
}

.brand-lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  line-height: 0.92;
  letter-spacing: -0.04em;
  animation: rise 0.9s var(--ease) both;
}

.brand-77 {
  font-size: clamp(3.2rem, 9vw, 5.75rem);
  font-weight: 800;
  color: var(--signal);
}

.brand-tech {
  font-size: clamp(1.2rem, 3.2vw, 2rem);
  font-weight: 500;
  opacity: 0.92;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
  max-width: 26ch;
  animation: rise 0.9s var(--ease) 0.12s both;
}

.hero-lede {
  margin: 0 0 1.5rem;
  max-width: 44ch;
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  color: rgba(248, 251, 253, 0.86);
  line-height: 1.6;
  animation: rise 0.9s var(--ease) 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
  animation: rise 0.9s var(--ease) 0.32s both;
}

/* Stats ticker */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(248, 251, 253, 0.15);
  animation: rise 0.9s var(--ease) 0.42s both;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 700;
  color: var(--signal);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.84rem;
  color: rgba(248, 251, 253, 0.72);
  line-height: 1.35;
}

@media (min-width: 680px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.btn-primary {
  background: var(--signal);
  color: var(--signal-ink);
  box-shadow: 0 4px 18px rgba(214, 255, 63, 0.22);
}

.btn-primary:hover {
  background: var(--signal-hover);
  box-shadow: 0 6px 24px rgba(214, 255, 63, 0.32);
}

.btn-ghost {
  border: 1px solid rgba(248, 251, 253, 0.35);
  color: var(--white);
  background: rgba(248, 251, 253, 0.06);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  border-color: rgba(248, 251, 253, 0.7);
  background: rgba(248, 251, 253, 0.12);
}

.contact .btn-ghost {
  border-color: rgba(14, 26, 36, 0.2);
  color: var(--ink);
  background: transparent;
}

.contact .btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(14, 26, 36, 0.05);
}

/* Sections shared */
.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.section-head h2,
.contact h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-lede {
  margin: 0;
  color: var(--ink-soft);
  max-width: 44ch;
  line-height: 1.6;
}

/* Work Section */
.work {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding: 0.4rem;
  background: rgba(14, 26, 36, 0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  width: fit-content;
  max-width: 100%;
}

.filter-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 0.55rem 1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--ink);
  background: rgba(14, 26, 36, 0.05);
}

.filter-btn.is-active {
  background: var(--ink);
  color: var(--white);
}

/* Work Row */
.work-row {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--line);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.work-row:last-child {
  border-bottom: 1px solid var(--line);
}

.work-row.is-filtered-out {
  display: none;
}

.work-media {
  position: relative;
  min-height: 240px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(14, 26, 36, 0.08);
  border: 1px solid rgba(14, 26, 36, 0.08);
  background: #081018;
}

.work-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 380px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.work-row:hover .work-media img {
  transform: scale(1.03);
}

.work-media-ash {
  background: #0c0a09;
}

.work-media-rifki {
  background: #0b1218;
}

.work-media-space {
  background: #05080f;
}

.work-media-universal {
  background: #090e14;
}

.work-media-garden {
  background: #0d1e13;
}

/* Scene visuals */
.work-media-XX {
  background: #0a0d11;
}

.work-media-tunnel {
  background: radial-gradient(circle at center, #1a2740 0%, #070d16 70%);
  min-height: 280px;
  display: grid;
  place-items: center;
}

.tunnel-scene {
  position: relative;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
}

.tunnel-ring {
  position: absolute;
  border: 2px solid rgba(214, 255, 63, 0.35);
  border-radius: 50%;
  animation: tunnel-pulse 3.6s ease-in-out infinite;
}

.tunnel-ring:nth-child(1) {
  inset: 10%;
  animation-delay: 0s;
}

.tunnel-ring:nth-child(2) {
  inset: 0;
  animation-delay: 0.4s;
}

.tunnel-ring:nth-child(3) {
  inset: -12%;
  opacity: 0.5;
  animation-delay: 0.8s;
}

.tunnel-core {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 10px rgba(214, 255, 63, 0.15);
}

/* Badges */
.badge-stack {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-signal {
  background: rgba(214, 255, 63, 0.92);
  color: #122008;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.badge-teal {
  background: rgba(31, 138, 122, 0.9);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.badge-amber {
  background: rgba(224, 122, 58, 0.92);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.badge-dark {
  background: rgba(14, 26, 36, 0.82);
  color: rgba(248, 251, 253, 0.9);
  border: 1px solid rgba(248, 251, 253, 0.2);
}

/* Work Body */
.work-tag {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.work-body h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.work-body p {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
  max-width: 44ch;
  line-height: 1.6;
}

/* Feature pills */
.pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.35rem;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  background: rgba(14, 26, 36, 0.05);
  border: 1px solid rgba(14, 26, 36, 0.08);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.text-link {
  font-weight: 600;
  font-size: 0.94rem;
  border-bottom: 2px solid var(--signal);
  padding-bottom: 0.15rem;
  transition: color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.text-link:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.text-link-sub {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-muted);
  border-bottom: 1px solid rgba(14, 26, 36, 0.2);
  padding-bottom: 0.1rem;
  transition: color 0.2s ease;
}

.text-link-sub:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.text-meta {
  display: inline-block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--amber);
  background: rgba(224, 122, 58, 0.1);
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
}

@media (min-width: 900px) {
  .work-row {
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2rem, 5vw, 4rem);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
  }

  .work-row-reverse .work-media {
    order: 2;
  }

  .work-row-reverse .work-body {
    order: 1;
    justify-self: end;
    text-align: right;
  }

  .work-row-reverse .work-body p {
    margin-left: auto;
  }

  .work-row-reverse .pills-container {
    justify-content: flex-end;
  }

  .work-row-reverse .work-actions {
    justify-content: flex-end;
  }
}

/* Ecosystem / Tech Grid */
.ecosystem {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  background:
    linear-gradient(180deg, rgba(16, 36, 51, 0.03), transparent 30%),
    radial-gradient(ellipse at 50% 100%, rgba(31, 138, 122, 0.08), transparent 70%);
  border-top: 1px solid var(--line);
}

.eco-grid {
  display: grid;
  gap: 1.5rem;
}

.eco-card {
  background: rgba(248, 251, 253, 0.7);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.75rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

.eco-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(14, 26, 36, 0.08);
  border-color: rgba(31, 138, 122, 0.35);
}

.eco-icon {
  font-size: 1.8rem;
  margin-bottom: 0.85rem;
  display: inline-block;
}

.eco-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.eco-card p {
  margin: 0 0 1rem;
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.eco-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.eco-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  background: rgba(14, 26, 36, 0.06);
  color: var(--ink-soft);
}

@media (min-width: 768px) {
  .eco-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .eco-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Approach */
.approach {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  background:
    linear-gradient(180deg, rgba(16, 36, 51, 0.02), transparent 30%),
    linear-gradient(90deg, transparent, rgba(214, 255, 63, 0.06), transparent);
  border-top: 1px solid var(--line);
}

.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.pillars li {
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.5rem;
}

.pillars strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pillars span {
  color: var(--ink-soft);
  max-width: 38ch;
  line-height: 1.55;
}

@media (min-width: 800px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
  }
}

/* Contact */
.contact {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.contact-panel {
  max-width: 44rem;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.contact p {
  color: var(--ink-soft);
  max-width: 40ch;
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--font-display);
  color: var(--ink);
}

.footer-brand .logo-mark {
  color: var(--teal);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* Motion */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, 1%, 0);
  }
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(14px, -20px, 0);
  }
}

@keyframes tunnel-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
