:root {
  --bg: #f6f8ff;
  --bg2: #ffffff;
  --ink: #0b1220;
  --muted: #586174;
  --line: #dde4f4;
  --accent: #6a4cff;
  --lime: #d4f26a;
  --pad: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: radial-gradient(1100px 600px at 85% -5%, #e3dcff 0%, transparent 60%), radial-gradient(900px 600px at -10% 40%, #dff6ff 0%, transparent 55%), var(--bg); color: var(--ink); font-family: "Inter", system-ui, sans-serif; font-size: 1.05rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, .brand { font-family: "Space Grotesk", system-ui, sans-serif; letter-spacing: -0.035em; line-height: 1; }
em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Pills */
.pill { display: inline-block; padding: 13px 26px; border-radius: 100px; font-weight: 500; font-size: 0.98rem; transition: transform .15s, background .2s, color .2s; }
.pill:hover { transform: translateY(-2px); }
.pill-violet { background: var(--accent); color: #fff; }
.pill-ghost { border: 1px solid var(--line); color: var(--ink); }
.pill-ghost:hover { border-color: var(--accent); color: var(--accent); }
.pill-light { background: var(--ink); color: #fff; padding: 9px 18px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 16px var(--pad); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { font-size: 1.15rem; font-weight: 700; }
.brand span { color: var(--accent); }
.nav nav { display: flex; gap: 28px; align-items: center; font-size: 0.92rem; color: var(--muted); }
.nav nav a:not(.pill):hover { color: var(--ink); }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 40px; min-height: 88vh; padding: clamp(40px, 8vh, 100px) var(--pad); }
.hero h1 { font-size: clamp(2.8rem, 7.4vw, 7rem); font-weight: 700; }
.hero h1 .line { display: block; margin-bottom: .08em; }
.hero h1 em { font-size: 1.12em; color: var(--accent); }
.pill-tag { display: inline-block; vertical-align: middle; font-family: "Inter", sans-serif; font-size: clamp(.7rem, 1.1vw, .95rem); font-weight: 500; letter-spacing: 0; padding: .45em 1.1em; border-radius: 100px; transform: rotate(-4deg) translateY(-.4em); }
.t-lime { background: var(--lime); color: #131316; }
.t-violet { background: var(--accent); color: #fff; transform: rotate(3deg) translateY(-.4em); }
.hero-sub { margin-top: 30px; max-width: 46ch; color: var(--muted); font-size: 1.12rem; }
.hero-sub b { color: var(--ink); font-weight: 500; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.stack { position: relative; height: clamp(300px, 46vw, 520px); }
.stack .card { position: absolute; width: 56%; aspect-ratio: 3/4; object-fit: cover; border-radius: 22px; box-shadow: 0 40px 70px -30px rgba(40,30,120,.45); animation: float 7s ease-in-out infinite; }
.stack .c0 { left: 4%; top: 8%; transform: rotate(-9deg); background: #fff; }
.stack .c1 { left: 24%; top: 0; transform: rotate(4deg); animation-delay: -2s; z-index: 2; background: #fff; }
.stack .c2 { left: 40%; top: 14%; transform: rotate(12deg); animation-delay: -4s; z-index: 3; background: #fff; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.scroll { position: absolute; left: var(--pad); bottom: 28px; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.scroll:hover { color: var(--accent); border-color: var(--accent); }

/* Sections */
.section { padding: clamp(60px, 11vh, 130px) var(--pad); }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--muted); margin-bottom: 22px; }
.section h2 { font-size: clamp(2.2rem, 5.2vw, 4.4rem); font-weight: 700; max-width: 18ch; }
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* Work */
.big-title { position: relative; text-align: right; margin-bottom: 10px; }
.big-title h2 { position: relative; font-size: clamp(5rem, 17vw, 16rem); max-width: none; }
.big-title .ghost { position: absolute; right: 0; top: 0; transform: translate(-.04em,.05em); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(5rem, 17vw, 16rem); color: transparent; -webkit-text-stroke: 1px var(--line); line-height: 1; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: 20px; }
.project { display: flex; flex-direction: column; gap: 18px; }
.project-media { box-shadow: 0 24px 50px -28px rgba(40,30,120,.35); position: relative; display: block; aspect-ratio: 4/3; border-radius: 22px; overflow: hidden; background: var(--bg2); }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.project-media.contain img { object-fit: contain; padding: 14%; background: #f3f0e8; }
.project:hover .project-media img { transform: scale(1.04); }
.pill-label { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.95); color: #0b1220; font-weight: 600; box-shadow: 0 6px 18px -6px rgba(15,23,42,.3); font-size: .9rem; padding: 8px 16px; border-radius: 100px; }
.arrow { position: absolute; left: calc(16px + 0px); top: 16px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); color: #131316; display: grid; place-items: center; font-size: 1.1rem; transition: background .2s, color .2s; }
.project:hover .arrow { background: var(--lime); }
.num { font-size: .8rem; color: var(--muted); letter-spacing: .08em; }
.tagline { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.15; margin-top: 6px; }
.desc { color: var(--muted); font-size: .98rem; margin-top: 8px; max-width: 52ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags span { font-size: .78rem; padding: 4px 12px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); }
.visits { margin-top: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
.visit { color: var(--accent); font-weight: 500; font-size: .95rem; }
.visit:hover { text-decoration: underline; }
.next { display: flex; align-items: center; justify-content: space-between; padding: 30px; border: 1px dashed var(--line); border-radius: 22px; font-family: "Space Grotesk", sans-serif; font-size: 1.5rem; font-weight: 700; min-height: 220px; }
.next:hover { border-color: var(--accent); color: var(--accent); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.service { padding: 28px 24px 10px 0; }
.service h3 { font-size: 1.4rem; margin: 10px 0 8px; }
.service p { color: var(--muted); font-size: .95rem; }

/* Process */
.steps { display: grid; gap: 12px; max-width: 900px; margin-left: auto; }
.step { box-shadow: 0 10px 30px -18px rgba(40,30,120,.25); display: grid; grid-template-columns: 56px 1fr; grid-template-areas: "n t" ". d"; align-items: center; column-gap: 18px; text-align: left; font: inherit; color: var(--ink); background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 22px 26px; cursor: pointer; transition: background .3s, border-color .3s; }
.step-n { grid-area: n; font-size: .85rem; color: var(--muted); }
.step-t { grid-area: t; font-family: "Space Grotesk", sans-serif; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.02em; }
.step-d { grid-area: d; max-height: 0; overflow: hidden; opacity: 0; color: rgba(255,255,255,.85); transition: max-height .35s ease, opacity .35s ease, margin .35s; }
.step.on { background: var(--accent); border-color: var(--accent); }
.step.on .step-n { color: rgba(255,255,255,.8); }
.step.on .step-d { max-height: 60px; opacity: 1; margin-top: 8px; }
.step.on .step-t { color: #fff; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 6vw, 90px); border-top: 1px solid var(--line); }
.lead { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.25; letter-spacing: -.02em; margin-bottom: 18px; }
.about p { color: var(--muted); }
.about .lead { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chips span { padding: 7px 16px; border-radius: 100px; background: var(--bg2); border: 1px solid var(--line); font-size: .9rem; }

/* Contact */
.contact { text-align: center; padding-top: clamp(80px, 16vh, 180px); padding-bottom: clamp(80px, 16vh, 180px); }
.contact h2 { font-size: clamp(3rem, 9vw, 8rem); max-width: none; margin: 0 auto; }
.contact h2 em { color: var(--accent); font-size: 1.1em; }
.contact-actions { display: flex; gap: 14px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.contact-line { margin-top: 26px; color: var(--muted); font-size: .95rem; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 26px var(--pad); border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-bottom: 90px; }
  .stack { height: 340px; order: -1; }
  .projects-grid, .about { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .nav nav a:not(.pill) { display: none; }
  .steps { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
