:root {
  --studio-ink: #161713;
  --studio-paper: #f3f1e9;
  --studio-paper-2: #eae7dc;
  --studio-card: #faf9f4;
  --studio-accent: #d8795f;
  --studio-accent-soft: #f0c8bd;
  --studio-muted: #6d6e66;
  --studio-line: rgba(22, 23, 19, 0.1);
  --studio-shadow: 0 30px 80px rgba(43, 44, 36, 0.11);
  --studio-ease: cubic-bezier(0.32, 0.72, 0, 1);
}

html {
  background: var(--studio-paper);
}

body {
  background:
    radial-gradient(circle at 78% 4%, rgba(216, 121, 95, 0.12), transparent 24rem),
    var(--studio-paper);
  color: var(--studio-ink);
}

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

.container {
  width: min(100% - 2rem, 1280px);
}

nav {
  top: 18px;
  left: 50%;
  right: auto;
  width: min(calc(100% - 2rem), 1220px);
  min-height: 62px;
  padding: 0.45rem 0.55rem 0.45rem 1.25rem;
  transform: translateX(-50%);
  border: 1px solid rgba(22, 23, 19, 0.08);
  border-radius: 999px;
  background: rgba(250, 249, 244, 0.78);
  box-shadow: 0 10px 40px rgba(43, 44, 36, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

nav.scrolled {
  background: rgba(250, 249, 244, 0.92);
  border-bottom-color: rgba(22, 23, 19, 0.08);
}

.nav-logo,
.footer-brand {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}

.nav-right {
  gap: 0.15rem;
}

.nav-right .nav-link {
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.nav-right .nav-link:hover {
  border-color: transparent;
  background: rgba(22, 23, 19, 0.06);
}

.nav-cta,
.btn-primary,
.btn-secondary,
.contact-btn {
  min-height: 48px;
  padding: 0.42rem 0.5rem 0.42rem 1.25rem;
  gap: 0.9rem;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  transition:
    transform 600ms var(--studio-ease),
    color 600ms var(--studio-ease),
    background 600ms var(--studio-ease),
    box-shadow 600ms var(--studio-ease);
}

.nav-cta {
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border: 0;
  color: #fff;
  background: var(--studio-ink);
}

.nav-cta:hover {
  color: var(--studio-ink);
  background: var(--studio-accent-soft);
}

.btn-primary {
  border: 0;
  color: #fff;
  background: var(--studio-ink);
}

.btn-primary svg,
.btn-secondary svg {
  width: 34px;
  height: 34px;
  padding: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 600ms var(--studio-ease);
}

.btn-primary:hover {
  color: var(--studio-ink);
  background: var(--studio-accent-soft);
  box-shadow: 0 16px 36px rgba(43, 44, 36, 0.16);
  transform: translateY(-2px);
}

.btn-primary:hover svg {
  background: rgba(22, 23, 19, 0.08);
  transform: translateX(2px);
}

.btn-secondary {
  padding-right: 1.25rem;
  border: 1px solid rgba(22, 23, 19, 0.13);
  color: var(--studio-ink);
  background: rgba(255, 255, 255, 0.42);
}

.btn-secondary:hover {
  border-color: rgba(22, 23, 19, 0.2);
  color: var(--studio-ink);
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-2px);
}

.btn-primary:active,
.btn-secondary:active,
.nav-cta:active {
  transform: scale(0.98);
}

.hero .btn-primary,
.hero .btn-secondary,
.project-card .btn-primary {
  font-family: 'Outfit', sans-serif;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.hero {
  min-height: 100dvh;
  padding: 148px 0 108px;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero .container {
  width: min(100% - 2rem, 1280px);
}

.hero-inner {
  max-width: 1160px;
  margin: 0;
  text-align: left;
}

.hero-section-number,
.floating-label {
  display: none;
}

.hero-status {
  margin-bottom: clamp(2.5rem, 6vw, 5.5rem);
  padding: 0;
  border: 0;
  border-radius: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 1120px;
  margin-bottom: 2.25rem;
  font-size: clamp(4.4rem, 10.7vw, 9.3rem);
  line-height: 0.82;
  letter-spacing: -0.072em;
}

.hero-highlight {
  position: relative;
  display: inline-block;
  padding: 0;
  color: var(--studio-accent);
  font-style: normal;
  background: transparent;
  transform: none;
}

.hero-highlight::after {
  position: absolute;
  right: 0;
  bottom: -0.03em;
  left: 0;
  display: block;
  height: 0.055em;
  border-radius: 999px;
  background: currentColor;
  content: "";
  opacity: 0.42;
  transform: rotate(-1deg);
}

.hero-tagline {
  max-width: 600px;
  margin: 0 0 2rem;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.hero-actions {
  justify-content: flex-start;
}

.hero-scroll {
  right: clamp(1rem, 4vw, 4rem);
  bottom: 3rem;
  left: auto;
  align-items: flex-end;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.08em;
  animation: none;
  transform: none;
}

.hero-scroll-line {
  width: 54px;
  height: 1px;
  background: var(--studio-ink);
}

.hero-divider {
  display: none;
}

.marquee {
  border: 0;
  color: #fff;
  background: var(--studio-ink);
  transform: rotate(-1deg) scale(1.02);
}

.marquee-track {
  padding: 0.95rem 0;
}

.marquee-track span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
}

.marquee-track span::after {
  color: var(--studio-accent);
}

.projects,
.about,
.contact {
  padding-top: clamp(7rem, 12vw, 11rem);
  padding-bottom: clamp(8rem, 14vw, 13rem);
}

.section-header {
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

#projects .section-header,
#about .section-header {
  align-items: flex-end;
}

.section-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--studio-ink);
  background: var(--studio-accent-soft);
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.section-header .section-label,
.project-tag,
.now-block-label {
  color: var(--studio-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.section-header .section-title {
  font-size: clamp(3.4rem, 7vw, 6.7rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
}

#projects .section-number,
#about .section-number {
  font-size: 0.72rem;
}

.section-divider,
.project-card-divider {
  display: none;
}

.project-cards {
  gap: 1.5rem;
}

.project-card {
  grid-template-areas: "info preview";
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(22, 23, 19, 0.07);
  border-radius: 34px;
  background: rgba(250, 249, 244, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition:
    transform 800ms var(--studio-ease),
    box-shadow 800ms var(--studio-ease);
}

.project-card.preview-left {
  grid-template-areas: "preview info";
}

.project-card .project-info {
  grid-area: info;
  order: initial;
}

.project-card .project-preview {
  grid-area: preview;
  order: initial;
}

.project-card::before {
  display: none;
}

.project-card:hover {
  border-color: rgba(22, 23, 19, 0.07);
  box-shadow: var(--studio-shadow);
  transform: translateY(-6px);
}

.project-info {
  padding: clamp(2rem, 5vw, 4.5rem);
}

#hud-card .project-info {
  padding-right: clamp(2rem, 5vw, 4.5rem);
  background: transparent;
}

.project-meta {
  margin-bottom: 2.5rem;
}

.project-status {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  color: #226036;
  background: #e1f0df;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
}

.project-status .dot {
  background: #3fa760;
}

.project-status.soon {
  color: #226036;
  background: #e1f0df;
}

.project-status.soon .dot {
  background: #3fa760;
}

.project-meta-sep {
  background: var(--studio-line);
}

.project-name {
  margin-bottom: 0.4rem;
  font-size: clamp(3.3rem, 6vw, 6rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
}

.project-subtitle {
  margin-bottom: 1.4rem;
  color: var(--studio-ink);
  font-size: 1.05rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

.project-desc {
  max-width: 54ch;
  color: var(--studio-muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.project-features {
  grid-template-columns: 1fr 1fr;
  margin: 1.7rem 0;
  gap: 0.6rem;
}

.project-features li {
  padding: 0;
  border: 0;
  color: var(--studio-ink);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 550;
}

.project-features li::before {
  content: "•";
  margin-right: 0.55rem;
  color: #46a667;
}

.project-card:hover .project-features li {
  border-color: transparent;
}

.tech-pill,
.skill-tag {
  border: 0;
  border-radius: 999px;
  color: var(--studio-muted);
  background: rgba(22, 23, 19, 0.055);
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
}

.project-preview {
  min-height: 560px;
  margin: 0.65rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  background: var(--studio-paper-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.project-preview::after {
  display: none;
}

#hud-card .project-preview {
  background:
    radial-gradient(circle at 18% 18%, rgba(143, 92, 246, 0.22), transparent 32%),
    #e7e2f0;
}

#gainlock-card .project-preview {
  background:
    radial-gradient(circle at 70% 18%, rgba(85, 171, 105, 0.24), transparent 30%),
    #dce9d7;
}

.gainlock-project-shot {
  width: min(72%, 410px);
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(9, 29, 18, 0.24);
  transform: rotate(2.5deg) translateY(7%);
  transition: transform 900ms var(--studio-ease);
}

.project-card:hover .gainlock-project-shot {
  transform: rotate(0.5deg) translateY(3%);
}

.about {
  color: #fff;
  background: var(--studio-ink);
}

.about .section-title,
.about .about-text .lead,
.about .about-text .lead strong,
.about .now-block-text strong {
  color: #fff;
}

.about .section-label,
.about .section-desc,
.about .stat-label {
  color: rgba(255, 255, 255, 0.6);
}

.about .section-number {
  color: var(--studio-ink);
}

.about-inner {
  gap: clamp(3rem, 8vw, 8rem);
}

.about-text .lead {
  max-width: 760px;
  font-size: clamp(2rem, 3.6vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.now-block {
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.now-block-label {
  color: var(--studio-accent-soft);
}

.about .now-block-text {
  color: rgba(255, 255, 255, 0.78);
}

.skill-tag {
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.08);
}

.stat-col {
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
}

.stat-item {
  border-color: rgba(255, 255, 255, 0.08);
}

.stat-number {
  color: var(--studio-accent-soft);
}

.about .stat-number {
  color: var(--studio-accent-soft);
}

.about .stat-number span {
  color: rgba(255, 255, 255, 0.48) !important;
}

.contact {
  background:
    radial-gradient(circle at 50% 20%, rgba(216, 121, 95, 0.11), transparent 25rem),
    var(--studio-paper);
}

.contact-box {
  overflow: hidden;
  border: 1px solid rgba(22, 23, 19, 0.08);
  border-radius: 36px;
  background: rgba(250, 249, 244, 0.72);
  box-shadow: 0 24px 70px rgba(43, 44, 36, 0.09);
}

.contact-inner {
  padding: clamp(3rem, 8vw, 7rem) 1.5rem;
}

.contact .section-title {
  max-width: 900px;
}

.contact .section-desc {
  max-width: 54ch;
}

.contact-btn {
  border: 0;
}

.contact-btn.fiverr {
  color: var(--studio-ink);
  background: var(--studio-accent-soft);
}

.contact-btn.email {
  color: #fff;
  background: var(--studio-ink);
}

footer {
  color: rgba(255, 255, 255, 0.72);
  background: #0d0e0c;
}

footer a,
footer h4,
.footer-brand {
  color: #fff;
}

footer .footer-tagline,
footer .footer-col a {
  color: rgba(255, 255, 255, 0.68);
}

footer .footer-col a:hover {
  color: #fff;
}

footer .footer-inner p {
  color: rgba(255, 255, 255, 0.55);
}

footer .footer-inner {
  border-color: rgba(255, 255, 255, 0.09);
}

:focus-visible {
  outline: 3px solid var(--studio-accent);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero-scroll {
    display: none;
  }

  .project-card,
  .project-card.preview-left {
    grid-template-columns: 1fr;
    grid-template-areas:
      "preview"
      "info";
  }

  .project-preview {
    min-height: 460px;
  }
}

@media (max-width: 768px) {
  nav {
    top: 10px;
    width: calc(100% - 1rem);
    min-height: 58px;
    padding-left: 1rem;
  }

  .nav-right {
    top: 68px;
    right: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(22, 23, 19, 0.08);
    border-radius: 24px;
    background: rgba(250, 249, 244, 0.96);
    box-shadow: 0 20px 60px rgba(43, 44, 36, 0.16);
  }

  .nav-right .nav-link,
  .nav-right .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: 100dvh;
    padding: 124px 0 72px;
  }

  .hero-status {
    margin-bottom: 4rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 20vw, 7rem);
    line-height: 0.84;
  }

  .hero-tagline {
    max-width: 28ch;
  }

  .section-title {
    font-size: clamp(3.1rem, 15vw, 5rem);
  }

  .project-card {
    min-height: auto;
    border-radius: 26px;
  }

  .project-info {
    padding: 2rem 1.35rem 2.35rem;
  }

  #hud-card .project-info {
    padding-right: 1.35rem;
  }

  .project-name {
    font-size: clamp(3.4rem, 16vw, 4.8rem);
  }

  .project-preview {
    min-height: 390px;
    margin: 0.45rem;
    border-radius: 22px;
  }

  .project-features {
    grid-template-columns: 1fr;
  }

  .gainlock-project-shot {
    width: 64%;
  }

  .projects,
  .about,
  .contact {
    padding-top: 6.5rem;
    padding-bottom: 7.5rem;
  }

  .about-text .lead {
    font-size: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-card *,
  .btn-primary,
  .btn-secondary,
  .nav-cta {
    transition-duration: 0.01ms !important;
  }
}
