:root {
  --purple-950: #21103d;
  --purple-900: #32105f;
  --purple-800: #4d148c;
  --purple-700: #6829ad;
  --purple-500: #9452d1;
  --lavender: #e8dcf5;
  --ink: #23172f;
  --muted: #6f6577;
  --paper: #fbf9fd;
  --white: #ffffff;
  --border: rgba(69, 32, 99, .13);
  --shadow: 0 24px 70px rgba(43, 16, 72, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip-link:focus {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: .7rem 1rem;
  background: white;
  color: var(--purple-900);
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 5vw, 5rem);
  color: white;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: "Libre Baskerville", serif;
}
.site-nav { display: flex; gap: 2rem; }
.site-nav a {
  position: relative;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.4rem;
  width: 100%;
  height: 2px;
  background: white;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: min(860px, 100svh);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 8rem clamp(1.25rem, 11vw, 10rem) 5rem;
  color: white;
  background:
    linear-gradient(105deg, rgba(44, 10, 83, .98) 0%, rgba(92, 30, 157, .92) 48%, rgba(160, 74, 205, .80) 100%),
    radial-gradient(circle at 70% 30%, #b873da, transparent 50%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, black, transparent 85%);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.eyebrow {
  margin: 0 0 1.1rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.eyebrow.purple { color: var(--purple-700); }
.hero h1 {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(4rem, 10.5vw, 9.5rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.065em;
  text-shadow: 0 10px 40px rgba(28, 6, 52, .25);
}
.hero-copy {
  max-width: 560px;
  margin: 2rem 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
}
.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: .92rem 1.4rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(24, 8, 45, .22); }
.button-light { color: var(--purple-900); background: white; }
.button-purple { color: white; background: var(--purple-800); }
.text-link { color: white; text-underline-offset: .3rem; }
.desk-scene {
  position: absolute;
  right: -4vw;
  bottom: -8%;
  z-index: 1;
  width: min(46vw, 680px);
  height: 63%;
  opacity: .5;
  transform: perspective(900px) rotateY(-8deg);
}
.laptop { position: absolute; right: 5%; bottom: 17%; width: 72%; height: 65%; }
.screen {
  display: grid;
  place-items: center;
  width: 100%;
  height: 82%;
  border: 8px solid rgba(255,255,255,.8);
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(145deg, rgba(32,14,49,.9), rgba(129,80,152,.45));
  box-shadow: -20px 30px 50px rgba(18, 6, 37, .35);
}
.screen-logo { font: 700 clamp(3rem, 8vw, 6rem) "Libre Baskerville", serif; color: rgba(255,255,255,.72); }
.base {
  width: 116%;
  height: 9%;
  margin-left: -8%;
  clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #eee6f1, #a694ab);
}
.orb { position: absolute; left: -8%; bottom: 18%; width: 15%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 28%, #e9c9ff, #6a258e 63%, #2a0d46); box-shadow: 0 20px 30px rgba(22,4,42,.25); }
.hero-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(8px); }
.hero-glow-one { width: 35rem; height: 35rem; right: 3%; top: -16rem; background: rgba(226, 139, 255, .22); }
.hero-glow-two { width: 22rem; height: 22rem; left: -10rem; bottom: -10rem; background: rgba(128, 44, 214, .45); }
.scroll-note { position: absolute; right: 2rem; bottom: 3rem; writing-mode: vertical-rl; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; opacity: .66; }

.section-pad { padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 9vw, 9rem); }
.welcome {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .75fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
  overflow: hidden;
}
.section-number { position: absolute; top: 2rem; right: 4vw; font: 400 clamp(7rem, 16vw, 14rem) "Libre Baskerville", serif; color: rgba(92, 35, 139, .055); }
.welcome h2, .services h2, .contact h2 {
  max-width: 760px;
  margin: 0 0 1.4rem;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 1.13;
  letter-spacing: -.045em;
}
.welcome-copy > p:last-child { max-width: 700px; color: var(--muted); font-size: 1.08rem; }
.principle-card {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  color: white;
  background: var(--purple-900);
  box-shadow: var(--shadow);
}
.principle-card p { margin: 0; font: 400 clamp(1.5rem, 3vw, 2.3rem)/1.35 "Libre Baskerville", serif; }
.quote-mark { position: absolute; top: .5rem; left: 1.3rem; font: 7rem/1 "Libre Baskerville", serif; color: rgba(255,255,255,.14); }
.card-label { margin-top: 2rem; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--lavender); }

.services { color: white; background: var(--purple-950); }
.services-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 4rem; }
.services-heading h2 { margin-bottom: 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.service-card { min-height: 310px; padding: 2.3rem; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.035); transition: transform .25s ease, background .25s ease; }
.service-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.075); }
.service-icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 3.6rem; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; font-size: .77rem; }
.service-card h3 { margin: 0 0 .8rem; font: 400 1.65rem "Libre Baskerville", serif; }
.service-card p { margin: 0; color: rgba(255,255,255,.7); }

.contact { display: grid; grid-template-columns: 1.25fr .75fr; padding-bottom: 0; background: white; }
.contact-panel { padding-bottom: clamp(5rem, 10vw, 9rem); }
.contact-panel > p:not(.eyebrow) { max-width: 620px; color: var(--muted); margin-bottom: 2rem; }
.contact-pattern { display: grid; place-items: center; min-height: 480px; overflow: hidden; color: white; background: repeating-linear-gradient(45deg, var(--purple-900) 0 28px, var(--purple-800) 28px 56px); }
.contact-pattern span { font: 400 clamp(8rem, 20vw, 18rem) "Libre Baskerville", serif; opacity: .85; }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 2rem; padding: 2rem clamp(1.25rem, 5vw, 5rem); color: white; background: #160923; }
.footer-brand { white-space: nowrap; }
.site-footer p { margin: 0; color: rgba(255,255,255,.65); font-size: .9rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .menu-toggle { display: grid; gap: 4px; width: 44px; height: 44px; place-content: center; border: 0; color: white; background: transparent; }
  .menu-toggle span:not(.sr-only) { width: 24px; height: 2px; background: currentColor; transition: transform .2s ease; }
  .site-nav { position: absolute; top: 100%; left: 1rem; right: 1rem; display: none; flex-direction: column; gap: 0; padding: .75rem; color: var(--ink); background: white; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem; }
  .desk-scene { right: -23vw; width: 70vw; opacity: .27; }
  .welcome, .contact { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 250px; }
  .service-icon { margin-bottom: 2rem; }
  .contact { padding-left: 0; padding-right: 0; }
  .contact-panel { padding-left: 1.25rem; padding-right: 1.25rem; }
  .contact-pattern { min-height: 280px; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { padding: 1.1rem 1.2rem; }
  .hero { min-height: 760px; padding-top: 9rem; align-items: start; }
  .hero h1 { font-size: clamp(3.5rem, 17vw, 5.2rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .desk-scene { width: 105vw; right: -38vw; bottom: -2%; height: 52%; }
  .scroll-note { display: none; }
  .principle-card { min-height: 290px; padding: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
