/* ===== Quantumblis — brand stylesheet =====
   Implements brand/BRAND-GUIDELINES.md v1.0
   Palette : Charcoal #404040 · Electric Blue #0071C1 · Graphite #1C1C1C
             Slate #6B6B6B · Silver #B4B4B4 · Mist #F4F5F7 · White #FFFFFF
             Blue Deep #005791 (hover) · Blue Bright #2E9BF0 (accent on dark)
   Type    : Corbel (Light / Regular / Bold), Lato as the web substitute
   Motif   : "the slice" — rhombus, 50 deg acute angle, long diagonal at 40 deg
*/

:root {
  /* neutrals */
  --charcoal: #404040;
  --graphite: #1C1C1C;
  --slate:    #6B6B6B;
  --silver:   #B4B4B4;
  --mist:     #F4F5F7;
  --white:    #FFFFFF;
  --line:     #E3E5E8;

  /* blues */
  --blue:        #0071C1;
  --blue-deep:   #005791;
  --blue-bright: #2E9BF0;
  --blue-tint:   #E6F1FA;

  /* type: Corbel is Microsoft-supplied and cannot be self-hosted as a webfont,
     so Lato (SIL OFL) is the licensed substitute for non-Windows visitors.
     Corbel Light is registered as its own family — it is NOT weight 300 of Corbel. */
  --font:       Corbel, "Lato", "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  --font-light: "Corbel Light", "Lato", "Segoe UI Light", system-ui, sans-serif;

  --radius:    4px;
  --radius-lg: 8px;
  --shadow:    0 8px 24px rgba(28, 28, 28, .07);
  --shadow-lg: 0 18px 44px rgba(28, 28, 28, .13);
  --maxw:      1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Corbel defaults to old-style figures. This site's numerals are almost all product
     names and standards (S3, SOC 2, ISO 27001, 400 001), which old-style figures render
     as if they were subscripts — so lining figures are the correct default here.
     Tabular is applied only where columns need to align. */
  font-variant-numeric: lining-nums;
}
h1, h2, h3, h4 { font-family: var(--font); color: var(--charcoal); font-weight: 700; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Corbel defaults to old-style figures — correct in prose, wrong in UI chrome.
   Everything structural gets lining + tabular figures. */
h1, h2, h3, h4, .btn, .kicker, .eyebrow, .pill, .tech-strip span, .hero-stats,
.tier span, .contact-points, .footer-bottom, .cloud-badge, .triad-index, .num {
  font-variant-numeric: lining-nums tabular-nums;
}

/* ===== The slice — the brand's accent shape ===== */
.slice {
  display: inline-block; width: 15px; height: 12.6px; background: var(--blue);
  clip-path: polygon(0 100%, 30.4% 22.2%, 100% 0, 69.6% 77.8%);
  flex: 0 0 auto;
}
.slice-bright { background: var(--blue-bright); }

/* ===== Buttons ===== */
.btn {
  display: inline-block; background: var(--blue); color: #fff; font-weight: 700;
  padding: 13px 26px; border-radius: var(--radius); border: 2px solid var(--blue);
  cursor: pointer; font-size: 1rem; letter-spacing: .02em;
  transition: background .18s ease, border-color .18s ease, transform .15s ease;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .94rem; }
.btn-block { width: 100%; text-align: center; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
/* 38px tall keeps the primary logo ≈202px wide — above the 180px minimum */
.brand-logo { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: .95rem; color: var(--charcoal); transition: color .15s; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.btn, .nav-links a.btn:hover { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--charcoal); border-radius: 1px; transition: .25s; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--graphite);
  padding: 104px 0 92px; border-bottom: 8px solid var(--blue);
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(900px 520px at 70% 8%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 520px at 70% 8%, #000 0%, transparent 78%);
}
/* Q mark used as a watermark — a permitted use of the symbol on its own.
   Kept fully visible with clear space, never bleeding off the edge. */
.hero-mark {
  position: absolute; right: 56px; top: 50%; transform: translateY(-50%);
  height: 340px; opacity: .07; pointer-events: none;
}
.hero-inner { position: relative; max-width: 860px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase;
  letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--blue-bright);
  margin-bottom: 20px;
}
.hero h1 {
  color: #fff; font-family: var(--font-light); font-weight: 300;
  font-size: clamp(2.5rem, 6.4vw, 4.4rem); letter-spacing: -.01em; line-height: 1.08;
}
.hero h1 b { font-family: var(--font); font-weight: 700; color: var(--blue-bright); }
.hero-sub { margin: 24px 0 34px; font-size: clamp(1.05rem, 2vw, 1.22rem); color: #C9CCD0; max-width: 660px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 58px;
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 28px;
}
.hero-stats strong { display: block; font-size: 1.12rem; color: #fff; font-weight: 700; }
.hero-stats span { font-size: .88rem; color: var(--silver); }

/* ===== Sections ===== */
.section { padding: 92px 0; }
.section-alt { background: var(--mist); }
.section-dark { background: var(--graphite); color: #fff; }
.section-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase;
  letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--blue);
}
.kicker-light { color: var(--blue-bright); }
.section-head h2 { font-size: clamp(1.85rem, 4vw, 2.6rem); margin: 14px 0 16px; }
.section-dark h2, .section-dark h3 { color: #fff; }
.lead { font-size: 1.1rem; color: var(--slate); }
.lead-light { color: #C9CCD0; }

/* ===== Grids ===== */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ===== Triad: Insights / Innovation / Impact ===== */
.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }
.triad-item {
  border-top: 3px solid var(--blue); background: var(--white); padding: 28px 26px 30px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
}
.triad-index { font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--blue); }
.triad-item h3 { font-size: 1.45rem; margin: 8px 0 10px; }
.triad-item p { color: var(--slate); font-size: .99rem; }

/* ===== Feature blocks ===== */
.feature { padding: 6px 4px; }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--blue-tint); color: var(--blue); margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.14rem; margin-bottom: 8px; }
.feature p { color: var(--slate); font-size: .97rem; }

