:root {
  --bg: #0c0c0c;
  --bg-light: #141414;
  --card: #121212;
  --yellow: #f5c542;
  --orange: #e8952a;
  --purple: #7621b0;
  --red: #b62025;
  --text: #f5f5f5;
  --text-dim: #b8bec7;
  --surface: #f5f5f2;
  --font: "Kanit", "Segoe UI", sans-serif;
  --gradient: linear-gradient(135deg, #f5c542 0%, #e8952a 35%, #b62025 65%, #7621b0 100%);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--yellow); color: var(--bg); }

.icon { width: 1em; height: 1em; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- text styles ---------- */
.hero-heading {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  background: linear-gradient(180deg, #ffffff 0%, #d6d9de 45%, var(--yellow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: clamp(2.5rem, 8vw, 6rem);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-dim);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 1.05rem 1.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px -8px rgba(230, 140, 30, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 32px -10px rgba(230, 140, 30, 0.7);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(215, 226, 234, 0.7);
  color: #d7e2ea;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }
.btn-outline--light {
  border-color: rgba(12, 12, 12, 0.25);
  color: var(--bg);
}
.btn-outline--light:hover { background: rgba(12, 12, 12, 0.06); }

/* ---------- navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  transition: background-color 0.2s ease, backdrop-filter 0.2s ease, box-shadow 0.2s ease;
}
.navbar.scrolled {
  background: rgba(12, 12, 12, 0.94);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.6);
}
.navbar-inner {
  max-width: 84rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-logo { width: 2.75rem; height: 2.75rem; object-fit: contain; }
.brand-name { font-weight: 900; text-transform: uppercase; font-size: 1.1rem; letter-spacing: 0.02em; }

.nav-links { display: none; align-items: center; gap: 2.2rem; }
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--yellow); }

.nav-store-btn {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-store-btn:hover { border-color: var(--yellow); color: var(--yellow); }
@media (min-width: 1024px) { .nav-store-btn { display: inline-flex; } }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}
.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links.mobile-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  background: rgba(12, 12, 12, 0.97);
  backdrop-filter: blur(14px);
  padding: 0.5rem 1.5rem 1.25rem;
}
.nav-links.mobile-open a { display: block; padding: 0.75rem 0; }

@media (min-width: 768px) {
  .nav-links { display: flex; position: static; background: none; padding: 0; }
  .nav-toggle { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8rem 1.5rem 4rem;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-glow--1 { top: -8rem; left: 20%; width: 32rem; height: 32rem; background: radial-gradient(circle, rgba(245, 197, 66, 0.12) 0%, rgba(245, 197, 66, 0) 70%); }
.hero-glow--2 { top: 30%; right: -6rem; width: 28rem; height: 28rem; background: radial-gradient(circle, rgba(118, 33, 176, 0.16) 0%, rgba(118, 33, 176, 0) 70%); }
.hero-glow--3 { bottom: 0; left: 0; width: 24rem; height: 24rem; background: radial-gradient(circle, rgba(182, 32, 37, 0.12) 0%, rgba(182, 32, 37, 0) 70%); }
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: linear-gradient(#f5f5f5 1px, transparent 1px), linear-gradient(90deg, #f5f5f5 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute;
  border-radius: 50%;
  animation: float-particle ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes float-particle {
  0%, 100% { transform: translateY(0); opacity: 0.15; }
  50% { transform: translateY(-22px); opacity: 0.6; }
}

.hero-network { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-network line {
  stroke: #f5c542;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}
.hero-network circle {
  fill: #f5c542;
  animation: node-flicker ease-in-out infinite;
}
@keyframes node-flicker {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.85; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 92rem;
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
.hero-content { text-align: center; }
.hero-heading { margin-top: 1.5rem; }
.hero-lead { margin-top: 1.75rem; max-width: 36rem; font-size: 1.05rem; line-height: 1.6; margin-inline: auto; }
.hero-sub { margin-top: 0.75rem; max-width: 36rem; font-size: 0.95rem; line-height: 1.6; color: var(--text-dim); margin-inline: auto; }
.hero-actions { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; }

.hero-visual { max-width: 48rem; margin: 0 auto; }
.hero-visual-frame {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7);
  transition: transform 0.5s var(--ease);
}
.hero-visual-frame:hover { transform: scale(1.035); }
.hero-visual-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1584 / 672;
  object-fit: cover;
}
.hero-lights { position: absolute; inset: 0; pointer-events: none; }
.hero-light {
  position: absolute;
  left: var(--l);
  top: var(--t);
  width: var(--s);
  height: var(--s);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0%, transparent 70%);
  mix-blend-mode: screen;
  animation: light-flicker 7s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes light-flicker {
  0% { opacity: 0; }
  15% { opacity: 1; }
  35% { opacity: 0.35; }
  55% { opacity: 0.9; }
  75% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 0.8fr 1.35fr; gap: 3rem; text-align: left; }
  .hero-content { text-align: left; }
  .hero-lead, .hero-sub { margin-inline: 0; }
  .hero-actions { flex-direction: row; align-items: flex-start; }
  .hero-visual { max-width: none; }
}

/* ---------- marquee ---------- */
.marquee-section { position: relative; overflow: hidden; padding: 4rem 0; display: flex; flex-direction: column; gap: 1.25rem; }
.marquee-row { position: relative; overflow: hidden; }
.marquee-track {
  display: flex;
  gap: 1.1rem;
  width: max-content;
  will-change: transform;
}
.marquee-track--right { animation: marquee-left 46s linear infinite; }
.marquee-track--left { animation: marquee-right 42s linear infinite; }
@keyframes marquee-right { from { transform: translateX(-33.3333%); } to { transform: translateX(0); } }
@keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }

.marquee-card {
  position: relative;
  flex-shrink: 0;
  width: 280px;
  height: 180px;
  border-radius: 1rem;
  overflow: hidden;
}
.marquee-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.marquee-card:hover img { transform: scale(1.02); }
.marquee-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(12, 12, 12, 0.25) 55%, transparent 100%);
}
.marquee-card-body { position: absolute; inset: auto 0 0 0; padding: 1rem; z-index: 1; }
.marquee-card-body h3 { font-size: 0.95rem; font-weight: 700; text-transform: uppercase; }
.marquee-card-body p { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.15rem; }

@media (min-width: 640px) {
  .marquee-card { width: 420px; height: 270px; }
  .marquee-card-body { padding: 1.5rem; }
  .marquee-card-body h3 { font-size: 1.25rem; }
  .marquee-card-body p { font-size: 0.85rem; }
}

/* ---------- brands ---------- */
.brands-section { position: relative; overflow: hidden; padding: 3.5rem 0; }
.brands-label {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-dim);
}
.brands-mask {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.brands-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee-left 90s linear infinite;
  will-change: transform;
}
.brand-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 6rem;
  height: 3rem;
  opacity: 0.7;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.brand-chip:hover { opacity: 1; filter: grayscale(0); }
.brand-chip img { max-height: 100%; max-width: 100%; object-fit: contain; }

@media (min-width: 640px) {
  .brands-track { gap: 3.5rem; }
  .brand-chip { width: 7rem; height: 3.5rem; }
}

/* ---------- about ---------- */
.about {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem;
  overflow: hidden;
  text-align: center;
}
.about-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36rem;
  height: 36rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 33, 176, 0.1) 0%, rgba(118, 33, 176, 0) 70%);
  pointer-events: none;
}
.about-floater {
  position: absolute;
  display: none;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(245, 197, 66, 0.7);
  animation: float-icon ease-in-out infinite;
}
.about-floater svg { width: 1.75rem; height: 1.75rem; }
.about-floater--1 { top: 10%; left: 8%; animation-duration: 7s; }
.about-floater--2 { top: 14%; right: 9%; animation-duration: 8.5s; }
.about-floater--3 { bottom: 12%; left: 11%; animation-duration: 6.5s; }
.about-floater--4 { bottom: 8%; right: 10%; animation-duration: 9s; }
@keyframes float-icon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@media (min-width: 640px) { .about-floater { display: flex; } }

