:root {
  --bg: #0f1115;
  --text: #f5f7fb;
  --muted: #c3c7d1;
  --accent: #7c5cff;
  --card: #171a21;
  --border: #262a34;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

.hero {
  padding: 120px 0 96px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.hero-media {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 0;
  pointer-events: none;
}

.hero-photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  opacity: 0.7;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(70% 80% at 60% 50%, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 0) 90%);
  mask-image: radial-gradient(70% 80% at 60% 50%, rgba(0, 0, 0, 1) 55%, rgba(0, 0, 0, 0) 90%);
  filter: saturate(1.1) brightness(1.05);
  animation: hero-slide-in 0.9s ease-out both;
  position: relative;
  z-index: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

@keyframes hero-slide-in {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.eyebrow {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid rgba(255, 255, 255, 0.6);
  width: 0;
  animation: eyebrow-type 4.5s steps(30, end) 0.1s infinite, eyebrow-caret 0.8s step-end infinite;
}

@keyframes eyebrow-type {
  0% {
    width: 0;
  }
  40% {
    width: 100%;
  }
  75% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}

@keyframes eyebrow-caret {
  50% {
    border-color: transparent;
  }
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.01em;
  color: var(--text);
}

.typewriter {
  display: inline-block;
  max-width: 100%;
}

.typewriter .tw-line {
  display: block;
  white-space: normal;
  width: auto;
  overflow: visible;
}

.subhead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.section-lead {
  color: var(--muted);
  margin-top: -12px;
  margin-bottom: 28px;
  max-width: 640px;
}

.services-intro {
  margin-top: -10px;
  margin-bottom: 24px;
  max-width: 640px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #0b0d12;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.28);
}

.btn:hover {
  filter: brightness(1.1);
}

.btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(255, 255, 255, 0.9),
    transparent,
    rgba(124, 92, 255, 0.9),
    transparent
  );
  border-radius: inherit;
  animation: rotate-glow 2.6s linear infinite;
  z-index: -2;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: #0b0d12;
  border-radius: inherit;
  z-index: -1;
}

@keyframes rotate-glow {
  to {
    transform: rotate(360deg);
  }
}

.link {
  color: var(--accent);
  font-weight: 600;
}


.work-slider {
  position: relative;
}

.work-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 6px 14px;
  scrollbar-width: thin;
}

.work-track::-webkit-scrollbar {
  height: 8px;
}

.work-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.work-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  min-height: 360px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 0 0 min(520px, 85vw);
  scroll-snap-align: start;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.work-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.15), rgba(10, 12, 16, 0.75));
  opacity: 0.6;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.work-video,
.work-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.work-card:hover .work-video,
.work-card:hover .work-image {
  transform: scale(1.05);
}

.work-card:hover .work-media::after {
  opacity: 0.35;
}

.work-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(520px, 90%);
  background: rgba(15, 17, 21, 0.92);
  padding: 18px 20px;
  border-top-right-radius: 16px;
  transform: translateY(60%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.work-card:hover .work-overlay {
  transform: translateY(0);
  opacity: 1;
}

.work-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--muted);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(15, 17, 21, 0.85);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s ease, background 0.2s ease;
}

.slider-btn:hover {
  transform: translateY(-50%) scale(1.06);
  background: rgba(15, 17, 21, 0.95);
}

.slider-btn.prev {
  left: -8px;
}

.slider-btn.next {
  right: -8px;
}

.role {
  color: var(--muted);
}

.services {
  list-style: none;
  display: flex;
  gap: 16px;
  min-height: 320px;
}

.services li {
  flex: 1;
  min-width: 140px;
  transition: flex 0.5s ease;
}

.services li:hover {
  flex: 2.8;
}

.service-card {
  position: relative;
  height: 100%;
  min-height: 320px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background-size: cover;
  background-position: center;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 24px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 10, 12, 0.2), rgba(9, 10, 12, 0.85));
  z-index: 0;
}

.service-card h3,
.service-card p {
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--muted);
  max-width: 32ch;
  opacity: 0.9;
}

.services li:hover .service-card {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.services li:nth-child(1) .service-card {
  background-image: url("https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=1200&q=80");
}

.services li:nth-child(2) .service-card {
  background-image: url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1200&q=80");
}

.services li:nth-child(3) .service-card {
  background-image: url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1200&q=80");
}

.services li:nth-child(4) .service-card {
  background-image: url("https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1200&q=80");
}

.services li:nth-child(5) .service-card {
  background-image: url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1200&q=80");
}

.about {
  max-width: 680px;
  font-size: 1.05rem;
}

.contact-form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  max-width: 520px;
}

.form-status {
  min-height: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0c0e12;
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.footer {
  padding: 32px 0;
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 96px 0 72px;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    order: 0;
    pointer-events: none;
    margin-top: 0;
  }

  .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 17, 21, 0.85), rgba(15, 17, 21, 0.5) 60%, rgba(15, 17, 21, 0.85));
    z-index: 1;
  }

  .hero-photo {
    max-width: 220px;
  }

  h1 {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  h2 {
    font-size: 1.6rem;
  }

  .section {
    padding: 60px 0;
  }

  .services {
    flex-direction: column;
    min-height: unset;
  }

  .services li {
    flex: unset;
    min-height: 200px;
  }

  .service-card {
    min-height: 200px;
    box-shadow: none;
  }

  .about {
    font-size: 1rem;
  }

  .contact-form {
    max-width: 100%;
  }

  .work-video {
    max-height: 240px;
  }

  .work-image {
    max-height: 240px;
  }

  .work-card {
    min-height: auto;
    display: grid;
    gap: 12px;
  }

  .work-track {
    padding: 0;
    gap: 16px;
  }

  .slider-btn {
    display: none;
  }

  .work-overlay {
    position: relative;
    width: 100%;
    transform: none;
    opacity: 1;
    border-top-right-radius: 0;
    pointer-events: auto;
  }

  .work-media {
    position: relative;
  }
}