/* ===== Cards ===== */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--silver); }
.card-icon { color: var(--blue); margin-bottom: 14px; }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: .97rem; }
.card-dark { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); box-shadow: none; }
.card-dark:hover { border-color: rgba(255,255,255,.28); box-shadow: none; }
.card-dark p { color: #B9BDC1; }
.card-dark .card-icon { color: var(--blue-bright); }
.cloud-badge {
  display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .06em;
  color: var(--blue-bright); background: rgba(46,155,240,.14);
  border: 1px solid rgba(46,155,240,.32); padding: 4px 12px;
  border-radius: var(--radius); margin-bottom: 16px;
}

/* ===== Vision ===== */
.vision-card {
  position: relative; max-width: 900px; margin: 0 auto 64px; text-align: center;
  background: var(--graphite); color: #fff; border-radius: var(--radius-lg);
  padding: 52px 46px; overflow: hidden;
}
.vision-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--blue);
}
.vision-label { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 700; color: var(--blue-bright); }
.vision-text {
  font-family: var(--font-light); font-weight: 300;
  font-size: clamp(1.25rem, 2.7vw, 1.8rem); line-height: 1.38; margin-top: 16px;
}

/* ===== Medallion ===== */
.medallion { display: flex; align-items: stretch; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 46px; }
.tier {
  flex: 1 1 180px; border-radius: var(--radius); padding: 22px 18px; text-align: center;
  border: 1px solid var(--line); background: #fff;
}
.tier span { display: block; font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; color: var(--charcoal); }
.tier p { font-size: .88rem; color: var(--slate); }
.tier-1 { background: var(--mist); }
.tier-2 { background: var(--mist); }
.tier-3 { background: var(--blue-tint); border-color: #CFE3F4; }
.tier-4 { background: var(--blue); border-color: var(--blue); }
.tier-4 span { color: #fff; }
.tier-4 p { color: rgba(255,255,255,.82); }
.arrow { align-self: center; color: var(--silver); font-size: 1.5rem; font-weight: 700; }

/* ===== Tech strip ===== */
.tech-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tech-strip span {
  background: var(--white); border: 1px solid var(--line); color: var(--charcoal);
  padding: 9px 16px; border-radius: var(--radius); font-size: .92rem;
}

/* ===== Check list ===== */
.check-list { list-style: none; max-width: 780px; margin: 46px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.check-list li { position: relative; padding-left: 28px; color: #C9CCD0; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 13px; height: 10.9px;
  background: var(--blue-bright);
  clip-path: polygon(0 100%, 30.4% 22.2%, 100% 0, 69.6% 77.8%);
}

/* ===== Industry pills ===== */
.pill-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 20px; font-size: .96rem; transition: .18s;
}
.pill:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ===== CTA / contact ===== */
.section-cta { background: var(--charcoal); color: #fff; }
/* Blue Bright on Charcoal is 3.49:1 — fine for large text, not for 12px labels.
   On this section the small labels go white; only the decorative slice stays blue. */
.section-cta .kicker-light,
.section-cta .contact-points > li > span { color: #fff; }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cta-copy h2 { color: #fff; font-size: clamp(1.85rem, 4vw, 2.5rem); margin: 12px 0 16px; }
.contact-points { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.contact-points li { display: flex; gap: 16px; align-items: baseline; }
.contact-points > li > span {
  text-transform: uppercase; font-size: .72rem; letter-spacing: .12em;
  color: var(--blue-bright); font-weight: 700; min-width: 54px;
}
.contact-points a { color: #ECEDEE; border-bottom: 1px solid rgba(255,255,255,.28); }
.contact-points a:hover { border-color: var(--blue-bright); color: #fff; }
.contact-points address { font-style: normal; color: #ECEDEE; line-height: 1.55; }

.contact-form { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--charcoal); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
  font: inherit; color: var(--charcoal); background: var(--mist);
  transition: border-color .15s, background .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #9A9EA2; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.form-note { font-size: .82rem; color: var(--slate); margin-top: 12px; }

/* ===== Footer ===== */
.site-footer { background: var(--graphite); color: #B9BDC1; padding-top: 58px; }
.footer-inner { display: flex; justify-content: space-between; gap: 44px; flex-wrap: wrap; padding-bottom: 42px; }
.footer-brand { max-width: 340px; }
.footer-logo { height: 42px; margin-bottom: 16px; }
.footer-brand p { color: var(--silver); font-size: .95rem; }
.footer-address { font-style: normal; color: #8E9296; font-size: .9rem; line-height: 1.6; margin-top: 16px; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { font-size: .95rem; transition: color .15s; }
.footer-nav a:hover { color: var(--blue-bright); }
.footer-col h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: #8E9296; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover, .pill:hover { transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .triad { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero-mark { display: none; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 10px 24px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .2s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a.btn { margin-top: 10px; text-align: center; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .medallion .arrow { transform: rotate(90deg); }
  .footer-bottom .container { flex-direction: column; }
  /* keep the logo above its 180px minimum on small screens */
  .brand-logo { height: 34px; }
}