.about-inner { position: relative; max-width: 48rem; margin: 0 auto; z-index: 1; }
.about-text { margin-top: 2rem; max-width: 42rem; margin-inline: auto; font-size: 1.05rem; line-height: 1.7; }
.about-text--dim { color: var(--text-dim); font-size: 0.95rem; margin-top: 1.25rem; }
.about-indicators { margin-top: 3rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-dim);
}
.indicator svg { color: var(--yellow); width: 1rem; height: 1rem; }
.about-inner > .btn { margin-top: 3rem; }

/* ---------- services ---------- */
.services {
  position: relative;
  overflow: hidden;
  margin-top: -2.5rem;
  border-radius: 40px 40px 0 0;
  background: var(--surface);
  color: var(--bg);
  padding: 5rem 1.5rem 6rem;
}
.services-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.services-glow--a { left: 25%; top: 0; width: 24rem; height: 24rem; background: radial-gradient(circle, rgba(245, 197, 66, 0.2) 0%, rgba(245, 197, 66, 0) 70%); }
.services-glow--b { right: 25%; bottom: 0; width: 24rem; height: 24rem; background: radial-gradient(circle, rgba(118, 33, 176, 0.1) 0%, rgba(118, 33, 176, 0) 70%); }
.services-floaters { position: absolute; inset: 0; pointer-events: none; }
.service-floater {
  position: absolute;
  color: var(--bg);
  opacity: 0.06;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}
