/* =============================================================================
   TheKloudWiz — brand + product portfolio platform
   -----------------------------------------------------------------------------
   Aesthetic: refined enterprise minimalism with architectural confidence.
   Bebas Neue carries a bold condensed typographic scale (the memorable element);
   Inter does the trustworthy body work. A faint blueprint grid + thin accent
   lines nod to "Architecting Systems" without flash. Navy depth on light
   surfaces — the Stripe/Linear register. No build step; this file is shared by
   every page.
   ========================================================================== */

:root {
  /* Brand palette */
  --navy:      #163A5F;   /* primary */
  --navy-2:    #1E4A78;   /* secondary */
  --navy-deep: #0F2A45;   /* darker — footer, deep panels */
  --accent:    #3B74B0;   /* derived mid-blue — links, blueprint lines, focus */
  --surface:   #EAF1F8;   /* light surface — alternating sections */
  --bg:        #F8FAFC;   /* page background */
  --card:      #FFFFFF;
  --ink:       #1F2937;   /* primary text */
  --muted:     #6B7280;   /* muted text */
  --line:      #E2E8F0;   /* hairline borders */
  --line-2:    #D3DEEC;   /* borders on tinted surfaces */
  --good:      #1F9D6B;   /* status: active */
  --warn:      #C7821A;   /* status: pilot */

  /* Type */
  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --body:    'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  /* Rhythm + form */
  --maxw:    1180px;
  --gutter:  clamp(20px, 5vw, 44px);
  --section: clamp(64px, 9vw, 120px);
  --radius:  14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15,42,69,.06), 0 1px 3px rgba(15,42,69,.04);
  --shadow:    0 4px 16px rgba(15,42,69,.08), 0 2px 6px rgba(15,42,69,.05);
  --shadow-lg: 0 24px 60px -20px rgba(15,42,69,.28), 0 8px 24px rgba(15,42,69,.10);
  --ring: 0 0 0 4px rgba(59,116,176,.20);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

/* ── Display type ─────────────────────────────────────────────────────── */

h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 400; }
.display { font-family: var(--display); line-height: 0.92; letter-spacing: 0.01em; text-transform: uppercase; }

/* Bebas is condensed + uppercase by nature — give it air and weight via size. */
h1 { font-size: clamp(3rem, 8.5vw, 6.4rem); line-height: 0.9; letter-spacing: .015em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 0.95; letter-spacing: .02em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1; letter-spacing: .02em; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); line-height: 1.6; }

.kicker {
  font-family: var(--body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px;
}
.kicker::before { content: ''; width: 22px; height: 1.5px; background: var(--accent); }

/* ── Layout ──────────────────────────────────────────────────────────── */

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
/* Surface sections carry a faint blueprint grid + soft accent glow — the
   techy texture that ties the body back to the hero. */
.section--surface {
  background:
    linear-gradient(rgba(22,58,95,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,58,95,.045) 1px, transparent 1px),
    radial-gradient(60rem 32rem at 85% -12%, rgba(59,116,176,.10), transparent 62%),
    var(--surface);
  background-size: 34px 34px, 34px 34px, 100% 100%, 100% 100%;
  border-block: 1px solid var(--line-2);
}
.section--navy {
  background:
    radial-gradient(70rem 40rem at 80% -20%, rgba(59,116,176,.30), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}
.section-head { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: 18px; }
.section--navy .kicker { color: #8FBCEA; }
.section--navy .kicker::before { background: #8FBCEA; }
.section--navy .lede { color: rgba(255,255,255,.78); }

/* Blueprint grid texture — the architectural signature, kept faint. */
.blueprint {
  background-image:
    linear-gradient(rgba(22,58,95,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,58,95,.045) 1px, transparent 1px);
  background-size: 34px 34px;
}
.section--navy.blueprint {
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    radial-gradient(70rem 40rem at 80% -20%, rgba(59,116,176,.30), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  background-size: 34px 34px, 34px 34px, 100% 100%, 100% 100%;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--body); font-weight: 600; font-size: 0.95rem;
  padding: 13px 24px; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-2); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--navy); background: rgba(22,58,95,.03); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--surface); }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.30); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.55); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

