:root {
  --bg: #0a0d12;
  --bg-soft: #10141b;
  --surface: rgba(255,255,255,.055);
  --line: rgba(255,255,255,.11);
  --text: #f6f7f9;
  --muted: #9da3ae;
  --accent: #7b68ee;
  --accent-light: #a89cff;
  --paper: #f4f5f7;
  --ink: #141821;
  --ink-muted: #6f7581;
  --paper-line: #dedfe5;
  --shell: min(1180px, calc(100% - 40px));
  --shadow: 0 30px 90px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 12%, rgba(123,104,238,.15), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.light-page { color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { border: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.shell { width: var(--shell); margin-inline: auto; }

.header {
  position: relative; z-index: 20; display: flex; min-height: 84px;
  align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.035em; }
.brand-mark {
  display: grid; width: 39px; height: 39px; place-items: center;
  border-radius: 11px; background: linear-gradient(145deg, #9585ff, #6651de);
  color: white; box-shadow: 0 12px 28px rgba(102,81,222,.25);
}
.navigation { display: flex; align-items: center; gap: 27px; color: var(--muted); font-size: 12px; font-weight: 700; }
.navigation a:hover, .navigation a.active { color: var(--text); }
.light-page .navigation { color: var(--ink-muted); }
.light-page .navigation a:hover, .light-page .navigation a.active { color: var(--ink); }
.nav-cta {
  min-height: 40px; display: inline-flex; align-items: center; padding: 0 15px;
  border: 1px solid var(--line); border-radius: 10px; color: white !important;
  background: var(--surface);
}
.nav-cta-dark { border-color: var(--paper-line); color: var(--ink) !important; background: white; }
.menu-button { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; }
.menu-button span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: currentColor; border-radius: 999px; }

.hero {
  display: grid; grid-template-columns: .95fr 1.05fr; align-items: center;
  gap: 75px; min-height: 700px; padding-block: 70px 100px;
}
.eyebrow { color: var(--accent-light); font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.hero h1, .page-hero h1, .contact-copy h1 {
  margin: 20px 0 22px; font-size: clamp(4rem, 6.7vw, 7rem);
  line-height: .93; letter-spacing: -.072em;
}
.hero-copy > p, .page-hero > p, .contact-copy > p {
  max-width: 620px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75;
}
.light-page .page-hero > p { color: var(--ink-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 34px; }
.button {
  min-height: 50px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 20px; border-radius: 11px; cursor: pointer; font-size: 12px;
  font-weight: 800; transition: transform 180ms ease, opacity 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button-primary { color: white; background: linear-gradient(135deg, #8b78ff, #6651de); box-shadow: 0 16px 38px rgba(102,81,222,.25); }
.button-secondary { border: 1px solid var(--line); color: white; background: var(--surface); }
.button-light { color: var(--ink); background: white; }
.hero-proof { display: grid; grid-template-columns: auto auto auto auto auto auto; align-items: baseline; gap: 8px 13px; margin-top: 34px; }
.hero-proof strong { font-size: 20px; }
.hero-proof span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }

.hero-visual {
  position: relative; min-height: 510px; overflow: hidden; border: 1px solid var(--line);
  border-radius: 24px; background: linear-gradient(145deg, #171c26, #0f131a); box-shadow: var(--shadow);
}
.visual-grid {
  position: absolute; inset: 0; opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 42px 42px;
}
.visual-orbit { position: absolute; border: 1px solid rgba(168,156,255,.24); border-radius: 50%; }
.orbit-one { width: 410px; height: 410px; top: 48px; left: 50%; transform: translateX(-50%); }
.orbit-two { width: 270px; height: 270px; top: 118px; left: 50%; transform: translateX(-50%); }
.visual-core {
  position: absolute; top: 50%; left: 50%; width: 190px; height: 190px;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  border-radius: 50%; transform: translate(-50%,-50%);
  background: radial-gradient(circle at 35% 25%, #9f91ff, #5c48cb 68%);
  box-shadow: 0 0 90px rgba(123,104,238,.34);
}
.visual-core span { font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.visual-core strong { margin-top: 12px; font-size: 27px; line-height: 1.03; letter-spacing: -.05em; }
.floating-card {
  position: absolute; min-width: 145px; padding: 14px; border: 1px solid var(--line);
  border-radius: 12px; background: rgba(12,16,22,.86); box-shadow: 0 20px 45px rgba(0,0,0,.25); backdrop-filter: blur(14px);
}
.floating-card span, .floating-card strong { display: block; }
.floating-card span { color: var(--muted); font-size: 8px; }
.floating-card strong { margin-top: 6px; font-size: 12px; }
.floating-card-one { top: 48px; left: 35px; }
.floating-card-two { right: 30px; bottom: 42px; }

.client-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.client-strip > div { display: grid; grid-template-columns: repeat(5,1fr); min-height: 84px; align-items: center; color: #626975; text-align: center; font-size: 10px; font-weight: 850; letter-spacing: .14em; }

.services-section, .featured-work { padding-block: 120px; }
.section-heading { max-width: 760px; margin-bottom: 45px; }
.section-heading h2, .process-copy h2, .cta h2 {
  margin: 14px 0 16px; font-size: clamp(2.8rem,5vw,5.2rem); line-height: 1; letter-spacing: -.065em;
}
.section-heading p, .process-copy p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.service-card { min-height: 310px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.service-card > span { color: var(--accent-light); font-size: 10px; font-weight: 850; }
.service-card h3 { margin: 115px 0 12px; font-size: 26px; letter-spacing: -.045em; }
.service-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.process-section { padding-block: 120px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); }
.process-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.process-copy { position: sticky; top: 35px; }
.process-list { display: grid; }
.process-item { display: grid; grid-template-columns: 45px 1fr; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.process-item > span { color: var(--accent-light); font-size: 10px; font-weight: 850; }
.process-item h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.04em; }
.process-item p { margin: 0; color: var(--muted); font-size: 13px; }

.heading-row { display: flex; max-width: none; align-items: flex-end; justify-content: space-between; gap: 30px; }
.text-link { color: var(--accent-light); font-size: 11px; font-weight: 800; }
.project-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.project-art { position: relative; min-height: 280px; overflow: hidden; background: linear-gradient(145deg,#7a67ef,#202536); }
.project-art::before {
  position: absolute; width: 250px; height: 250px; border-radius: 50%; content: "";
  top: 35px; left: 50%; transform: translateX(-50%);
  border: 45px solid rgba(255,255,255,.13);
}
.project-art::after {
  position: absolute; width: 155px; height: 155px; border-radius: 28px; content: "";
  top: 85px; left: 50%; transform: translateX(-50%) rotate(35deg);
  background: rgba(255,255,255,.13);
}
.project-sierra { background: linear-gradient(145deg,#3d7cca,#192536); }
.project-harbor { background: linear-gradient(145deg,#4e9d78,#182a22); }
.project-art span { position: absolute; z-index: 2; top: 16px; right: 16px; color: rgba(255,255,255,.7); font-size: 9px; }
.project-copy { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 20px; }
.project-copy small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.project-copy h3 { margin: 7px 0 0; font-size: 22px; letter-spacing: -.04em; }
.project-copy > strong { color: var(--accent-light); font-size: 9px; text-align: right; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 100px; padding: 48px; border-radius: 24px; background: linear-gradient(135deg,#715ce4,#4f3bb8); }
.cta h2 { margin-bottom: 0; }

.page-hero { padding-block: 95px 80px; }
.page-hero h1 { max-width: 930px; color: var(--ink); }
.work-list { padding-bottom: 110px; }
.work-row { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 30px; padding: 34px 0; border-top: 1px solid var(--paper-line); }
.work-number { color: var(--accent); font-size: 10px; font-weight: 850; }
.work-row small { color: var(--ink-muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.work-row h2 { margin: 8px 0 0; font-size: clamp(2rem,4vw,4rem); letter-spacing: -.055em; }
.work-row > strong { color: var(--accent); font-size: 11px; }

.contact-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; padding-block: 100px 120px; }
.contact-copy h1 { font-size: clamp(3.8rem,6.5vw,6.7rem); }
.contact-meta { display: grid; gap: 18px; margin-top: 35px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-meta span, .contact-meta strong { display: block; }
.contact-meta span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.contact-meta strong { margin-top: 6px; font-size: 12px; }
.contact-form { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 750; }
.form-grid input, .form-grid textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: 0;
  color: white; background: rgba(0,0,0,.15);
}
.form-grid input { height: 45px; padding: 0 12px; }
.form-grid textarea { min-height: 170px; padding: 12px; resize: vertical; }
.form-grid input:focus, .form-grid textarea:focus { border-color: rgba(168,156,255,.7); box-shadow: 0 0 0 4px rgba(123,104,238,.08); }
.full { grid-column: 1 / -1; }
.form-button { width: 100%; margin-top: 16px; }
.contact-form pre {
  min-height: 130px; margin: 13px 0 0; padding: 14px; overflow: auto;
  border: 1px solid var(--line); border-radius: 10px; color: #c8cbd2;
  background: #07090d; font: 9px/1.65 "SFMono-Regular", Consolas, monospace; white-space: pre-wrap;
}

.footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; min-height: 120px; border-top: 1px solid var(--line); color: #666d78; font-size: 9px; }
.footer-light { border-color: var(--paper-line); color: var(--ink-muted); }

.loading { grid-column: 1 / -1; padding: 45px; border: 1px solid var(--line); border-radius: 15px; color: var(--muted); text-align: center; }
.light-page .loading { border-color: var(--paper-line); color: var(--ink-muted); }
.loading.error { color: #ef8f9d; }

.error-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; flex-direction: column; padding: 30px; text-align: center; }
.error-code { margin-top: 45px; color: rgba(123,104,238,.28); font-size: clamp(8rem,24vw,16rem); font-weight: 900; line-height: .75; }
.error-page h1 { max-width: 700px; margin: 30px 0 12px; font-size: clamp(2.2rem,5vw,4.5rem); letter-spacing: -.06em; }
.error-page p { margin: 0 0 28px; color: var(--muted); }

.toast {
  position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: min(380px,calc(100% - 44px));
  padding: 14px 17px; border: 1px solid var(--paper-line); border-radius: 10px;
  color: var(--ink); background: rgba(255,255,255,.98); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(15px); pointer-events: none; transition: 180ms ease;
  font-size: 11px; font-weight: 750;
}
.toast[data-type="error"] { color: #a43e4c; }
.toast.show { opacity: 1; transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero, .contact-section { grid-template-columns: 1fr; }
  .hero-copy, .contact-copy { max-width: 780px; }
  .hero-visual { max-width: 760px; }
  .services-grid, .project-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 240px; }
  .service-card h3 { margin-top: 70px; }
  .process-grid { gap: 60px; }
}
@media (max-width: 720px) {
  :root { --shell: min(100% - 28px,1180px); }
  .header { min-height: 74px; }
  .menu-button { display: block; }
  .navigation {
    position: absolute; top: 66px; right: 0; left: 0; display: none; align-items: stretch;
    gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 13px;
    background: rgba(10,13,18,.98); box-shadow: var(--shadow);
  }
  .light-page .navigation { border-color: var(--paper-line); background: rgba(244,245,247,.98); }
  .navigation.open { display: grid; }
  .navigation a { padding: 12px; border-radius: 8px; }
  .nav-cta { justify-content: center; }
  .hero { gap: 50px; min-height: auto; padding-block: 60px 80px; }
  .hero h1, .page-hero h1, .contact-copy h1 { font-size: clamp(3.6rem,16vw,5.7rem); }
  .hero-actions, .hero-actions .button { width: 100%; }
  .hero-proof { grid-template-columns: auto 1fr; }
  .client-strip > div { grid-template-columns: repeat(2,1fr); gap: 22px; padding-block: 25px; }
  .client-strip span:last-child { grid-column: 1 / -1; }
  .services-section, .featured-work, .process-section { padding-block: 85px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-copy { position: static; }
  .heading-row, .cta { align-items: flex-start; flex-direction: column; }
  .cta { padding: 33px 24px; }
  .cta .button { width: 100%; }
  .work-row { grid-template-columns: 40px 1fr; }
  .work-row > strong { grid-column: 2; }
  .contact-section { gap: 45px; padding-block: 80px; }
  .form-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .footer { grid-template-columns: 1fr; padding-block: 35px; }
}
@media (max-width: 520px) {
  .hero-visual { min-height: 450px; }
  .orbit-one { width: 350px; height: 350px; top: 50px; }
  .orbit-two { width: 235px; height: 235px; top: 108px; }
  .visual-core { width: 165px; height: 165px; }
  .floating-card-one { top: 20px; left: 18px; }
  .floating-card-two { right: 18px; bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
