:root {
  --v50: #f5f3ff;
  --v100: #ede9fe;
  --v200: #ddd6fe;
  --v300: #c4b5fd;
  --v400: #a78bfa;
  --v500: #8b5cf6;
  --v600: #7c3aed;
  --v700: #6d28d9;
  --v800: #5b21b6;
  --v900: #4c1d95;
  --blue: #188cee;
  --mag: #a027c3;
  --ink: #0c0a0f;
  --ink-2: #16131d;
  --dark: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f4f5f7;
  --grad: linear-gradient(135deg, #188cee 0%, #7c3aed 55%, #a027c3 100%);
  --radius: 8px;
  --shadow: 0 20px 45px -18px rgba(15, 23, 42, .25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text, #334155);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, .brand-name, .btn, .filter-btn {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  text-transform: uppercase;
}

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.section { position: relative; padding: 110px 0; }
.section-soft { background: #fff; }
.section > .container { position: relative; z-index: 1; }

.section-title {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .5px;
  color: var(--ink);
}
.section-title.center { text-align: center; margin-bottom: 60px; }

.btn {
  display: inline-block;
  padding: 15px 36px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  border-radius: 4px;
  transition: all .25s ease;
  cursor: pointer;
}
.btn-primary { background: var(--v600); color: #fff; }
.btn-primary:hover { background: var(--v700); transform: translateY(-3px); box-shadow: 0 12px 24px -10px rgba(124, 58, 237, .6); }
.btn-light { background: #fff; color: var(--v700); }
.btn-light:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }
.btn-ghost { border: 2px solid rgba(255, 255, 255, .7); color: #fff; padding: 13px 34px; }
.btn-ghost:hover { background: #fff; color: var(--v700); }

.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, .08) 100%);
  backdrop-filter: blur(10px) saturate(1.25);
  -webkit-backdrop-filter: blur(10px) saturate(1.25);
  transition: box-shadow .25s ease, background .35s ease;
}
.site-header.header-dark {
  background: linear-gradient(180deg, rgba(12, 10, 15, .5) 0%, rgba(12, 10, 15, .12) 100%);
}
.site-header.header-dark .nav-link { color: #e2e8f0; }
.site-header.header-dark .nav-link:hover,
.site-header.header-dark .nav-link.is-active { color: var(--v300); }
.site-header.header-dark .brand-name { color: #fff; }
.site-header.header-dark .brand-name span { color: var(--v300); }
.site-header.header-dark .call-label { color: #8f96a5; }
.site-header.header-dark .call-number { color: #fff; }
.site-header.header-dark .header-call .ic { color: var(--v300); }
.site-header.header-dark .nav-toggle span { background: #fff; }
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(12, 10, 15, .25); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 78px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 44px; height: 44px; }
.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
}
.brand-name span { color: var(--v600); }
.brand-name.light { color: #fff; }
.brand-name.light span { color: var(--v400); }

.main-nav { display: flex; gap: 28px; margin-left: auto; }
.nav-link {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
  padding: 8px 2px;
  position: relative;
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--grad);
  transition: width .25s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--v600); }
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }

.header-call {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.header-call .ic { width: 26px; height: 26px; color: var(--v600); }
.call-label {
  display: block;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.call-number {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
}
.call-number:hover { color: var(--v600); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
  transition: all .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(24, 140, 238, .28), transparent 60%),
    radial-gradient(700px 480px at 10% 110%, rgba(160, 39, 195, .35), transparent 60%),
    linear-gradient(120deg, var(--v700), var(--v600) 55%, var(--v500));
  color: #fff;
  overflow: hidden;
}
.feather-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 78px);
  padding: 70px 0;
}
.hero h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: 1px;
  margin-bottom: 28px;
}
.hero p {
  max-width: 560px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-visual {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1 / 1;
  justify-self: end;
}
.hero-ring {
  position: absolute;
  top: 0;
  right: 0;
  width: 76%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(24, 140, 238, .45), rgba(12, 10, 15, .38) 70%);
}
.hero-img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 82%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 30px 70px -25px rgba(12, 10, 15, .55);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }

.pixel {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #fff;
  opacity: .55;
  animation: float 6s ease-in-out infinite;
}
.pixel-a { top: 6%; left: 16%; background: var(--v200); animation-delay: 0s; }
.pixel-b { bottom: 10%; right: 6%; width: 16px; height: 16px; background: var(--v300); animation-delay: 1.5s; }
.pixel-c { top: 42%; right: -3%; width: 14px; height: 14px; background: rgba(255, 255, 255, .8); animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.about-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 480px;
}
.since-badge {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 2;
  width: 82px;
  height: 280px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.since-badge span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--v400);
}
.about-photo {
  width: calc(100% - 82px);
  height: auto;
  margin-left: 82px;
}