.service-floater--accent { color: var(--gold-deep); }
.service-floater svg {
  animation: service-floater-spin ease-in-out infinite;
}
@keyframes service-floater-spin {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(8deg); }
  75% { transform: rotate(-8deg); }
}
.services-inner { position: relative; max-width: 64rem; margin: 0 auto; }
.services-title {
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
}
.services-subtitle {
  max-width: 34rem;
  margin: 1.25rem auto 0;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(12, 12, 12, 0.65);
}
.service-hook { margin-top: 0.5rem; font-size: 0.92rem; font-weight: 600; color: rgba(12, 12, 12, 0.85); max-width: 40rem; }
.service-list { margin-top: 3.5rem; }
.service-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(12, 12, 12, 0.1);
  transition: transform 0.3s var(--ease);
}
.service-item:hover { transform: translateX(6px); }
.service-number { font-size: 1.9rem; font-weight: 900; color: rgba(12, 12, 12, 0.22); }
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--bg);
  color: var(--yellow);
  flex-shrink: 0;
}
.service-icon svg { width: 1.4rem; height: 1.4rem; }
.service-body h3 { font-size: 1.3rem; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; }
.service-body p { margin-top: 0.5rem; font-size: 0.92rem; line-height: 1.6; color: rgba(12, 12, 12, 0.65); max-width: 40rem; }

@media (min-width: 640px) {
  .service-item { flex-direction: row; align-items: center; gap: 2rem; padding: 2.5rem 0; }
  .service-number { width: 5rem; font-size: 2.25rem; }
}

/* ---------- business ---------- */
.business { position: relative; padding: 6rem 1.5rem; overflow: hidden; }
.business-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 32, 37, 0.1) 0%, rgba(182, 32, 37, 0) 70%);
  pointer-events: none;
}
.business-inner { position: relative; max-width: 72rem; margin: 0 auto; }
.business-head { max-width: 36rem; margin: 0 auto; text-align: center; }
.business-head .eyebrow { margin-bottom: 1.5rem; }
.business-head p { margin-top: 1.5rem; font-size: 1.05rem; line-height: 1.6; color: var(--text-dim); }
.business-grid { margin-top: 4rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.business-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-light);
  padding: 1.9rem;
  transition: border-color 0.3s ease;
}
.business-card:hover { border-color: rgba(245, 197, 66, 0.6); }
.business-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--yellow);
}
.business-icon svg { width: 1.5rem; height: 1.5rem; }
.business-card h3 { margin-top: 1.5rem; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; }
.business-card p { margin-top: 0.75rem; font-size: 0.9rem; line-height: 1.6; color: var(--text-dim); }
.business-cta { margin-top: 4rem; display: flex; justify-content: center; }