/* ── Navigation ──────────────────────────────────────────────────────── */

.nav { position: sticky; top: 0; z-index: 60; background: rgba(248,250,252,.82); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.06rem; letter-spacing: -0.02em; color: var(--navy); }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none; background: linear-gradient(135deg, var(--navy), var(--accent));
  display: grid; place-items: center; color: #fff; font-family: var(--display); font-size: 1.2rem; letter-spacing: .04em; padding-top: 2px;
}
.brand b { font-weight: 800; }
.brand .kloud { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--ink); padding: 8px 13px; border-radius: 8px; transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--surface); color: var(--navy); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--navy); cursor: pointer; padding: 6px; }

/* "What I Do" dropdown */
.has-sub { position: relative; }
.nav-sub-toggle {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--body); font-size: 0.92rem; font-weight: 500;
  color: var(--ink); background: none; border: 0; cursor: pointer; padding: 8px 13px; border-radius: 8px; transition: background .15s, color .15s;
}
.nav-sub-toggle:hover { background: var(--surface); color: var(--navy); }
.nav-sub-toggle .chev { width: 15px; height: 15px; transition: transform .18s ease; }
.nav-sub {
  list-style: none; margin: 0; padding: 6px; position: absolute; top: calc(100% + 8px); left: 0; min-width: 184px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: none; z-index: 70;
}
.nav-sub a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.nav-sub a:hover, .nav-sub a.active { background: var(--surface); color: var(--navy); }
@media (min-width: 861px) {
  .has-sub:hover .nav-sub, .has-sub:focus-within .nav-sub, .has-sub.open .nav-sub { display: block; }
  .has-sub:hover .chev, .has-sub.open .chev { transform: rotate(180deg); }
  /* Invisible bridge over the 8px gap so moving the cursor from the toggle
     to a submenu item never drops :hover and closes the menu. */
  .has-sub::after { content: ''; position: absolute; left: 0; top: 100%; width: 100%; height: 10px; }
}

/* Compact cert badges in the hero */
.hero-certs { margin-top: 26px; }
.hero-certs .lbl { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 13px; }
.hero-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.hero-badges a { display: block; line-height: 0; transition: transform .15s ease; }
.hero-badges a:hover { transform: translateY(-3px); }
.hero-badges img { width: 48px; height: 48px; object-fit: contain; display: block; }

/* ── Hero ────────────────────────────────────────────────────────────── */

/* Full first-screen hero; subsequent sections reveal on scroll. */
.hero {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: calc(100vh - 70px);
  min-height: calc(100svh - 70px);
  padding-block: clamp(28px, 4vw, 56px);
}
.hero > .container { width: 100%; position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.08fr 0.92fr; } }
/* Sized so each pillar line fits on one line at the fixed desktop column width
   (longest line "Architecting Systems." ~ the 536px column), scaling down on
   narrower laptops via the vw term. */