.about-copy .section-title { margin-bottom: 24px; }
.about-lead {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--v600);
  margin-bottom: 22px;
}
.about-copy > p:not(.about-lead) {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: .98rem;
}
.about-copy .btn { margin-top: 14px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 46px 30px;
  transition: all .3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  background: #fff;
  box-shadow: var(--shadow);
}
.service-icon {
  width: 48px;
  height: 48px;
  color: var(--v600);
  margin-bottom: 26px;
  transition: transform .3s ease;
}
.service-card:hover .service-icon { transform: scale(1.12); }
.service-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  color: #8f96a5;
  margin-bottom: 16px;
}
.service-card h3 span { color: var(--ink); }
.service-card p { font-size: .95rem; color: var(--muted); }

.stack {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(124, 58, 237, .25), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(24, 140, 238, .18), transparent 60%),
    var(--ink);
  color: #fff;
}
.stack-inner {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 64px;
  align-items: center;
}
.stack-label {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--v400);
  margin-bottom: 14px;
}
.stack h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 24px;
}
.stack p {
  color: #b9bfcd;
  font-size: .98rem;
  margin-bottom: 18px;
}
.stack-list {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
}
.stack-list li {
  position: relative;
  padding-left: 32px;
  font-size: .92rem;
  color: #d7dbe6;
}
.stack-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--mag));
}
.stack-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  width: 6px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.stack-code {
  background: #141020;
  border: 1px solid rgba(139, 92, 246, .3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(139, 92, 246, .08);
  border-bottom: 1px solid rgba(139, 92, 246, .18);
}
.code-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #4c5260;
}
.code-bar span:nth-child(1) { background: var(--blue); }
.code-bar span:nth-child(2) { background: var(--v500); }
.code-bar span:nth-child(3) { background: var(--mag); }
.code-bar em {
  margin-left: auto;
  font-style: normal;
  font-size: .72rem;
  letter-spacing: 1px;
  color: #7d8396;
}
.stack-code pre {
  padding: 24px 22px;
  overflow-x: auto;
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: .82rem;
  line-height: 1.75;
  color: #d7dbe6;
}
.tk-php { color: var(--mag); }
.tk-kw { color: var(--v400); }
.tk-obj { color: var(--blue); }
.tk-fn { color: #e9d5ff; }
.tk-var { color: #f0abfc; }
.tk-str { color: #86efac; }
.tk-br { color: #7d8396; }

.projects-duo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  max-width: 1160px;
  margin-inline: auto;
}
.project-featured {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--soft);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 50px -30px rgba(12, 10, 15, .3);
  max-width: 1080px;
  margin-inline: auto;
}
.project-featured.vertical { grid-template-columns: 1fr; max-width: none; margin: 0; }
.project-featured.vertical .pf-media { min-height: 0; aspect-ratio: 16 / 10; }
.pf-media { overflow: hidden; min-height: 320px; }
.pf-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform .5s ease, filter .5s ease;
}
.project-featured:hover .pf-media img { transform: scale(1.04); filter: grayscale(0%); }
.pf-body {
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.pf-tag {
  font-family: 'Oswald', sans-serif;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--v600);
  background: var(--v100);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.pf-body h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}
.pf-body p { color: var(--muted); font-size: .97rem; }
.pf-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.pf-stack li {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 6px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}

.site-footer {
  position: relative;
  background: var(--ink);
  color: #9aa0ae;
}
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr .8fr 1.05fr;
  gap: 52px;
  padding: 96px 0 70px;
}
.f-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.f-logo .logo-mark { width: 40px; height: 40px; }
.f-brand p { font-size: .92rem; line-height: 1.75; }
.f-col h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #fff;
  margin-top: 8px;
  margin-bottom: 18px;
}
.f-col > p { font-size: .92rem; margin-bottom: 22px; }

