@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #181522;
  --night: #151320;
  --white: #f8f6fb;
  --cream: #f8f7f4;
  --lavender: #cdb6ff;
  --violet: #64429d;
  --muted: #bcbbca;
  --line: #ffffff26;
  --sans: 'DM Sans', Arial, sans-serif;
  --display: 'Manrope', Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--white); font: 1rem/1.6 var(--sans); }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
p, h1, h2, h3 { margin: 0; }
::selection { background: var(--lavender); color: var(--ink); }
:focus-visible { outline: 2px solid #9259ed; outline-offset: 5px; }
.wrap { width: min(1220px, calc(100% - 110px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 10; padding: 10px 16px; background: var(--white); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 2; background: var(--night); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; min-height: 86px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 9px; color: var(--white); font: 800 1.64rem/1 var(--display); letter-spacing: -.09em; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 7px); gap: 2px; transform: rotate(-15deg); }
.brand-mark i { width: 7px; height: 7px; border-radius: 5px 5px 5px 0; background: var(--lavender); }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { opacity: .62; }
.brand-dot { color: var(--lavender); }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 40px); }
.main-nav a { color: #ddd8e7; font-weight: 600; font-size: .93rem; }
.main-nav a:hover, .back-top:hover { color: var(--lavender); }
.header-contact { justify-self: end; }
.button { display: inline-flex; width: fit-content; min-height: 49px; align-items: center; justify-content: center; padding: 10px 20px; border: 1px solid transparent; border-radius: 999px; text-align: center; font-size: .93rem; font-weight: 700; line-height: 1.3; transition: background .2s, color .2s, border-color .2s; }
.button-outline { border-color: #ffffff42; color: var(--white); }
.button-outline:hover { border-color: var(--lavender); color: var(--lavender); background: #ffffff08; }
.button-lavender { background: var(--lavender); color: #1c122c; }
.button-lavender:hover { background: #e3d4ff; }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: #422973; }

.hero { overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.07fr .93fr; align-items: center; min-height: 590px; gap: clamp(20px, 3vw, 55px); padding-block: 65px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 23px; font-size: .83rem; font-weight: 700; letter-spacing: .13em; line-height: 1.35; color: var(--lavender); }
.eyebrow > span { display: inline-block; width: 19px; height: 1px; flex: 0 0 19px; background: currentColor; }
h1, h2 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -.088em; }
h1 { font-size: clamp(3.8rem, 6.45vw, 7rem); }
h1 em, h2 em { color: var(--lavender); font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; }
.hero-intro { max-width: 445px; color: var(--muted); font-size: 1.12rem; margin-top: 25px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.hero-foot { display: flex; justify-content: space-between; gap: 15px; padding-block: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .87rem; }

.hero-visual { position: relative; isolation: isolate; min-width: 0; height: clamp(300px, 35vw, 470px); display: grid; place-items: center; }
.hero-visual::before { position: absolute; inset: -8% -15%; z-index: -2; content: ''; background: radial-gradient(ellipse at 62% 54%, #7547c766 0, #4a32814d 28%, transparent 64%); }
.visual-grid { position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(#a68fd327 1px, transparent 1px), linear-gradient(90deg, #a68fd327 1px, transparent 1px); background-size: 29px 29px; mask-image: radial-gradient(ellipse at center, #000 16%, transparent 73%); }
.orbit { position: absolute; z-index: -1; pointer-events: none; inline-size: 110%; block-size: 54%; border: 1px solid #c6a4ff47; border-radius: 50%; transform: rotate(-31deg); }
.orbit-two { inline-size: 126%; block-size: 69%; border-color: #c6a4ff29; transform: rotate(-31deg); }
.orbit-three { inline-size: 92%; block-size: 42%; border-color: #c6a4ff25; transform: rotate(21deg); }
.spark { position: absolute; color: var(--lavender); line-height: 1; text-shadow: 0 0 16px #b589ff; }
.spark-large { top: 8%; right: 8%; font-size: 3.3rem; }
.spark-small { bottom: 12%; left: 5%; font-size: 1.6rem; }
.spark-tiny { top: 20%; left: 10%; font-size: .9rem; }
.hero-browser, .project-browser { overflow: hidden; background: #171320; border: 1px solid #c2a5f578; border-radius: 13px; }
.hero-browser { width: 94%; box-shadow: 0 32px 62px #0008, 0 0 48px #9470df35; transform: rotate(-7deg); }
.browser-bar { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 36px; align-items: center; padding-inline: 12px; border-bottom: 1px solid #a287cb40; background: #262037; color: #e8ddfa; font-family: ui-monospace, monospace; font-size: .75rem; }
.browser-dots { display: flex; gap: 4px; }
.browser-dots i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #ac93c9; }
.browser-dots i + i { opacity: .55; }
.browser-square { justify-self: end; width: 8px; height: 8px; border: 1px solid #ac93c9; border-radius: 2px; }
.hero-browser img { aspect-ratio: 1.85; object-fit: cover; }
.hero-tag { position: absolute; right: -3%; bottom: 12%; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border: 1px solid #dbc8ff5e; border-radius: 10px; background: #27213ce8; box-shadow: 0 12px 25px #0d0b1880; color: #d1c5e4; font-size: .75rem; line-height: 1.25; transform: rotate(5deg); }
.hero-tag strong { color: var(--white); font-size: .91rem; }
.tag-icon { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid #d6c4fe75; border-radius: 50%; color: var(--lavender); font: 700 1.22rem/1 Georgia, serif; }

.section-light { background: var(--cream); color: var(--ink); }
.section-light .eyebrow, .section-light h2 em { color: var(--violet); }
.work, .services, .about, .contact { padding-block: 100px; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(225px, 300px); align-items: end; gap: 30px; margin-bottom: 42px; }
.section-heading > p { padding-bottom: 4px; }
h2 { font-size: clamp(3.05rem, 6vw, 5.8rem); }
.section-light .section-heading > p, .project-info p:not(.project-type), .about-copy { color: #554f60; }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project { min-width: 0; }
.project-visual { display: grid; position: relative; min-height: 260px; aspect-ratio: 1.36; overflow: hidden; place-items: center; border-radius: 13px; }
.project-visual-shop { background: radial-gradient(ellipse at 26% 11%, #efa28b, #995b61 49%, #5f3a4e 100%); }
.project-visual-wordpress { background: radial-gradient(ellipse at 83% 5%, #b78bed, #60489e 52%, #352a68 100%); }
.project-browser { width: 84%; box-shadow: 0 22px 48px #1f092262; transform: translateY(7%) rotate(-3deg); transition: transform .25s ease; }
.project-visual:hover .project-browser { transform: translateY(4%) rotate(0); }
.project-browser img { aspect-ratio: 1.92; object-fit: cover; }
.mock-site-nav { display: flex; justify-content: space-between; gap: 8px; padding: 6px 11px; background: #f7f4ef; color: #292423; font-size: .73rem; }
.illustrated-browser { transform: translateY(1%) rotate(3deg); }
.illustration { position: relative; isolation: isolate; display: grid; align-items: center; aspect-ratio: 1.78; overflow: hidden; padding: 9%; background: #171426; color: #f4ecff; }
.illustration-copy { display: grid; gap: 7px; }
.illustration-copy > span { font-size: .7rem; color: #eddaff; letter-spacing: .12em; }
.illustration-copy > strong { font: 800 clamp(2.15rem, 4.6vw, 5.2rem)/.82 var(--display); letter-spacing: -.11em; }
.illustration-copy strong span { color: var(--lavender); }
.illustration-art { position: absolute; z-index: -1; right: -1%; top: 9%; width: 59%; aspect-ratio: 1; border: 1px solid #f3d8ff70; border-radius: 39% 61% 66% 34% / 63% 45% 55% 37%; background: repeating-radial-gradient(ellipse at 28% 70%, #f8caff 0%, #8551cf 7%, #38396b 13%, #161429 22%); box-shadow: 0 0 45px #b774ff45; transform: rotate(-39deg) scaleY(.75); }
.illustration-star { position: absolute; right: 14%; top: 16%; color: #eacfff; font-size: 1.75rem; }
.illustration-label { position: absolute; right: 13px; bottom: 12px; border-radius: 20px; padding: 3px 10px; background: #1c122ec7; color: #f6eaff; font-size: .77rem; }
.project-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 21px 0; border-bottom: 1px solid #23163826; }
.project-type { margin-bottom: 4px; color: var(--violet); font-size: .79rem; font-weight: 700; letter-spacing: .1em; }
h3 { font: 800 1.58rem/1.2 var(--display); letter-spacing: -.05em; }
.project-info p:not(.project-type) { margin-top: 7px; }
.project-link { flex: none; margin-top: 24px; padding: 4px 0; border-bottom: 1px solid currentColor; color: #4d2a86; font-size: .91rem; font-weight: 700; }
.project-link:hover { color: #7849c0; }

.services { background: #1c182a; }
.services .section-heading > p, .service p { color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { min-width: 0; min-height: 212px; padding: 26px; border: 1px solid #d6bbff2b; border-radius: 12px; background: #221c31; }
.service h3 { margin-top: 21px; font-size: 1.35rem; }
.service p { margin-top: 9px; }
.service-icon { position: relative; display: block; width: 32px; height: 26px; border: 1.5px solid var(--lavender); border-radius: 4px; }
.service-icon::before, .service-icon::after { position: absolute; content: ''; }
.icon-window::before, .icon-layout::before { top: 6px; left: 0; width: 100%; border-top: 1px solid var(--lavender); }
.icon-window::after { top: 12px; left: 6px; width: 8px; height: 6px; border-left: 1px solid var(--lavender); border-bottom: 1px solid var(--lavender); transform: rotate(45deg); }
.icon-shop { width: 26px; height: 24px; margin-top: 2px; }
.icon-shop::before { bottom: 65%; left: 6px; right: 6px; height: 14px; border: 1.5px solid var(--lavender); border-bottom: 0; border-radius: 7px 7px 0 0; }
.icon-layout::after { top: 7px; bottom: 0; left: 10px; border-left: 1px solid var(--lavender); }

.about-inner, .contact-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 42px; }
.about-copy { font-size: 1.06rem; }
.about-copy p + p { margin-top: 13px; }
.contact { color: var(--ink); background: #d8c6ff radial-gradient(ellipse at 0 100%, #f0e2ff 0, transparent 65%); }
.contact .eyebrow, .contact h2 em { color: #523080; }
.contact h2 + p { margin-top: 18px; }
.contact-details { display: grid; gap: 14px; font-style: normal; }
.contact-details > a:not(.button) { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 16px; padding-bottom: 12px; border-bottom: 1px solid #1a122b37; }
.contact-details > a:not(.button):hover { color: #663992; }
.contact-details strong { font-size: clamp(1.05rem, 2.1vw, 1.55rem); overflow-wrap: anywhere; }
.contact-details .button { margin-top: 4px; }
.footer-inner { display: flex; min-height: 85px; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .86rem; }
.back-top { color: var(--white); }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 70px); }
  .hero-inner { min-height: 525px; }
  .desktop-break { display: none; }
  .work, .services, .about, .contact { padding-block: 78px; }
  .service { padding: 20px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 42px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 14px; padding-block: 14px; }
  .header-contact { grid-column: 2; grid-row: 1; min-height: 40px; padding-inline: 13px; }
  .main-nav { grid-column: 1 / -1; justify-content: flex-start; gap: 25px; }
  .hero-inner { grid-template-columns: 1fr; gap: 21px; min-height: 0; padding-block: 55px 20px; }
  h1 { font-size: clamp(3.2rem, 9.3vw, 5.2rem); }
  .hero-visual { height: clamp(237px, 58vw, 370px); width: min(100%, 515px); margin-inline: auto; }
  .hero-browser { width: 86%; }
  .hero-tag { right: 3%; }
  .hero-foot { font-size: .8rem; }
  .section-heading, .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 17px; }
  .section-heading { margin-bottom: 26px; }
  .work, .services, .about, .contact { padding-block: 60px; }
  .projects-grid { gap: 29px; }
  .service-grid { grid-template-columns: 1fr; gap: 10px; }
  .service { min-height: 0; }
  .contact-details { margin-top: 7px; }
}

@media (max-width: 560px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-visual { min-height: 0; }
  .project-info { padding-block: 15px 19px; }
  .hero-intro { font-size: 1.04rem; }
  .hero-actions { margin-top: 23px; }
  .hero-actions .button { padding-inline: 14px; }
  .hero-foot, .footer-inner { flex-wrap: wrap; }
  .hero-foot { gap: 4px 14px; }
  .footer-inner { padding-block: 16px; }
}

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