@media (min-width: 640px) { .business-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .business-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- projects ---------- */
.projects {
  position: relative;
  overflow: hidden;
  margin-top: -2.5rem;
  border-radius: 40px 40px 0 0;
  background: var(--bg);
  padding-top: 5rem;
}
.projects-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.projects-glow--a { left: 33%; top: 0; width: 28rem; height: 28rem; transform: translateX(-50%); background: radial-gradient(circle, rgba(118, 33, 176, 0.1) 0%, rgba(118, 33, 176, 0) 70%); }
.projects-glow--b { right: 0; top: 50%; width: 24rem; height: 24rem; background: radial-gradient(circle, rgba(245, 197, 66, 0.1) 0%, rgba(245, 197, 66, 0) 70%); }
.projects-glow--c { left: 0; bottom: 0; width: 20rem; height: 20rem; background: radial-gradient(circle, rgba(182, 32, 37, 0.1) 0%, rgba(182, 32, 37, 0) 70%); }
.project-blob--c { right: 25%; bottom: -2rem; width: 10rem; height: 10rem; background: rgba(182, 32, 37, 0.15); animation-duration: 6.5s; animation-delay: 0.5s; }
.project-icon-float {
  position: absolute;
  right: -1.5rem;
  top: -1.5rem;
  color: rgba(245, 197, 66, 0.07);
  animation: project-icon-float ease-in-out infinite;
  animation-duration: 12s;
}
.project-icon-float svg { width: 10rem; height: 10rem; }
@media (min-width: 640px) {
  .project-icon-float { right: 1rem; top: 1rem; }
  .project-icon-float svg { width: 14rem; height: 14rem; }
}
@keyframes project-icon-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}
.project-sparkles { position: absolute; inset: 0; pointer-events: none; }
.project-sparkle {
  position: absolute;
  border-radius: 50%;
  animation: node-flicker ease-in-out infinite;
}
.projects-head { max-width: 40rem; margin: 0 auto; text-align: center; padding: 0 1.5rem; }
.projects-head p { margin-top: 1.5rem; font-size: 1.05rem; line-height: 1.6; color: var(--text-dim); }

.project-stack { margin-top: 4rem; }
.project-sticky-wrap { height: 85vh; }
.project-card {
  position: sticky;
  top: 0;
  height: 85vh;
  display: flex;
  align-items: center;
  padding: 1.5rem;
  transition: transform 0.2s ease-out;
  transform-origin: top center;
}
.project-card-box {
  position: relative;
  overflow: hidden;
  max-width: 64rem;
  margin: 0 auto;
  width: 100%;
  min-height: 62vh;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  display: grid;
  align-items: center;
  gap: 2rem;
}
.project-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: project-blob-float ease-in-out infinite;
}
.project-blob--a { left: -3rem; bottom: -2rem; width: 14rem; height: 14rem; background: radial-gradient(circle, rgba(118, 33, 176, 0.32) 0%, rgba(118, 33, 176, 0) 70%); animation-duration: 7s; }
.project-blob--b { right: -2rem; top: -2rem; width: 12rem; height: 12rem; background: radial-gradient(circle, rgba(245, 197, 66, 0.24) 0%, rgba(245, 197, 66, 0) 70%); animation-duration: 8s; animation-delay: 1s; }
@keyframes project-blob-float {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-18px); opacity: 0.9; }
}
.project-info, .project-gallery { position: relative; z-index: 1; }
.project-index { font-size: 3.5rem; font-weight: 900; color: rgba(255, 255, 255, 0.1); }
.project-tag {
  display: inline-flex;
  margin-top: 1rem;
  border: 1px solid rgba(245, 197, 66, 0.4);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--yellow);
}
.project-card h3 {
  margin-top: 1.25rem;
  font-family: var(--font);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #d6d9de 45%, var(--yellow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.project-card p { margin-top: 1.25rem; max-width: 26rem; font-size: 0.95rem; line-height: 1.6; color: var(--text-dim); }
.project-card .btn { margin-top: 2rem; }
.project-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-content: start; }
.project-gallery-main { grid-column: span 2; height: 10rem; object-fit: cover; border-radius: 1rem; }
.project-gallery img:not(.project-gallery-main) { height: 8rem; object-fit: cover; border-radius: 1rem; }