.f-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: .92rem;
}
.f-contact .ic { color: var(--v500); margin-top: 3px; }
.f-contact a:hover { color: var(--v400); }

.f-links li { margin-bottom: 12px; }
.f-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  transition: color .2s ease, transform .2s ease;
}
.f-links .ic { color: var(--v500); width: .9em; }
.f-links a:hover { color: var(--v400); transform: translateX(4px); }

.f-note { font-style: italic; font-size: .84rem; margin-top: 12px; color: #7d8396; }

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 24px 0;
  text-align: center;
  font-size: .88rem;
}
.footer-bottom p { margin: 4px 0; }
.footer-bottom a { color: var(--v400); font-weight: 600; }
.footer-bottom a:hover { color: var(--v200); }

.intern-wrap {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}
.intern-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #6b6778;
  transition: color .25s ease, background .25s ease;
}
.intern-toggle svg { width: 17px; height: 17px; }
.intern-toggle:hover { color: var(--v400); background: rgba(139, 92, 246, .12); }
.intern-menu {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  min-width: 190px;
  padding: 8px;
  background: var(--ink-2);
  border: 1px solid rgba(139, 92, 246, .3);
  border-radius: 10px;
  box-shadow: 0 20px 45px -18px rgba(0, 0, 0, .7);
}
.intern-menu.open { display: block; }
.intern-title {
  display: block;
  padding: 6px 12px 8px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6d7280;
}
.intern-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  color: #cfd3de;
  transition: all .2s ease;
}
.intern-menu a .ic { color: var(--v500); width: 15px; height: 15px; }
.intern-menu a:hover { background: rgba(139, 92, 246, .15); color: #fff; }

.scroll-top {
  position: fixed;
  right: 26px;
  bottom: 42px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--v600);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(124, 58, 237, .6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(70px);
  transition: all .3s ease;
}
.scroll-top svg { width: 22px; height: 22px; }
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--v800); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

section[id], footer[id] { scroll-margin-top: 86px; }

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 44px; }
  .header-call { display: none; }
  .hero-visual { justify-self: center; }
  .projects-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-duo .project-featured:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    grid-template-columns: 1.05fr 1fr;
  }
  .projects-duo .project-featured:last-child:nth-child(odd) .pf-media {
    min-height: 340px;
    aspect-ratio: auto;
  }
}

@media (max-width: 880px) {
  .section { padding: 80px 0; }
  .main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    transform: translateY(-130%);
    transition: transform .3s ease;
    box-shadow: 0 24px 40px -20px rgba(12, 10, 15, .25);
  }
  .main-nav.open { transform: translateY(0); }
  .nav-link { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-link:last-child { border-bottom: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 56px 0 64px; }
  .hero p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { width: min(420px, 92%); }
  .about-inner { grid-template-columns: 1fr; gap: 56px; }
  .about-visual { min-height: 0; max-width: 520px; }
  .projects-duo { grid-template-columns: 1fr; }
  .projects-duo .project-featured:last-child:nth-child(odd) { grid-template-columns: 1fr; }
  .projects-duo .project-featured:last-child:nth-child(odd) .pf-media { min-height: 0; aspect-ratio: 16 / 10; }
  .pf-body { padding: 38px 30px; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .pf-body { padding: 32px 24px; }
  .pf-body h3 { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; padding: 72px 0 56px; }
  .stack-list { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .about-visual { max-width: 460px; }
  .about-photo { width: calc(100% - 64px); margin-left: 64px; }
  .since-badge { width: 60px; height: 220px; }
  .since-badge span { font-size: 1.1rem; letter-spacing: 2px; }
  .scroll-top { right: 18px; bottom: 24px; }
}