:root {
  --ink: #0b1f3a;
  --muted: #5a6b82;
  --line: #d9e2ec;
  --panel: #f7f9fc;
  --accent: #2f6fed;
  --accent-2: #6f5de7;
  --deep: #0a2f4d;
  --quote: #163f6b;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217,226,236,.75);
}
.nav {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.brand {
  font-weight: 800;
  letter-spacing: .06em;
  font-size: .93rem;
}
.nav-links { display: flex; gap: 28px; color: var(--muted); font-size: .94rem; }
.nav-links a:hover { color: var(--ink); }

.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.hero {
  padding: 84px 0 54px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 52px;
  align-items: center;
}
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .76rem; }
h1 { font-size: clamp(2.7rem, 6vw, 5.2rem); line-height: .98; margin: 16px 0 20px; letter-spacing: -.055em; }
.hero p { max-width: 680px; font-size: 1.17rem; color: var(--muted); margin: 0 0 28px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 999px; padding: 11px 17px; font-weight: 700; font-size: .92rem; }
.btn.primary { background: var(--ink); color: #fff; }

.lacework-card {
  min-height: 410px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at 50% 45%, #f9fbff 0, #f5f7fc 52%, #edf2f8 100%);
  box-shadow: 0 18px 60px rgba(21, 46, 76, .08);
}
.lacework-card .label { position: absolute; left: 22px; bottom: 20px; z-index: 2; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 16px; padding: 10px 13px; font-size: .88rem; font-weight: 700; }
.pointcloud { width: 100%; height: 100%; min-height: 410px; }

.section { padding: 66px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: clamp(1.9rem, 3vw, 2.8rem); letter-spacing: -.035em; }
.section-head p { margin: 0; max-width: 620px; color: var(--muted); }

.carousel-shell { position: relative; }
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 12px;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.carousel-shell { cursor: default; }
.carousel--infinite {
  scroll-snap-type: none;
  scrollbar-width: none;
}
.carousel--infinite::-webkit-scrollbar { display: none; }
.card {
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  min-height: 245px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(21,46,76,.08); border-color: #c5d2df; }
.card h3 { margin: 10px 0 10px; font-size: 1.28rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .more { display: inline-block; margin-top: 20px; font-weight: 750; font-size: .9rem; }

.quote {
  margin: 24px 0 10px;
  background: var(--quote);
  color: white;
  border-radius: 24px;
  padding: clamp(28px, 5vw, 58px);
  min-height: 220px;
  display: flex;
  align-items: center;
}
.quote p { margin: 0; font-size: clamp(1.55rem, 3.2vw, 2.8rem); line-height: 1.2; letter-spacing: -.025em; max-width: 980px; }

.architecture-box {
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg,#fff 0,#fbfcfe 100%);
}
.architecture-copy { padding: 32px 34px 10px; }
.architecture-copy h2 { margin: 0 0 10px; font-size: clamp(1.9rem,3vw,2.8rem); }
.architecture-copy p { max-width: 900px; color: var(--muted); font-size: 1.02rem; }
.position { color: var(--ink) !important; font-weight: 650; }
.arch-diagram { padding: 24px 24px 34px; }

.diagram-grid {
  display: grid;
  grid-template-columns: 1fr 1.55fr 1.2fr 1.15fr;
  gap: 14px;
  align-items: stretch;
}
.node { border: 1px solid #cdd8e5; border-radius: 18px; padding: 16px; background: #fff; min-height: 150px; }
.node h4 { margin: 0 0 10px; font-size: .98rem; }
.node ul { padding-left: 18px; margin: 0; color: var(--muted); font-size: .86rem; }
.node.control { border-color: #9ac4f4; background: #f6fbff; }
.node.external { border-color: #b8c9df; background: #fafcff; }
.node.assurance { border-color: #cdbdf3; background: #fbf9ff; }
.diagram-note { margin-top: 14px; padding: 13px 15px; border-left: 3px solid #e7a442; background: #fffaf2; color: #6f5a34; border-radius: 10px; font-size: .9rem; }

.page-hero { padding: 76px 0 28px; }
.page-hero h1 { font-size: clamp(2.4rem,5vw,4.5rem); }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.1rem; }
.content-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: start; }
.prose-card { border: 1px solid var(--line); border-radius: 22px; padding: 26px; background: #fff; }
.prose-card h2, .prose-card h3 { margin-top: 0; }
.prose-card p, .prose-card li { color: var(--muted); }
.prototype { border: 1px dashed #b7c3d1; border-radius: 22px; min-height: 420px; display: grid; place-items: center; background: #f8fafc; color: var(--muted); padding: 20px; text-align: center; }

.footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 34px 0 46px; color: var(--muted); font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero, .content-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  .lacework-card { min-height: 320px; }
  .pointcloud { min-height: 320px; }
  .diagram-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .wrap, .nav { width: min(calc(100% - 24px), var(--max)); }
  .diagram-grid { grid-template-columns: 1fr; }
  .architecture-copy { padding: 24px 22px 8px; }
  .arch-diagram { padding: 16px 16px 24px; }
}

.lacework-preview { overflow: hidden; }
.lacework-preview > div { width: 100%; }
.lacework-preview .pointcloud { min-height: 300px; height: 300px; }
.lacework-preview p { margin: 10px 0 0; }

/* Contact */
.contact-hero { padding-bottom: 18px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.person-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  background: #fff;
}
.person-card h2 {
  margin: 8px 0 2px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -.035em;
}
.person-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-weight: 700;
  font-size: .72rem;
}
.person-role { margin: 0 0 20px !important; color: var(--ink) !important; font-weight: 700; }
.person-card p { color: var(--muted); }
.contact-details-section { padding-top: 18px; }
.contact-details {
  background: var(--deep);
  color: #fff;
  border-radius: 26px;
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 42px;
  align-items: center;
}
.contact-details .eyebrow { color: #a9c8ff; }
.contact-details h2 { margin: 8px 0 10px; font-size: clamp(1.9rem, 3vw, 2.8rem); }
.contact-details p { margin: 0; color: #d3deea; max-width: 590px; }
.contact-actions { display: grid; gap: 12px; }
.contact-action {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255,255,255,.06);
}
.contact-action span { display: block; color: #b9c8d8; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.contact-action strong { font-size: 1.02rem; font-weight: 700; }
.contact-action:hover { background: rgba(255,255,255,.10); }

@media (max-width: 760px) {
  .contact-grid, .contact-details { grid-template-columns: 1fr; }
}

/* Homepage reference architecture — editorial split layout */
.reference-section { padding-top: 78px; padding-bottom: 78px; }
.reference-split {
  display: grid;
  width: min(calc(100% - 40px), 1760px);
  grid-template-columns: minmax(340px, 440px) minmax(760px, 1fr);
  gap: clamp(30px, 3vw, 52px);
  align-items: center;
}
.reference-split .architecture-copy { padding: 0; }
.reference-split .architecture-copy h2 {
  margin: 10px 0 18px;
  font-size: clamp(2rem,3.7vw,3.35rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.reference-split .architecture-copy p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.02rem;
}
.reference-split .architecture-copy .position {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 1.03rem;
  line-height: 1.55;
}
.reference-visual {
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(8px,1.2vw,14px);
  box-shadow: 0 18px 55px rgba(21,46,76,.07);
}
.reference-visual img {
  width: 100%;
  height: auto;
  max-height: min(84vh, 940px);
  object-fit: contain;
}

@media (max-width: 1180px) {
  .reference-split {
    grid-template-columns: minmax(300px, .72fr) minmax(600px, 1.28fr);
  }
}

@media (max-width: 980px) {
  .reference-split {
    width: min(calc(100% - 40px), var(--max));
    grid-template-columns: 1fr;
  }
  .reference-visual { max-width: 900px; }
  .reference-visual img { max-height: none; }
}


/* Shared contact and company footer */
.site-contact-strip { margin-top: 76px; border-top: 1px solid var(--line); background: #f7f9fc; }
.site-contact-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; padding-top: 42px; padding-bottom: 42px; }
.site-contact-inner h2 { margin: 8px 0 8px; font-size: clamp(1.65rem, 3vw, 2.45rem); letter-spacing: -.035em; }
.site-contact-inner p { margin: 0; color: var(--muted); max-width: 650px; }
.site-contact-actions { display: grid; gap: 10px; justify-items: end; }
.site-contact-actions a { min-width: 260px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-weight: 700; text-align: center; }
.site-contact-actions a:hover { border-color: #a8bdd7; box-shadow: 0 8px 24px rgba(21,46,76,.06); }
.footer { margin-top: 0; border-top: 1px solid var(--line); padding: 38px 0 24px; background: #fff; color: var(--muted); font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .55fr 1fr; gap: 42px; align-items: start; }
.footer-grid strong { color: var(--ink); display: block; margin-bottom: 10px; font-size: .9rem; letter-spacing: .015em; }
.footer-brand p { margin: 0; max-width: 430px; line-height: 1.55; }
.footer-links { display: grid; align-content: start; gap: 7px; }
.footer-links strong { margin-bottom: 3px; }
.footer-links a { width: max-content; }
.footer-company { display: grid; gap: 5px; line-height: 1.5; }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .78rem; color: #7c8796; }
@media (max-width: 760px) {
  .site-contact-inner, .footer-grid { grid-template-columns: 1fr; }
  .site-contact-actions { justify-items: stretch; }
  .site-contact-actions a { min-width: 0; }
}

.legal-links { display: inline-flex; gap: 18px; flex-wrap: wrap; }
.legal-links a { color: inherit; }
.legal-links a:hover { color: var(--ink); }

/* Privacy / cookie consent */
.cookie-banner {
  position: fixed;
  z-index: 1000;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 18px 55px rgba(15, 23, 42, .18);
}
.cookie-banner-copy { max-width: 680px; }
.cookie-banner-copy strong { display: block; margin-bottom: .3rem; }
.cookie-banner-copy p,
.cookie-dialog p { margin: 0; color: #475569; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.cookie-dialog-backdrop {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, .52);
}
.cookie-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  padding: 2rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .25);
}
.cookie-dialog h2 { margin-top: .35rem; }
.cookie-close {
  position: absolute;
  top: .75rem;
  right: .9rem;
  border: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 1.7rem;
  cursor: pointer;
}
.cookie-category {
  margin-top: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}
.cookie-category p { margin-top: .25rem; font-size: .93rem; }
.cookie-status { white-space: nowrap; color: #475569; font-size: .9rem; }
.cookie-category input { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
.cookie-dialog .cookie-actions { margin-top: 1.5rem; justify-content: flex-end; }
.cookie-settings-link { cursor: pointer; }
@media (max-width: 760px) {
  .cookie-banner { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1 1 auto; text-align: center; }
  .cookie-category { align-items: flex-start; }
}