@media (min-width: 640px) {
  .project-card-box { grid-template-columns: 1fr 1fr; padding: 3rem; }
  .project-gallery-main { height: 16rem; }
  .project-gallery img:not(.project-gallery-main) { height: 12rem; }
}

/* ---------- contact ---------- */
.contact { position: relative; overflow: hidden; background: var(--surface); color: var(--bg); padding: 6rem 1.5rem; }
.contact-inner { position: relative; max-width: 72rem; margin: 0 auto; }
.contact-head { max-width: 36rem; margin: 0 auto; text-align: center; }
.contact-head h2 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(2.1rem, 5.5vw, 4rem); }
.contact-head p { margin-top: 1.5rem; font-size: 1.05rem; line-height: 1.6; color: rgba(12, 12, 12, 0.65); }
.contact-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

.contact-grid { margin-top: 4rem; display: grid; gap: 2.5rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; justify-content: center; }
.contact-row { display: flex; align-items: flex-start; gap: 1rem; transition: opacity 0.2s ease; }
.contact-row:hover { opacity: 0.7; }
.contact-row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--bg);
  color: var(--yellow);
  flex-shrink: 0;
}
.contact-row-icon svg { width: 1.25rem; height: 1.25rem; }
.contact-row small { display: block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: rgba(12, 12, 12, 0.5); }
.contact-row span:last-child { display: block; margin-top: 0.15rem; font-size: 1rem; font-weight: 500; }

.contact-form { border-radius: 1.5rem; background: #fff; padding: 1.75rem; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.25); }
.form-grid { display: grid; gap: 1.1rem; }
.field { margin-top: 1.1rem; }
.form-grid .field { margin-top: 0; }
.field label { display: block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: rgba(12, 12, 12, 0.7); }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  margin-top: 0.5rem;
  width: 100%;
  border: 1px solid rgba(12, 12, 12, 0.15);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--bg);
  background: #fff;
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.field textarea { resize: none; }
.field-error { display: none; margin-top: 0.35rem; font-size: 0.75rem; color: var(--red); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field.has-error .field-error { display: block; }

.btn-submit { margin-top: 1.6rem; width: 100%; justify-content: center; }
.btn-submit .btn-loading { display: none; align-items: center; gap: 0.5rem; }
.btn-submit.is-loading { pointer-events: none; opacity: 0.75; }
.btn-submit.is-loading .btn-label { display: none; }
.btn-submit.is-loading .btn-loading { display: inline-flex; }
.icon-spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  display: none;
  margin-top: 1rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0a8a4a;
}
.contact-form.is-success .form-success { display: flex; }

@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; align-items: center; } }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--bg); padding: 4.5rem 1.5rem 2rem; }
.footer-inner { position: relative; max-width: 72rem; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-tagline { margin-top: 1rem; max-width: 32ch; font-size: 0.88rem; line-height: 1.6; color: var(--text-dim); }
.footer-heading {
  margin: 0 0 0.9rem;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}
.footer-list { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-list a, .footer-list span { font-size: 0.9rem; color: var(--text-dim); transition: color 0.2s ease; }
.footer-list a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: 0.7rem; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-social a svg { width: 1rem; height: 1rem; }
.footer-social a:hover { color: var(--yellow); border-color: var(--yellow); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.5rem;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: rgba(184, 190, 199, 0.6);
}

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

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 0.8fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