.hero h1 { color: var(--navy); font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--accent); }
.hero .lede { margin-top: 20px; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* Techy dark hero — "architect's console": animated grid, azure glow, HUD photo. */
.hero--tech { background: linear-gradient(170deg, #0E2C49 0%, var(--navy-deep) 55%, #0a1f34 100%); color: #fff; }
.hero--tech h1 { color: #fff; }
.hero--tech h1 .accent {
  background: linear-gradient(100deg, #5E97CC, #8FBCEA 55%, #BFE0FF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero--tech .lede { color: rgba(226,237,250,.78); }

/* Monospace kicker — reads like a shell/handle tag. */
.kicker--mono {
  font-family: var(--mono); font-weight: 500; letter-spacing: 0.04em; text-transform: none;
  color: #9CC6F2; font-size: 0.82rem; padding: 5px 12px 5px 10px; border-radius: 999px;
  background: rgba(143,188,234,.08); border: 1px solid rgba(143,188,234,.22);
}
.kicker--mono::before { content: '>'; width: auto; height: auto; background: none; color: #5E97CC; font-weight: 700; }

/* Hero buttons on dark */
.hero--tech .btn-primary {
  background: linear-gradient(135deg, #3B74B0, #5E97CC); color: #fff; border-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(59,116,176,.7), inset 0 0 0 1px rgba(255,255,255,.12);
}
.hero--tech .btn-primary:hover { background: linear-gradient(135deg, #4480bf, #6fa6d8); box-shadow: 0 14px 36px -10px rgba(59,116,176,.85); }
.hero--tech .btn-outline { color: #fff; border-color: rgba(255,255,255,.28); }
.hero--tech .btn-outline:hover { border-color: rgba(143,188,234,.8); background: rgba(143,188,234,.08); }

/* Hero cert strip on dark */
.hero-certs { margin-top: 30px; }
.hero--tech .hero-certs .lbl { color: rgba(226,237,250,.55); }

/* ── Hero background FX ──────────────────────────────────────────────── */
.hero-fx { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.hero-grid-fx {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(143,188,234,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,188,234,.10) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(115% 90% at 70% 0%, #000 35%, transparent 78%);
          mask-image: radial-gradient(115% 90% at 70% 0%, #000 35%, transparent 78%);
  animation: gridDrift 26s linear infinite;
}
@keyframes gridDrift { to { background-position: 46px 46px; } }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero-glow-1 { width: 46rem; height: 30rem; top: -16rem; right: -8rem; background: radial-gradient(circle, rgba(59,116,176,.65), transparent 65%); }
.hero-glow-2 { width: 38rem; height: 30rem; bottom: -18rem; left: -10rem; background: radial-gradient(circle, rgba(30,74,120,.6), transparent 65%); }
.hero-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.020) 0 1px, transparent 1px 3px);
  opacity: .5;
}
@media (prefers-reduced-motion: reduce) { .hero-grid-fx { animation: none; } }

.hero-visual { position: relative; min-height: 340px; display: grid; align-items: center; }

/* ── Photos (headshot) — shared frame + silhouette placeholder ──────────── */

.photo-frame {
  position: relative; margin: 0; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, #eef3f9, #d9e4f0);
}
.photo-frame .photo { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Placeholder shown until a real file loads: silhouette + a dev hint. The
   .no-photo class is added by main.js when the <img> 404s. */
.ph-hint { display: none; }
.photo-frame.no-photo .photo { display: none; }
.photo-frame.no-photo::after {
  content: ''; position: absolute; inset: 0; opacity: .4;
  background-repeat: no-repeat; background-position: center 64%; background-size: 42%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23163A5F'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7z'/%3E%3C/svg%3E");
}
.photo-frame.no-photo .ph-hint {
  display: block; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 10px 14px; text-align: center; font-size: 0.74rem; color: var(--muted);
  background: rgba(255,255,255,.72); backdrop-filter: blur(4px);
}
.ph-hint code { font-size: 0.72rem; color: var(--navy); }

/* Hero headshot as a techy "console" panel: window bar, HUD brackets, name badge. */
.hero-photo {
  width: 100%; aspect-ratio: 4 / 5; max-width: 430px; margin-inline: auto;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, #15324f, #0e2746);
  border: 1px solid rgba(143,188,234,.30);
  box-shadow:
    0 0 0 1px rgba(143,188,234,.10),
    0 40px 90px -30px rgba(0,0,0,.75),
    0 0 70px -24px rgba(59,116,176,.55);
}
.hero-photo-bar {
  flex: none; display: flex; align-items: center; gap: 10px; position: relative; z-index: 2;
  padding: 11px 14px; border-bottom: 1px solid rgba(143,188,234,.16); background: rgba(8,24,40,.55);
}
.hero-photo-bar .dots { display: inline-flex; gap: 6px; }
.hero-photo-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); }
.hero-photo-bar .dots i:nth-child(1) { background: #E0696B; }
.hero-photo-bar .dots i:nth-child(2) { background: #E0B24A; }
.hero-photo-bar .dots i:nth-child(3) { background: #5BBE8B; }
.hero-photo-bar .tag { font-family: var(--mono); font-size: 0.76rem; letter-spacing: .02em; color: rgba(156,198,242,.85); }
.hero-photo-media { position: relative; flex: 1; overflow: hidden; }
.hero-photo-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(8,24,40,.6) 100%); }
.hero-photo .photo { width: 100%; height: 100%; object-fit: cover; }
/* HUD corner brackets framing the panel. */
.hero-photo-hud {
  position: absolute; inset: 10px; z-index: 2; pointer-events: none; opacity: .85;
  background:
    linear-gradient(#8FBCEA,#8FBCEA) left top/16px 2px no-repeat,
    linear-gradient(#8FBCEA,#8FBCEA) left top/2px 16px no-repeat,
    linear-gradient(#8FBCEA,#8FBCEA) right top/16px 2px no-repeat,
    linear-gradient(#8FBCEA,#8FBCEA) right top/2px 16px no-repeat,
    linear-gradient(#8FBCEA,#8FBCEA) left bottom/16px 2px no-repeat,
    linear-gradient(#8FBCEA,#8FBCEA) left bottom/2px 16px no-repeat,
    linear-gradient(#8FBCEA,#8FBCEA) right bottom/16px 2px no-repeat,
    linear-gradient(#8FBCEA,#8FBCEA) right bottom/2px 16px no-repeat;
}
.hero-photo-badge {
  position: absolute; left: 14px; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 11px;
  padding: 9px 15px 9px 12px; border-radius: 14px;
  background: rgba(10,28,46,.72); backdrop-filter: blur(10px);
  border: 1px solid rgba(143,188,234,.30); box-shadow: 0 10px 30px -12px rgba(0,0,0,.7);
}
.hero-photo-badge .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #3ED88E; animation: pulse 2.4s ease-in-out infinite; }
.hero-photo-badge .who { display: flex; flex-direction: column; line-height: 1.18; }
.hero-photo-badge .who b { font-size: 0.94rem; font-weight: 700; color: #fff; letter-spacing: .01em; }
.hero-photo-badge .who small { font-size: 0.72rem; font-family: var(--mono); color: rgba(156,198,242,.9); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(62,216,142,.22); } 50% { box-shadow: 0 0 0 8px rgba(62,216,142,0); } }
.photo-frame.no-photo .hero-photo-badge,
.photo-frame.no-photo .hero-photo-bar,
.photo-frame.no-photo .hero-photo-hud { display: none; }

.about-photo { width: 100%; aspect-ratio: 4 / 5; max-width: 360px; }

/* ── Metric cards ────────────────────────────────────────────────────── */

.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 760px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.metric::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--navy), var(--accent)); }
.metric .num { font-family: var(--display); font-size: clamp(2.6rem, 4.5vw, 3.4rem); line-height: 0.9; color: var(--navy); letter-spacing: .02em; }
.metric .lbl { margin-top: 8px; font-size: 0.9rem; color: var(--muted); }
.section--navy .metric { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.section--navy .metric .num { color: #fff; }
.section--navy .metric .lbl { color: rgba(255,255,255,.72); }

/* ── Pillars ─────────────────────────────────────────────────────────── */

.pillars { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; position: relative; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar .ic { width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--navy), var(--accent)); margin-bottom: 22px; }
.pillar .ic svg { width: 27px; height: 27px; }
.pillar h3 { color: var(--navy); margin-bottom: 12px; }
.pillar p { color: var(--muted); font-size: 0.97rem; }
.pillar .num-tag { position: absolute; top: 26px; right: 28px; font-family: var(--mono); font-size: 0.82rem; font-weight: 600; color: var(--accent); opacity: .55; letter-spacing: .08em; }
.pillar:hover .ic { box-shadow: 0 10px 26px -10px rgba(59,116,176,.6); }
.pillar:hover .num-tag { opacity: .9; }

/* ── Product cards ───────────────────────────────────────────────────── */

.products { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 820px) { .products { grid-template-columns: repeat(2, 1fr); } }
.product-card {
  --pa: var(--navy); position: relative; display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--pa) 40%, var(--line)); }
.product-card .head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.product-logo {
  width: 56px; height: 56px; border-radius: 14px; flex: none; display: grid; place-items: center; color: #fff;
  font-family: var(--display); font-size: 1.9rem; letter-spacing: .03em; padding-top: 3px;
  background: linear-gradient(135deg, var(--pa), color-mix(in srgb, var(--pa) 55%, #fff));
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--pa) 60%, transparent);
}
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 0.74rem; font-weight: 600; letter-spacing: .03em; padding: 6px 12px; border-radius: 999px; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.status.active { color: var(--good); background: rgba(31,157,107,.10); }
.status.active::before { background: var(--good); box-shadow: 0 0 0 3px rgba(31,157,107,.16); }
.status.pilot { color: var(--warn); background: rgba(199,130,26,.12); }
.status.pilot::before { background: var(--warn); box-shadow: 0 0 0 3px rgba(199,130,26,.16); }
.status.soon { color: var(--muted); background: rgba(107,114,128,.10); }
.status.soon::before { background: var(--muted); }
.product-card h3 { color: var(--navy); margin-top: 24px; }
.product-card .role { color: var(--pa); font-weight: 600; font-size: 0.92rem; margin-top: 6px; }
.product-card .desc { color: var(--muted); margin-top: 14px; font-size: 0.97rem; flex: 1; }
.product-card .features { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.product-card .features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--ink); }
.product-card .features svg { width: 17px; height: 17px; color: var(--pa); flex: none; margin-top: 2px; }
.product-card .explore {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; align-self: flex-start; font-weight: 600;
  color: #fff; background: var(--pa); padding: 11px 20px; border-radius: 10px; font-size: 0.92rem;
  transition: transform .12s, box-shadow .15s, filter .15s;
}
.product-card .explore:hover { filter: brightness(1.08); box-shadow: var(--shadow); }
.product-card .explore .arrow { transition: transform .15s; }
.product-card .explore:hover .arrow { transform: translateX(3px); }
.product-card.upcoming { border-style: dashed; background: transparent; box-shadow: none; align-items: flex-start; }
.product-card.upcoming .product-logo { background: var(--surface); color: var(--accent); box-shadow: none; }

/* ── Topic / service grid ────────────────────────────────────────────── */

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .16s ease, box-shadow .16s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile .ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color: var(--navy); background: var(--surface); margin-bottom: 16px; }
.tile .ic svg { width: 22px; height: 22px; }
.tile h4 { font-family: var(--display); font-size: 1.3rem; color: var(--navy); letter-spacing: .02em; margin-bottom: 8px; }
.tile p { font-size: 0.92rem; color: var(--muted); }

/* HUD corner bracket — a quiet techy signature shared across cards;
   brightens on hover for the interactive ones. */
.metric::after, .tile::after, .product-card::after {
  content: ''; position: absolute; bottom: 12px; right: 12px; width: 13px; height: 13px;
  border-bottom: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent);
  border-bottom-right-radius: 4px; opacity: .22; pointer-events: none; transition: opacity .2s ease;
}
.product-card::after { border-color: var(--pa); }
.tile:hover::after, .product-card:hover::after { opacity: .7; }
.product-card.upcoming::after { opacity: .14; }

/* checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; align-items: flex-start; gap: 13px; }
.checklist .ico { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--surface); color: var(--navy); }
.checklist .ico svg { width: 15px; height: 15px; }
.checklist b { font-weight: 600; color: var(--ink); display: block; }
.checklist span { color: var(--muted); font-size: 0.92rem; }
.section--navy .checklist .ico { background: rgba(255,255,255,.10); color: #fff; }
.section--navy .checklist b { color: #fff; }
.section--navy .checklist span { color: rgba(255,255,255,.72); }

/* ── Split / steps ───────────────────────────────────────────────────── */

.split { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } .split.narrow-left { grid-template-columns: 0.85fr 1.15fr; } }

.steps { display: grid; grid-template-columns: 1fr; gap: 18px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--display); font-size: 1.8rem; color: var(--accent); letter-spacing: .04em; display: block; margin-bottom: 12px; }
.step h4 { font-family: var(--display); font-size: 1.35rem; color: var(--navy); letter-spacing: .02em; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--muted); }

/* ── Page header (interior pages) ────────────────────────────────────── */

.page-head { padding-block: clamp(60px, 8vw, 96px) clamp(40px, 5vw, 60px); position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); color: var(--navy); }
.page-head .lede { margin-top: 20px; max-width: 60ch; }

/* ── Certifications row ──────────────────────────────────────────────── */

.certs { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .certs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .certs { grid-template-columns: repeat(4, 1fr); } }
.cert {
  display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.cert:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.cert .badge { width: 60px; height: 60px; flex: none; display: grid; place-items: center; }
.cert .badge img { width: 60px; height: 60px; object-fit: contain; display: block; }
.cert .meta { min-width: 0; }
.cert b { font-size: 0.95rem; color: var(--navy); display: flex; align-items: center; gap: 6px; line-height: 1.25; font-weight: 700; }
.cert b .ext { width: 13px; height: 13px; color: var(--muted); transition: color .15s, transform .15s; }
.cert:hover b .ext { color: var(--accent); transform: translate(1px, -1px); }
.cert span { font-size: 0.82rem; color: var(--muted); }
.section--navy .cert { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.section--navy .cert b { color: #fff; } .section--navy .cert span { color: rgba(255,255,255,.7); }

/* ── Hero architecture schematic (replaces repeated pillar cards) ──────── */
.arch {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px 24px 20px;
  overflow: hidden;
}
.arch::before { /* faint blueprint inside the panel */
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(22,58,95,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(22,58,95,.04) 1px, transparent 1px);
  background-size: 22px 22px; pointer-events: none;
}
.arch-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; margin-bottom: 14px; }
.arch-head .label { font-family: var(--body); font-size: 0.72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.arch-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(31,157,107,.16); }
.arch svg { position: relative; display: block; width: 100%; height: auto; }
@media (max-width: 940px) { .arch { max-width: 460px; } }

/* ── Contact ─────────────────────────────────────────────────────────── */

.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 56px); }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; } }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field input, .field textarea, .field select { width: 100%; background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 10px; padding: 13px 15px; color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 12px; font-size: 0.9rem; min-height: 1.3em; }
.form-note.ok { color: var(--good); } .form-note.err { color: #DC2626; }

.contact-cards { display: grid; gap: 14px; align-content: start; }
.contact-link { display: flex; align-items: center; gap: 15px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .12s; }
.contact-link:hover { border-color: var(--accent); transform: translateX(3px); }
.contact-link .ic { width: 42px; height: 42px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--surface); color: var(--navy); }
.contact-link .ic svg { width: 21px; height: 21px; }
.contact-link b { font-size: 0.95rem; color: var(--ink); display: block; }
.contact-link span { font-size: 0.84rem; color: var(--muted); }

/* ── CTA band ────────────────────────────────────────────────────────── */

.cta-band { text-align: center; }
.cta-band h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.cta-band .lede { margin: 18px auto 0; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* ── Footer ──────────────────────────────────────────────────────────── */

.footer { background: var(--navy-deep); color: rgba(255,255,255,.72); }
.footer .container { padding-block: clamp(48px, 6vw, 72px) 28px; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.footer .brand { color: #fff; }
.footer .brand .kloud { color: #8FBCEA; }
.footer .blurb { margin-top: 16px; font-size: 0.9rem; max-width: 34ch; color: rgba(255,255,255,.62); }
.footer h5 { font-family: var(--body); font-size: 0.78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a { font-size: 0.92rem; color: rgba(255,255,255,.74); transition: color .15s; }
.footer ul a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 4px; }
.footer-social a { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background .15s; }
.footer-social a:hover { background: var(--accent); }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.10); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.84rem; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.62); }
.footer-bottom a:hover { color: #fff; }

/* ── Reveal-on-scroll + load ─────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s cubic-bezier(.2,.7,.2,1), transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(16px); }
.stagger.in > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) forwards; }
.stagger.in > *:nth-child(2) { animation-delay: .08s; }
.stagger.in > *:nth-child(3) { animation-delay: .16s; }
.stagger.in > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none; }
  .hero-photo-badge .dot { animation: none; }
}

/* ── Mobile nav ──────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px;
    transform: translateY(-130%); transition: transform .24s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 12px 14px; }
  .nav-sub-toggle { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 1rem; }
  .nav-sub { position: static; display: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 4px 12px; min-width: 0; }
  .has-sub.open .nav-sub { display: block; }
  .has-sub.open .chev { transform: rotate(180deg); }
  .hero-photo { max-width: 320px; }
}
