:root {
  --ink: #12121a;
  --ink-soft: #55566b;
  --bg: #ffffff;
  --bg-soft: #f6f6fb;
  --border: #e7e7f0;
  --accent: #5b4dff;
  --accent-2: #8a5cff;
  --accent-soft: #efedff;
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

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

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

.logo-mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.logo > .logo-mark {
  transform: scale(1.5);
  transform-origin: center;
}

.logo-mark-sm {
  width: 24px;
  height: 24px;
  vertical-align: -6px;
  margin-right: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
}

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

/* Eyebrow / section titles */
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.eyebrow-center {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: max(570px, 42.375vw);
  padding: 76px 0;
  background: #f7f5ff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.91) 22%, rgba(255,255,255,0.7) 43%, rgba(255,255,255,0.13) 70%, rgba(255,255,255,0.02) 100%);
}

.parallax-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.shape-1 {
  top: -80px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: var(--accent-soft);
  opacity: 0.9;
}

.shape-2 {
  top: 220px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: #ffd9ec;
  opacity: 0.8;
}

.shape-3 {
  bottom: -100px;
  left: 40%;
  width: 200px;
  height: 200px;
  background: var(--accent-2);
  opacity: 0.25;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 820px);
  align-items: center;
  margin: 0;
  padding-left: clamp(32px, 6.5vw, 128px);
  padding-right: clamp(32px, 5vw, 96px);
}

.hero-copy {
  text-shadow: 0 1px 18px rgba(255, 255, 255, 0.35);
}

.hero h1 {
  font-size: clamp(3rem, 4.3vw, 4.6rem);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 34px;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(91, 77, 255, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(91, 77, 255, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Cinematic hero background */
.hero-visual {
  position: absolute;
  inset: -4% 0;
  z-index: -1;
  overflow: hidden;
  will-change: transform;
}

.hero-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.025);
  animation: hero-reveal 1.1s ease-out both;
}

@keyframes hero-reveal {
  from { transform: scale(1.065); filter: saturate(0.9); }
  to { transform: scale(1.025); filter: saturate(1); }
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 14px 30px -14px rgba(18, 18, 26, 0.3);
}

.float-card-1 {
  top: 18%;
  right: 7%;
}

.float-card-2 {
  right: 23%;
  bottom: 12%;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.dot-alt {
  background: #ff6fa5;
}

/* Stats */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  padding: 36px 24px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}

.stat span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Services */
.services {
  padding: 90px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -20px rgba(18, 18, 26, 0.25);
}

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.icon-badge svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Process */
.process {
  padding: 90px 0;
  background: var(--bg-soft);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.process-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.step-num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Work */
.work {
  padding: 90px 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.work-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -24px rgba(18, 18, 26, 0.3);
}

.work-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.work-thumb-a {
  background: linear-gradient(135deg, #1a1a24, #3a3a52);
}

.work-thumb-b {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.work-thumb-c {
  background: linear-gradient(135deg, #4b1424, #b98772);
}

/* FAQ */
.faq {
  padding: 90px 0;
  background: var(--bg-soft);
}

.faq-inner {
  max-width: 820px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 22px;
}

.faq-list summary {
  padding: 20px 32px 20px 0;
  font-weight: 700;
  cursor: pointer;
}

.faq-list details p {
  color: var(--ink-soft);
  padding: 0 0 20px;
}

.work-body {
  padding: 26px 28px 28px;
}

.work-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.work-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.work-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

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

.work-card:hover .work-link {
  color: var(--accent);
}

/* CTA */
.cta {
  padding: 100px 0;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.cta-inner {
  max-width: 560px;
  margin: 0 auto;
}

.cta p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 30px;
}

/* Contact form */
.contact-form {
  text-align: left;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field textarea {
  resize: vertical;
}

.contact-form .btn {
  border: none;
  cursor: pointer;
  width: 100%;
}

.contact-form .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.consent-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 2px 0 20px;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.consent-field label {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}

.consent-field a,
.privacy-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}

.form-status-ok {
  color: #1a8f5e;
}

.form-status-error {
  color: #d64545;
}

.cta-alt {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.cta-alt a {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent);
}

.privacy-page {
  min-height: 100vh;
  background: var(--bg-soft);
}

.privacy-content {
  max-width: 820px;
  padding-top: 72px;
  padding-bottom: 90px;
}

.privacy-content h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.privacy-content h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.privacy-content p, .privacy-content li { color: var(--ink-soft); }
.privacy-content ul { padding-left: 22px; }
.privacy-updated { margin-bottom: 36px; font-size: 0.9rem; }

:focus-visible {
  outline: 3px solid rgba(91, 77, 255, 0.4);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .hero {
    min-height: 720px;
    align-items: flex-end;
    padding: 310px 0 62px;
  }
  .hero::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.12) 28%, rgba(255,255,255,0.9) 55%, #fff 76%);
  }
  .hero-photo {
    object-position: 62% center;
    animation: none;
  }
  .hero-visual {
    transform: none !important;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 650px);
  }
}

@media (max-width: 640px) {
  .container {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }
  .header-inner {
    position: relative;
  }
  .logo {
    gap: 6px;
    font-size: 0.95rem;
  }
  .logo-mark {
    width: 48px;
    height: 48px;
  }
  .menu-toggle {
    display: block;
    flex: 0 0 auto;
  }
  .nav {
    position: absolute;
    top: calc(100% + 9px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px -20px rgba(18, 18, 26, 0.35);
    font-size: 0.95rem;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 11px 12px;
    border-radius: 9px;
  }
  .nav-cta {
    text-align: center;
  }
  .hero {
    min-height: 760px;
    padding: 300px 0 54px;
  }
  .hero h1 {
    font-size: clamp(2.15rem, 11vw, 3rem);
  }
  .float-card {
    max-width: calc(100% - 16px);
    padding: 8px 12px;
    font-size: 0.78rem;
  }
  .float-card-1 {
    top: 24px;
    right: 16px;
  }
  .float-card-2 {
    top: 238px;
    right: auto;
    bottom: auto;
    left: 16px;
  }
  .work-grid,
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-form {
    padding: 22px 18px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

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