:root {
  --bg: #07081c;
  --bg-2: #0d0e28;
  --fg: #f2f0f7;
  --muted: #b9b6cc;
  --dim: #8a87a0;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --purple: #8975c6;
  --lilac: #ac92c4;
  --pink: #dcb8c0;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--lilac); text-decoration: none; transition: color .15s; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; text-wrap: pretty; }
p { margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--lilac); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--lilac); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font-weight: 500; font-size: 16px; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s, background .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: #9a88d3; color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.22); color: var(--fg); }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-white { background: #fff; color: var(--bg); padding: 12px 22px; font-size: 15px; }
.btn-white:hover { background: #e9e6f3; color: var(--bg); }

/* header */
.header { position: sticky; top: 0; z-index: 20; background: rgba(7,8,28,.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.header .logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 36px; align-items: center; }
.nav a { color: var(--muted); font-size: 15px; }
.nav a:hover { color: #fff; }
.burger { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; right: -160px; top: -120px; width: 980px; opacity: .5; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 32px; align-items: end; padding-top: 120px; padding-bottom: 96px; }
.hero-copy { grid-column: span 8; }
.hero-copy .eyebrow { margin-bottom: 28px; }
.hero h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.02; margin-bottom: 28px; }
.hero h1 em { font-style: italic; color: var(--pink); }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 620px; margin-bottom: 40px; font-weight: 300; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; }
.stats { grid-column: span 4; display: flex; flex-direction: column; gap: 22px; padding-left: 24px; border-left: 1px solid var(--line-2); }
.stat b { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1; display: block; }
.stat b span { color: var(--lilac); }
.stat small { font-size: 14px; color: var(--muted); display: block; margin-top: 4px; }

/* sections */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 32px; margin-bottom: 56px; }
.section-head .t { grid-column: span 6; }
.section-head .t .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1.08; }
.section-head .d { grid-column: 8 / span 5; align-self: end; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 18px; padding: 32px 28px; border-radius: 20px; background: rgba(137,117,198,.10); border: 1px solid rgba(172,146,196,.22); transition: border-color .15s, transform .15s; }
.card:hover { border-color: rgba(220,184,192,.5); transform: translateY(-2px); }
.card svg { width: 28px; height: 28px; stroke: var(--pink); }
.card h3 { font-family: var(--sans); font-size: 20px; font-weight: 500; }
.card p { font-size: 15px; color: var(--muted); }

.about .wrap { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 32px; align-items: center; }
.about-img { grid-column: span 6; position: relative; }
.about-img img { border-radius: 24px; width: 100%; }
.badge { position: absolute; left: 24px; bottom: 24px; background: rgba(7,8,28,.85); backdrop-filter: blur(8px); padding: 18px 22px; border-radius: 16px; border: 1px solid var(--line-2); }
.badge small { font-size: 13px; color: var(--muted); display: block; }
.badge b { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; }
.about-text { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 28px; }
.about-text h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.08; }
.list { display: flex; flex-direction: column; gap: 20px; }
.list li { list-style: none; display: flex; gap: 16px; align-items: flex-start; }
.list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); margin-top: 10px; flex-shrink: 0; }
.list b { font-weight: 500; display: block; }
.list span { font-size: 15px; color: var(--muted); }
.list { padding: 0; margin: 0; }

.projects-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.projects-head h2 { font-size: clamp(32px, 3.6vw, 44px); }
.projects-head .eyebrow { margin-bottom: 16px; }
.projects-head p { color: var(--muted); max-width: 420px; font-size: 16px; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.project { position: relative; aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project:hover img { transform: scale(1.04); }
.project figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; background: linear-gradient(transparent, rgba(7,8,28,.9)); }
.project figcaption b { display: block; font-weight: 500; }
.project figcaption span { font-size: 13px; color: var(--muted); }

/* contact */
.contact { padding: 96px 0; border-top: 1px solid var(--line); }
.contact-box { border-radius: 28px; padding: 72px; background: linear-gradient(135deg, rgba(137,117,198,.35), rgba(220,184,192,.18)); border: 1px solid rgba(172,146,196,.3); display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 40px; }
.contact-copy { grid-column: span 5; display: flex; flex-direction: column; gap: 28px; }
.contact-copy h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1.06; }
.contact-copy p { color: #d8d5e6; font-size: 18px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-links a, .contact-links div { display: flex; align-items: center; gap: 14px; color: #fff; font-size: 16px; }
.contact-links svg { width: 20px; height: 20px; stroke: var(--pink); flex-shrink: 0; }
.contact-links div { color: #d8d5e6; font-size: 15px; }
.form { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: span 2; }
.field label { font-size: 13px; color: #d8d5e6; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: #fff; background: rgba(7,8,28,.55); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 14px 16px; outline: none; transition: border-color .15s; }
.field input:focus, .field textarea:focus { border-color: var(--pink); }
.field textarea { min-height: 130px; resize: vertical; }
.field.error input, .field.error textarea { border-color: #f08a9b; }
.form .submit { grid-column: span 2; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-msg { font-size: 14px; color: #d8d5e6; }
.form-msg.ok { color: #b6f0c8; }
.form-msg.err { color: #f7b1bd; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--dim); }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer img { height: 28px; width: auto; opacity: .9; }
.footer nav { display: flex; gap: 28px; }
.footer a { color: var(--dim); }
.footer a:hover { color: #fff; }

/* legal pages */
.legal { padding: 80px 0 96px; }
.legal .wrap { max-width: 880px; }
.legal h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 12px; }
.legal .date { color: var(--dim); font-size: 14px; margin-bottom: 48px; }
.legal h2 { font-family: var(--sans); font-size: 20px; font-weight: 500; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }

@media (max-width: 1024px) {
  .wrap { padding: 0 40px; }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy, .stats { grid-column: auto; }
  .stats { flex-direction: row; gap: 40px; border-left: 0; padding-left: 0; border-top: 1px solid var(--line-2); padding-top: 28px; flex-wrap: wrap; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-head .t, .section-head .d { grid-column: auto; }
  .about .wrap { grid-template-columns: 1fr; }
  .about-img, .about-text { grid-column: auto; }
  .projects { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contact-box { grid-template-columns: 1fr; padding: 48px 40px; }
  .contact-copy, .form { grid-column: auto; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .header .wrap { height: 72px; }
  .header .logo img { height: 32px; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 14px; border: 0; }
  .burger { display: block; }
  .hero .wrap { padding-top: 72px; padding-bottom: 64px; }
  .hero .lead { font-size: 18px; }
  .stat b { font-size: 40px; }
  .section { padding: 64px 0; }
  .cards, .projects { grid-template-columns: 1fr; }
  .contact-box { padding: 36px 22px; border-radius: 20px; }
  .form { grid-template-columns: 1fr; }
  .field.full, .form .submit { grid-column: auto; }
  .footer .wrap { flex-direction: column; align-items: flex-start; }
  .hero-bg { width: 700px; right: -250px; top: -150px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .project img, .card { transition: none; } }
