/* ============================================================
   Lee Richard Technology — "Violet Circuit" theme
   Dark violet base · brand purple + teal (from capability
   statement logo gradient) · Fraunces + Instrument Sans
   ============================================================ */

:root {
  --ink: #131020;          /* page base — deep violet ink */
  --panel: #1a1630;        /* raised surfaces */
  --panel-2: #221c3e;      /* hover surfaces */
  --gold: #a06ce0;         /* accent — brand purple, lifted for dark bg */
  --gold-soft: #c39bf2;    /* accent highlight */
  --teal: #45d6c3;         /* secondary accent — logo teal */
  --ivory: #edeaf4;        /* primary text */
  --slate: #918da6;        /* muted text */
  --line: rgba(160, 108, 224, 0.20);   /* hairlines */
  --display: "Fraunces", Georgia, serif;
  --body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--ink); }

img, svg { display: block; max-width: 100%; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }

h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; }

p { max-width: 62ch; }

a { color: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--ink);
  padding: 10px 18px; z-index: 200; text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 2px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.2s var(--ease);
  will-change: transform;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn--full { width: 100%; text-align: center; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(19, 16, 32, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: 1180px; margin: 0 auto;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 36px;
  padding: 0 24px;
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ivory);
  margin-right: auto;
}
.nav__mark { width: 34px; height: 34px; color: var(--gold); }
.nav__name { font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.01em; white-space: nowrap; }
.nav__name em { font-style: italic; color: var(--gold-soft); }
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  text-decoration: none; font-size: 0.92rem; color: var(--slate);
  position: relative; padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ivory); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { padding: 11px 22px; }

.nav__toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 2px;
  width: 44px; height: 44px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav__toggle span { display: block; width: 20px; height: 1.5px; background: var(--ivory); transition: transform 0.3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column; gap: 4px;
  padding: 8px 24px 24px;
  background: rgba(19, 16, 32, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__mobile a { text-decoration: none; padding: 12px 0; color: var(--ivory); font-size: 1.05rem; }
.nav__mobile .btn { margin-top: 10px; text-align: center; }
.nav__mobile.is-open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 30% 45%, transparent 0%, rgba(19,16,32,0.55) 70%, var(--ink) 100%),
    linear-gradient(to bottom, rgba(19,16,32,0.35), transparent 30%, transparent 70%, var(--ink) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: 1180px; width: 100%;
  margin: 0 auto; padding: 140px 24px 100px;
}
.hero__kicker {
  color: var(--gold); font-size: 0.88rem; letter-spacing: 0.08em;
  margin-bottom: 26px;
  opacity: 0; animation: rise 0.9s var(--ease) 0.15s forwards;
}
.hero__title {
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 400;
  display: flex; flex-direction: column;
}
.hero__line {
  opacity: 0; transform: translateY(0.35em);
  animation: rise 1s var(--ease) forwards;
}
.hero__line:nth-child(1) { animation-delay: 0.3s; }
.hero__line:nth-child(2) { animation-delay: 0.45s; }
.hero__line:nth-child(3) { animation-delay: 0.6s; }
.hero__line--gold { color: var(--gold); font-style: italic; }
.hero__lede {
  margin-top: 30px; max-width: 46ch;
  font-size: 1.12rem; color: var(--slate);
  opacity: 0; animation: rise 1s var(--ease) 0.85s forwards;
}
.hero__actions {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px;
  opacity: 0; animation: rise 1s var(--ease) 1s forwards;
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 34px; z-index: 2;
  width: 1px; height: 56px; background: var(--line); overflow: hidden;
}
.hero__scroll span {
  display: block; width: 100%; height: 40%;
  background: var(--teal);
  animation: drip 2.2s var(--ease) infinite;
}

@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes drip {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(260%); }
}

