:root {
  --accent: #2B3FE0;
  --accent-light: #9AA6FF;
  --ink: #111111;
  --paper: #F4F3EF;
  --body: #45453F;
  --muted: #5C5C55;
  --line: #CFCDC4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}
h1, h2, h3 { font-family: 'Space Grotesk', system-ui, sans-serif; }
h2 { margin: 0; font-size: 44px; letter-spacing: -0.03em; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
.muted { color: var(--muted); font-size: 15px; margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* Header */
.site-header { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; }
.nav { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; font-size: 15px; font-weight: 500; }
.nav-cta { background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; }
.nav-cta:hover { color: #FFFFFF; background: var(--accent); }

/* Hero */
.hero { padding-top: 96px; padding-bottom: 120px; position: relative; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0; opacity: 0.7;
  background-image: linear-gradient(#DAD8D0 1px, transparent 1px), linear-gradient(90deg, #DAD8D0 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.hero-waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-waves path { fill: none; stroke: var(--line); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.node { position: absolute; display: flex; align-items: center; }
.node-l { left: 0; }
.node-r { right: 0; }
.node-line { height: 1px; background: var(--line); }
.node-dot { width: 7px; height: 7px; border-radius: 50%; background: #B8B6AD; }
.hero-square { position: absolute; bottom: 40px; left: 7%; width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--line); transform: rotate(-15deg); }
.hero-triangle { position: absolute; bottom: 70px; right: 9%; }
.hero-triangle polygon { fill: none; stroke: var(--line); stroke-width: 1.5; }

.badge { margin: 0 0 24px; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.badge-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
.hero-title { margin: 0; font-size: clamp(48px, 8vw, 112px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 700; max-width: 1100px; position: relative; }
.hero-title .ghost { visibility: hidden; }
.hero-title .typed { position: absolute; inset: 0; }
.accent-text { color: var(--accent); }
.hero-foot { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-end; margin-top: 56px; }
.lead { margin: 0; font-size: 20px; line-height: 1.55; color: var(--body); max-width: 560px; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 16px 28px; border-radius: 999px; font-weight: 600; font-size: 16px; transition: transform 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #FFFFFF; }
.btn-accent:hover { color: #FFFFFF; }
.btn-outline { border: 1.5px solid var(--ink); padding: 15px 28px; }
.btn-white { background: #FFFFFF; color: var(--ink); }
.btn-outline-white { border: 1.5px solid #FFFFFF; color: #FFFFFF; padding: 15px 28px; }
.btn-outline-white:hover { color: #FFFFFF; }

/* Work */
.section-work { padding-top: 40px; padding-bottom: 120px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1.5px solid var(--ink); padding-top: 24px; margin-bottom: 48px; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 48px 32px; }
.project { display: flex; flex-direction: column; gap: 18px; }
.thumb { aspect-ratio: 4 / 3; border-radius: 20px; background: var(--tint); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.mock { width: 72%; height: 70%; background: #FFFFFF; border-radius: 12px; box-shadow: 0 24px 60px rgba(17,17,17,0.18); display: flex; flex-direction: column; overflow: hidden; transition: transform 0.25s ease; }
.project:hover .mock { transform: translateY(-6px); }
.mock-bar { height: 26px; background: #ECEBE6; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.mock-bar span { width: 8px; height: 8px; border-radius: 50%; background: #C9C8C1; }
.mock-body { flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.m-title { height: 14px; width: 55%; background: var(--ink); border-radius: 4px; }
.m-line { height: 8px; background: #D6D5CF; border-radius: 4px; }
.m-img { flex: 1; margin-top: 8px; border-radius: 8px; background: var(--tint); opacity: 0.55; }
.project-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.project-meta h3 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.project-tags { margin: -8px 0 0; font-size: 16px; color: var(--body); }

/* Services */
.services { background: var(--ink); color: var(--paper); }
.services-inner { padding-top: 120px; padding-bottom: 120px; }
.services-inner h2 { margin-bottom: 16px; }
.services-intro { margin: 0 0 64px; font-size: 19px; line-height: 1.55; color: #B9B8B0; max-width: 600px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.service { border: 1px solid #3A3A36; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.service-num { font-family: 'Space Grotesk', sans-serif; font-size: 15px; color: var(--accent-light); }
.service h3 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.service p { margin: 0; font-size: 16px; line-height: 1.6; color: #B9B8B0; }

/* Process */
.process { padding-top: 120px; padding-bottom: 120px; }
.process h2 { margin-bottom: 56px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.step { border-top: 1.5px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: 'Space Grotesk', sans-serif; font-size: 48px; font-weight: 600; color: var(--accent); line-height: 1; }
.step h3 { margin: 0; font-size: 22px; }
.step p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); }

/* About */
.about { padding-bottom: 120px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.photo { flex: 1 1 340px; aspect-ratio: 4 / 5; max-width: 460px; border-radius: 24px; background: #E2E0D8; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 15px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-text p { margin: 0; font-size: 19px; line-height: 1.65; color: var(--body); }
.about-text .tools { margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }

/* Contact */
.contact { padding-bottom: 24px; }
.contact-card { background: var(--accent); color: #FFFFFF; border-radius: 32px; padding: clamp(40px, 7vw, 96px); display: flex; flex-direction: column; gap: 28px; }
.contact-card h2 { font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -0.04em; max-width: 900px; }
.contact-card p { margin: 0; font-size: 19px; line-height: 1.55; max-width: 560px; color: #E8EBFF; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 40px; padding-bottom: 64px; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .mock { transition: none; }
}
