/* ============================================================
   Muhammad Ramzan Khan — Data Engineer portfolio
   Identity derived from the MR logo mark: forest green + slate,
   on a dark engineering theme. Cyan = moving data, amber = compute,
   green = trusted output.
   ============================================================ */
:root {
  --brand: #3f5349;          /* forest green from the MR logo */
  --brand-2: #5b7a6c;
  --slate: #9fa8ab;          /* grey from the MR logo */
  --bg: #0d1412;             /* near-black with green tint */
  --bg-2: #101a16;           /* deep section variant */
  --panel: #14201b;
  --panel-2: #182722;
  --border: rgba(255, 255, 255, 0.09);
  --text: #e9efeb;
  --muted: #93a39b;
  --cy: #35d3e6;             /* data accent */
  --am: #f2b350;             /* compute / warm accent */
  --gr: #46d68b;             /* success / output */
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cy); text-decoration: none; }
.container { width: min(1150px, 92%); margin: 0 auto; }

::selection { background: rgba(53, 211, 230, .3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 9px; font-weight: 700; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(135deg, #2ea88a, #1f8a70);
  color: #fff;
  box-shadow: 0 6px 22px rgba(46, 168, 138, .28);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(46, 168, 138, .4); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--cy); color: var(--cy); }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-sm { padding: 9px 16px; font-size: .84rem; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 20, 18, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.site-header.scrolled { background: rgba(13, 20, 18, .95); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo-img { height: 34px; width: auto; }
.logo-text { line-height: 1.15; }
.logo-text strong { display: block; color: var(--text); font-size: 1.02rem; }
.logo-text > span { font-family: var(--mono); font-size: .68rem; color: var(--cy); letter-spacing: .1em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  color: var(--muted); font-weight: 600; font-size: .93rem;
  padding: 8px 13px; border-radius: 8px; transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.main-nav a.active { color: var(--cy); background: rgba(53,211,230,.08); }
.main-nav a.nav-tech {
  color: var(--cy); border: 1px solid rgba(53,211,230,.35); border-radius: 8px;
  font-family: var(--mono); font-size: .78rem; margin-left: 6px;
}
.main-nav a.nav-tech:hover { background: rgba(53,211,230,.1); border-color: var(--cy); }
.header-cta { display: inline-flex; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 28px; height: 28px; stroke: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 55% at 85% 10%, rgba(63, 83, 73, .5), transparent 60%),
    radial-gradient(ellipse 45% 50% at 5% 100%, rgba(53, 211, 230, .09), transparent 60%);
}
.hero::after {  /* faint engineering grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 52px; align-items: center; padding: 74px 0 88px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(70, 214, 139, .1); border: 1px solid rgba(70, 214, 139, .35);
  color: var(--gr); font-weight: 600; font-size: .8rem;
  padding: 6px 14px; border-radius: 50px; margin-bottom: 18px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gr); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.hero-eyebrow { font-family: var(--mono); color: var(--muted); font-size: .82rem; margin-bottom: 14px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(1.8rem, 3.3vw, 2.7rem); line-height: 1.16; margin-bottom: 18px; font-weight: 800; letter-spacing: -.015em; }
.hero h1 .grad { background: linear-gradient(90deg, var(--cy), var(--gr)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-text { font-size: 1.06rem; color: var(--muted); margin-bottom: 30px; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero visual: photo + terminal — same width, flush edges */
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.photo-stack { position: relative; width: 320px; max-width: 100%; }
.photo-frame {
  width: 100%; height: 310px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, var(--brand), #22332b 70%);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.profile-photo { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.frame-corner { position: absolute; width: 46px; height: 46px; border: 2.5px solid var(--cy); opacity: .8; }
.frame-corner.tl { top: -10px; left: -10px; border-right: none; border-bottom: none; border-radius: 10px 0 0 0; }
.frame-corner.br { bottom: -10px; right: -10px; border-left: none; border-top: none; border-radius: 0 0 10px 0; }

.term-card {
  position: relative; margin-top: 18px; width: 320px; max-width: 100%;
  background: #0b1210; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden;
}
.term-head { display: flex; align-items: center; gap: 6px; padding: 9px 13px; border-bottom: 1px solid var(--border); }
.term-head i { width: 10px; height: 10px; border-radius: 50%; background: #3a4a44; }
.term-head i:nth-child(1) { background: #e0655f; }
.term-head i:nth-child(2) { background: var(--am); }
.term-head i:nth-child(3) { background: var(--gr); }
.term-head span { margin-left: 6px; font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.term-body {
  font-family: var(--mono); font-size: .74rem; line-height: 1.75; color: #b7c8bf;
  padding: 12px 14px 14px; min-height: 128px; white-space: pre-wrap;
}
.term-body .ok { color: var(--gr); }
.term-body .cmd { color: var(--cy); }
.term-body .dim { color: var(--muted); }
.term-body .caret { display: inline-block; width: 7px; height: 13px; background: var(--cy); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Intro video CTA (hero) ---------- */
.video-cta {
  display: flex; align-items: center; gap: 13px; width: 320px; max-width: 100%;
  margin-top: 14px; padding: 12px 16px; cursor: pointer; text-align: left;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  font-family: var(--font); transition: transform .15s, border-color .15s, background .15s;
}
.video-cta:hover { transform: translateY(-2px); border-color: rgba(70,214,139,.55); background: var(--panel-2); }
.vc-play {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(70,214,139,.14); border: 1px solid rgba(70,214,139,.45); color: var(--gr);
  transition: background .15s, transform .15s;
}
.video-cta:hover .vc-play { background: rgba(70,214,139,.24); transform: scale(1.06); }
.vc-play svg { width: 18px; height: 18px; margin-left: 2px; }
.vc-text strong { display: block; color: var(--text); font-size: .92rem; font-weight: 700; }
.vc-text small { font-family: var(--mono); font-size: .68rem; color: var(--muted); }

/* ---------- Intro video modal ---------- */
.video-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.video-modal[hidden] { display: none; }
.vm-backdrop { position: absolute; inset: 0; background: rgba(5, 9, 8, .82); backdrop-filter: blur(6px); }
.vm-dialog {
  /* portrait 9:16 video — sized to always fit the viewport */
  position: relative; width: min(400px, 92vw, calc(88vh * 9 / 16));
  background: #0b1210; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden;
  animation: vmIn .3s cubic-bezier(.16,1,.3,1);
}
@keyframes vmIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.vm-frame { aspect-ratio: 9 / 16; background: #000; }
.vm-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vm-close {
  position: absolute; top: 0; right: 0; z-index: 2; margin: 10px;
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  background: rgba(11,18,16,.85); border: 1px solid var(--border); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
}
.vm-close:hover { border-color: var(--cy); color: var(--cy); }
.vm-close svg { width: 18px; height: 18px; }
body.modal-open { overflow: hidden; }

/* ---------- Stats strip ---------- */
.stats { border-block: 1px solid var(--border); background: var(--bg-2); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat { padding: 26px 10px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-family: var(--mono); font-size: 1.75rem; color: var(--cy); font-weight: 700; line-height: 1.15; }
.stat span { font-size: .82rem; color: var(--muted); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-deep { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 46px; }
.eyebrow { display: block; font-family: var(--mono); color: var(--gr); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: 12px; }
.section-head p { color: var(--muted); }

/* ---------- Panels ---------- */
.panel {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .18s ease, border-color .18s ease;
}
.panel:hover { transform: translateY(-3px); border-color: rgba(53,211,230,.35); }

/* ---------- Skills ---------- */
.skills-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; font-weight: 700; margin-bottom: 20px; }
.h-mark { width: 8px; height: 22px; border-radius: 3px; background: linear-gradient(180deg, var(--cy), var(--gr)); }
.skill-col:nth-child(2) .h-mark { background: linear-gradient(180deg, var(--am), #e08b3a); }
.skill-col:nth-child(3) .h-mark { background: linear-gradient(180deg, var(--gr), #2ea88a); }
.skill-bars { display: grid; gap: 17px; }
.skill-top { display: flex; justify-content: space-between; align-items: baseline; font-size: .86rem; font-weight: 500; color: var(--text); margin-bottom: 7px; gap: 8px; }
.skill-top em { font-style: normal; font-family: var(--mono); color: var(--cy); font-weight: 700; font-size: .8rem; }
.bar { height: 7px; background: rgba(255,255,255,.07); border-radius: 50px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 50px; background: linear-gradient(90deg, var(--cy), var(--gr)); transition: width 1.2s cubic-bezier(.16,1,.3,1); }
.skill-col:nth-child(2) .bar i { background: linear-gradient(90deg, var(--am), #e08b3a); }
.skill-col:nth-child(2) .skill-top em { color: var(--am); }
.skill-col:nth-child(3) .bar i { background: linear-gradient(90deg, var(--gr), #2ea88a); }
.skill-col:nth-child(3) .skill-top em { color: var(--gr); }

.chip-cloud { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 38px; }
.chip-cloud span {
  font-family: var(--mono); font-size: .78rem; color: var(--muted);
  background: var(--panel); border: 1px solid var(--border);
  padding: 7px 13px; border-radius: 7px;
  transition: transform .15s, color .15s, border-color .15s;
}
.chip-cloud span:hover { transform: translateY(-3px); color: var(--cy); border-color: rgba(53,211,230,.5); }

/* ---------- Architecture explorer ---------- */
.arch-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }
.arch-tab {
  text-align: left; cursor: pointer; font-family: var(--font);
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 15px 17px; display: grid; gap: 3px;
  transition: border-color .18s, background .18s, transform .15s;
}
.arch-tab:hover { transform: translateY(-2px); border-color: rgba(53,211,230,.4); }
.arch-tab.active { background: var(--panel-2); border-color: var(--cy); box-shadow: 0 0 0 1px var(--cy) inset; }
.t-org { font-weight: 700; font-size: .92rem; color: var(--text); }
.t-arch { font-size: .8rem; color: var(--cy); font-weight: 600; }
.arch-tab.active .t-arch { color: var(--cy); }
.t-date { font-family: var(--mono); font-size: .68rem; color: var(--muted); }

.arch-panel {
  display: none;
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 30px 28px;
}
.arch-panel.active { display: block; animation: panelIn .45s cubic-bezier(.16,1,.3,1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.arch-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 28px; }
.arch-head h3 { font-size: 1.18rem; font-weight: 800; margin-bottom: 8px; }
.arch-head p { color: var(--muted); font-size: .94rem; max-width: 680px; }
.arch-type {
  flex-shrink: 0; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--am); border: 1px solid rgba(242,179,80,.4); background: rgba(242,179,80,.08);
  padding: 6px 12px; border-radius: 50px; white-space: nowrap;
}

.arch-flow {
  display: flex; align-items: stretch; gap: 0; flex-wrap: wrap;
  background: #0b1210; border: 1px solid var(--border); border-radius: 12px;
  padding: 22px 18px; margin-bottom: 24px;
}
.anode {
  flex: 1 1 0; min-width: 118px; text-align: center; padding: 10px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border-radius: 10px; transition: background .18s;
}
.anode:hover { background: rgba(255,255,255,.04); }
.anode.hub .a-ic { box-shadow: 0 0 18px color-mix(in srgb, var(--c) 35%, transparent); }
.a-ic {
  width: 46px; height: 46px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16);
  background: color-mix(in srgb, var(--c) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  margin-bottom: 4px;
}
.a-ic svg { width: 24px; height: 24px; stroke: var(--c); }
.anode strong { font-size: .86rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.anode small { font-family: var(--mono); font-size: .64rem; color: var(--muted); line-height: 1.5; }

.aconn { position: relative; flex: 0 0 26px; align-self: center; height: 2px; margin-top: -26px;
  background: repeating-linear-gradient(90deg, rgba(53,211,230,.5) 0 5px, transparent 5px 10px); }
.aconn .pk {
  position: absolute; top: 50%; left: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cy); box-shadow: 0 0 8px 2px rgba(53,211,230,.7);
  transform: translate(-50%, -50%); animation: pkMove 2s linear infinite;
}
.aconn:nth-of-type(4) .pk { animation-delay: .33s; }
.aconn:nth-of-type(6) .pk { animation-delay: .66s; }
.aconn:nth-of-type(8) .pk { animation-delay: 1s; }
.aconn:nth-of-type(10) .pk { animation-delay: 1.33s; }
.aconn:nth-of-type(12) .pk { animation-delay: 1.66s; }
@keyframes pkMove { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.arch-side { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: -8px 0 24px; }
.side-label { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---------- Page head (inner pages) ---------- */
.page-head {
  padding: 58px 0 50px; border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 50% 80% at 85% 0%, rgba(63,83,73,.45), transparent 60%),
    var(--bg);
}
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: 12px; }
.page-head p { color: var(--muted); max-width: 640px; }
.page-head .eyebrow { color: var(--cy); }

/* ---------- Systems overview (plain language) ---------- */
.ov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ov-card { display: flex; flex-direction: column; }
.ov-eyebrow {
  font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--am); margin-bottom: 12px;
}
.ov-card h3 { font-size: 1.14rem; font-weight: 800; margin-bottom: 10px; }
.ov-card > p { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.ov-points { list-style: none; display: grid; gap: 9px; margin-bottom: 20px; }
.ov-points li { position: relative; padding-left: 26px; font-size: .89rem; color: var(--text); }
.ov-points li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%;
  background: rgba(70,214,139,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346d68b' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/9px no-repeat;
  border: 1px solid rgba(70,214,139,.35);
}
.ov-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--border);
}
.ov-shape { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.ov-strip {
  margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: rgba(255,255,255,.025); border: 1px dashed var(--border); border-radius: 12px; padding: 16px 22px;
}
.ov-strip p { color: var(--muted); font-size: .9rem; }
.ov-strip strong { color: var(--text); }
.ov-strip > a { font-family: var(--mono); font-size: .82rem; font-weight: 600; white-space: nowrap; }

/* ---- Case study: problem / solution ---- */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.case-block {
  background: #0b1210; border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 22px;
}
.case-block.problem { border-left: 3px solid var(--am); }
.case-block.solution { border-left: 3px solid var(--gr); }
.case-block h4 { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 10px; }
.case-block.problem h4 { color: var(--am); }
.case-block.solution h4 { color: var(--gr); }
.case-block p { color: var(--muted); font-size: .92rem; }
.case-block em { color: var(--text); font-style: italic; }
.case-block strong { color: var(--text); }
.case-block code {
  font-family: var(--mono); font-size: .82em; color: var(--cy);
  background: rgba(53,211,230,.08); border: 1px solid rgba(53,211,230,.2);
  padding: 1px 6px; border-radius: 5px;
}

/* ---- Stacked / forked nodes ---- */
.astack { flex: 1 1 0; min-width: 150px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.astack .anode.mini { flex: none; flex-direction: row; text-align: left; gap: 11px; padding: 8px 10px;
  background: rgba(255,255,255,.03); border: 1px dashed rgba(255,255,255,.14); }
.astack .anode.mini .a-ic { width: 38px; height: 38px; margin-bottom: 0; flex-shrink: 0; }
.astack .anode.mini .a-ic svg { width: 20px; height: 20px; }
.astack .anode.mini strong { font-size: .8rem; }
.astack .anode.mini small { font-size: .62rem; }

/* ---- Validation gates on connectors ---- */
.aconn.gate { background: repeating-linear-gradient(90deg, rgba(70,214,139,.55) 0 5px, transparent 5px 10px); }
.aconn.gate::after {
  content: "◆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -52%);
  color: var(--gr); font-size: .62rem; text-shadow: 0 0 8px rgba(70,214,139,.8);
}
.aconn.gate .pk { background: var(--gr); box-shadow: 0 0 8px 2px rgba(70,214,139,.7); }
.gate-dot { color: var(--gr); font-size: .72rem; }

/* ---- Plane strips (control / observability / secrets) ---- */
.plane-strips { display: grid; gap: 10px; margin-bottom: 26px; }
.plane {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  border-radius: 10px; padding: 11px 16px; border: 1px dashed var(--border);
  background: rgba(255,255,255,.025);
}
.plane-name { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; white-space: nowrap; }
.plane.control .plane-name { color: var(--am); }
.plane.observe .plane-name { color: var(--cy); }
.plane-desc { color: var(--muted); font-size: .84rem; }

/* ---- Service rationale table ---- */
.why-wrap { margin-bottom: 26px; }
.why-wrap > h4 { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gr); margin-bottom: 13px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.why-table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 640px; }
.why-table th {
  text-align: left; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); font-weight: 600; padding: 11px 16px; background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--border);
}
.why-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--muted); }
.why-table tr:last-child td { border-bottom: none; }
.why-table td:first-child { color: var(--cy); font-family: var(--mono); font-size: .78rem; white-space: nowrap; }
.why-table td:nth-child(2) { color: var(--text); }
.why-table tbody tr { transition: background .15s; }
.why-table tbody tr:hover { background: rgba(255,255,255,.03); }

.arch-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.arch-detail h4 { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gr); margin-bottom: 13px; }
.tick-list { list-style: none; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 26px; font-size: .92rem; color: var(--text); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; border-radius: 4px;
  background: rgba(70,214,139,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346d68b' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat;
  border: 1px solid rgba(70,214,139,.35);
}
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-chips span {
  font-family: var(--mono); font-size: .74rem; color: var(--text);
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  padding: 6px 11px; border-radius: 7px;
}

/* ---------- Process ---------- */
.process-list { list-style: none; max-width: 760px; margin: 0 auto; display: grid; gap: 0; }
.process-list li {
  display: grid; grid-template-columns: 74px 1fr; gap: 20px; align-items: flex-start;
  padding: 22px 6px; border-bottom: 1px solid var(--border); position: relative;
}
.process-list li:last-child { border-bottom: none; }
.p-num { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1.2px var(--cy); letter-spacing: .02em; padding-top: 2px; }
.process-list h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; }
.process-list p { color: var(--muted); font-size: .9rem; }

/* ---------- Education ---------- */
.edu-wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: center; }
.edu-copy h2 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); font-weight: 800; margin-bottom: 14px; }
.edu-copy p { color: var(--muted); font-size: .96rem; }
.cert-list { display: grid; gap: 11px; }
.cert-list span {
  display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .93rem;
  background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--gr);
  border-radius: 10px; padding: 14px 18px;
}

/* ---------- Contact band ---------- */
.contact-band {
  position: relative; overflow: hidden; text-align: center; padding: 88px 0;
  background: linear-gradient(160deg, #101a16, var(--brand) 160%);
  border-top: 1px solid var(--border);
}
.contact-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 45% 60% at 80% 100%, rgba(53,211,230,.12), transparent 60%);
}
.contact-band .container { position: relative; }
.contact-band .eyebrow { text-align: center; }
.contact-band h2 { font-size: clamp(1.5rem, 2.9vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.contact-band > .container > p { color: var(--muted); max-width: 560px; margin: 0 auto 30px; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.social-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.social-links a {
  display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .9rem;
  padding: 8px 16px; border-radius: 9px; border: 1px solid var(--border);
  transition: color .15s, border-color .15s;
}
.social-links a:hover { color: var(--cy); border-color: rgba(53,211,230,.5); }
.social-links svg { width: 17px; height: 17px; }

/* ---------- Footer ---------- */
.site-footer { background: #0a100e; border-top: 1px solid var(--border); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-footer p { color: var(--muted); font-size: .85rem; }

/* ---------- Scroll top ---------- */
.scroll-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 44px; height: 44px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .2s, transform .2s, border-color .15s;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { border-color: var(--cy); }
.scroll-top svg { width: 20px; height: 20px; stroke: var(--cy); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .pk, .hero-badge .dot, .term-body .caret { animation: none !important; }
  .arch-panel.active { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 54px; padding: 56px 0 72px; }
  .hero-copy { text-align: center; }
  .hero-text { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .skills-wrap { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .arch-tabs { grid-template-columns: repeat(2, 1fr); }
  .arch-detail { grid-template-columns: 1fr; gap: 22px; }
  .case-grid { grid-template-columns: 1fr; }
  .ov-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .ov-strip { justify-content: center; text-align: center; }
  .edu-wrap { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  .arch-flow { flex-direction: column; align-items: stretch; padding: 18px 16px; }
  .anode { flex-direction: row; text-align: left; gap: 13px; padding: 10px 8px; }
  .anode .a-ic { margin-bottom: 0; flex-shrink: 0; }
  .anode strong { font-size: .9rem; }
  .anode > div { display: contents; }
  .aconn { flex: 0 0 26px; width: 2px; height: 26px; margin: 0 0 0 30px; align-self: flex-start;
    background: repeating-linear-gradient(180deg, rgba(53,211,230,.5) 0 5px, transparent 5px 10px); }
  .aconn.gate { background: repeating-linear-gradient(180deg, rgba(70,214,139,.55) 0 5px, transparent 5px 10px); }
  .aconn .pk { top: 0; left: 50%; animation: pkMoveV 2s linear infinite; }
  .astack { min-width: 0; }
  .astack .anode.mini { border-style: dashed; }
}
@keyframes pkMoveV { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@media (max-width: 720px) {
  .main-nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 12px; gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 16px; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .arch-tabs { grid-template-columns: 1fr; }
  .arch-head { flex-direction: column; }
  .arch-panel { padding: 22px 18px; }
  .process-list li { grid-template-columns: 52px 1fr; gap: 14px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