/* ---------- Trust bar ---------- */
.trust { border-block: 1px solid var(--line); background: var(--panel); }
.trust__inner {
  max-width: 1180px; margin: 0 auto; padding: 44px 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.trust__item { display: flex; flex-direction: column; }
.trust__num, .trust__plus {
  font-family: var(--display); font-size: 2.6rem; line-height: 1;
  color: var(--gold); display: inline;
}
.trust__item { display: block; }
.trust__label { display: block; margin-top: 8px; color: var(--slate); font-size: 0.92rem; }

/* ---------- Sections shared ---------- */
.section-head { max-width: 1180px; margin: 0 auto; padding: 0 24px 56px; }
.section-head p { color: var(--slate); margin-top: 14px; }

.solutions, .process { padding: 110px 0; }

/* ---------- Solutions ---------- */
.solutions__grid {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 38px 34px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover {
  border-color: rgba(160, 108, 224, 0.5);
  background: var(--panel-2);
  transform: translateY(-4px);
}
.card__icon { width: 46px; height: 46px; color: var(--gold); margin-bottom: 22px; }
.card p { color: var(--slate); margin-top: 12px; font-size: 0.98rem; }
.card__list { margin-top: 18px; list-style: none; }
.card__list li {
  padding: 9px 0 9px 22px; position: relative;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.card__list li::before {
  content: ""; position: absolute; left: 2px; top: 50%;
  width: 8px; height: 1.5px; background: var(--teal);
}

/* ---------- Process ---------- */
.process { background: var(--panel); border-block: 1px solid var(--line); }
.process__steps {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  list-style: none; counter-reset: step;
}
.process__step { position: relative; padding: 8px 26px 0; border-left: 1px solid var(--line); }
.process__num {
  font-family: var(--display); font-style: italic;
  font-size: 3rem; color: var(--gold); line-height: 1;
  display: block; margin-bottom: 18px;
}
.process__step p { color: var(--slate); margin-top: 10px; font-size: 0.97rem; }

/* ---------- Vision ---------- */
.vision { padding: 130px 24px; }
.vision__inner { max-width: 880px; margin: 0 auto; text-align: center; }
.vision__mark {
  font-family: var(--display); font-size: 5rem; line-height: 0.4;
  color: var(--gold); margin-bottom: 8px;
}
.vision__text {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.35;
  max-width: none; margin: 0 auto;
}
.vision__attr { margin: 28px auto 0; color: var(--gold); font-size: 0.9rem; letter-spacing: 0.06em; }

/* ---------- Contact ---------- */
.contact { padding: 110px 0; background: var(--panel); border-top: 1px solid var(--line); }
.contact__inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start;
}
.contact__copy p { color: var(--slate); margin-top: 16px; }
.contact__details { margin-top: 36px; font-style: normal; display: flex; flex-direction: column; gap: 10px; }
.contact__details a, .contact__details span {
  text-decoration: none; color: var(--ivory);
  padding: 12px 0; border-top: 1px solid var(--line);
  transition: color 0.25s var(--ease);
}
.contact__details a:hover { color: var(--gold-soft); }

.contact__form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.88rem; color: var(--slate); }
.field input, .field textarea, .footer__newsrow input {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 14px 16px;
  color: var(--ivory);
  font-family: var(--body); font-size: 1rem;
  transition: border-color 0.25s var(--ease);
}
.field input:focus, .field textarea:focus, .footer__newsrow input:focus {
  outline: none; border-color: var(--gold);
}
.field textarea { resize: vertical; }
.form-note { font-size: 0.9rem; color: var(--gold-soft); min-height: 1.2em; max-width: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 24px 30px; }
.footer__inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 50px;
}
.footer__brand p { margin-top: 16px; color: var(--slate); font-size: 0.95rem; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { text-decoration: none; color: var(--slate); font-size: 0.95rem; transition: color 0.25s var(--ease); }
.footer__links a:hover { color: var(--gold-soft); }
.footer__news label { display: block; font-family: var(--display); font-size: 1.15rem; margin-bottom: 16px; }
.footer__newsrow { display: flex; gap: 10px; }
.footer__newsrow input { flex: 1; }
.footer__legal {
  max-width: 1180px; margin: 60px auto 0; padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--slate); font-size: 0.85rem;
}

/* ---------- Decorative graphics ---------- */
.deco { position: absolute; color: var(--gold); pointer-events: none; }
.solutions { position: relative; overflow: hidden; }
.deco--circuit {
  top: -20px; right: 0; width: min(520px, 48vw); height: auto;
  opacity: 0.14;
}
.vision { position: relative; overflow: hidden; }
.deco--rings {
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 820px; max-width: 130vw; opacity: 0.1;
}
.deco__orbit { transform-origin: 400px 400px; animation: orbit 60s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.vision__inner { position: relative; z-index: 1; }

.process { position: relative; }
.process__wire {
  display: block; max-width: 1180px; margin: 0 auto -34px;
  padding: 0 24px; width: 100%; height: 8px;
  color: var(--gold); opacity: 0.55; box-sizing: border-box;
}
.process__wireline {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease) 0.2s;
}
.process.is-wired .process__wireline { stroke-dashoffset: 0; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .deco__orbit { animation: none; }
  .process__wireline { stroke-dashoffset: 0; transition: none; }
  .hero__kicker, .hero__line, .hero__lede, .hero__actions { animation: none; opacity: 1; transform: none; }
  .hero__scroll { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav { background: rgba(19, 16, 32, 0.9); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
  .solutions__grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; gap: 40px; }
  .contact__inner { grid-template-columns: 1fr; gap: 50px; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .trust__inner { grid-template-columns: 1fr; gap: 26px; }
  .solutions, .process, .contact { padding: 80px 0; }
  .process__wire { display: none; }
  .deco--circuit { opacity: 0.08; }
  .vision { padding: 90px 24px; }
}
