/* =========================================================================
   Sterling Schwieger — Portfolio & Glass Platform Showcase
   Glassmorphism · dark theme · self-contained (no build step)
   ========================================================================= */

:root {
  /* Palette */
  --bg:            #070b12;
  --bg-2:          #0a0f1a;
  --surface:       rgba(255, 255, 255, 0.045);
  --surface-2:     rgba(255, 255, 255, 0.07);
  --border:        rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text:          #e7eef7;
  --text-muted:    #9fb0c3;
  --text-dim:      #6b7c92;

  --cyan:          #22d3ee;
  --sky:           #38bdf8;
  --violet:        #a855f7;
  --emerald:       #34d399;

  --grad: linear-gradient(120deg, #38bdf8 0%, #22d3ee 40%, #a855f7 100%);
  --grad-soft: linear-gradient(120deg, rgba(56,189,248,.15), rgba(168,85,247,.15));

  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px -8px rgba(56, 189, 248, 0.35);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.02em; }

/* ---------- Ambient background ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 60vw at 12% -5%, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(55vw 55vw at 95% 8%, rgba(168, 85, 247, 0.14), transparent 60%),
    radial-gradient(60vw 50vw at 50% 110%, rgba(34, 211, 238, 0.10), transparent 60%),
    var(--bg);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(8px);
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 18px 0 14px; }
.section-lead { color: var(--text-muted); max-width: 640px; font-size: 1.06rem; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Glass card ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 0.96rem;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad);
  color: #05080d;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 46px -6px rgba(56,189,248,.55); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); background: var(--surface-2); border-color: var(--cyan); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 11, 18, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--grad); color: #05080d;
  font-weight: 700; box-shadow: var(--shadow-glow);
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-muted); font-size: 0.94rem; font-weight: 500; transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 72px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.15rem); margin: 22px 0 20px; }
.hero .lead { font-size: 1.18rem; color: var(--text-muted); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta .m-num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; }
.hero-meta .m-lbl { font-size: 0.8rem; color: var(--text-dim); font-family: var(--font-mono); letter-spacing: .04em; }

/* Hero visual — floating glass panel with service constellation */
.hero-visual { position: relative; min-height: 420px; }
.hero-card {
  position: relative; padding: 26px;
  border-radius: 22px;
  overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-soft);
  opacity: .6;
}
.hero-card-inner { position: relative; }
.hc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.hc-dots { display: flex; gap: 7px; }
.hc-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.hc-dots span:nth-child(1){ background:#ff5f57; } .hc-dots span:nth-child(2){ background:#febc2e; } .hc-dots span:nth-child(3){ background:#28c840; }
.hc-tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.hc-svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hc-chip {
  font-family: var(--font-mono); font-size: 11.5px;
  padding: 10px 8px; border-radius: 10px; text-align: center;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text-muted);
  transition: transform .2s ease, color .2s ease, border-color .2s ease;
}
.hc-chip:hover { transform: translateY(-3px); color: var(--text); border-color: var(--cyan); }
.hc-bar { margin-top: 18px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.hc-bar i { display: block; height: 100%; width: 94%; background: var(--grad); border-radius: 999px; }
.hc-cap { margin-top: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); display: flex; justify-content: space-between; }

.float-badge {
  position: absolute; z-index: 3;
  padding: 12px 15px; border-radius: 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 600;
  animation: floaty 6s ease-in-out infinite;
}
.float-badge .fb-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--grad); color: #05080d; }
.float-badge .fb-ico svg { width: 16px; height: 16px; }
.fb-1 { top: -18px; right: 8px; animation-delay: 0s; }
.fb-2 { bottom: 40px; left: -26px; animation-delay: 1.5s; }
.fb-3 { bottom: -16px; right: 40px; animation-delay: 3s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Marquee / tech strip ---------- */
.techstrip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; background: rgba(255,255,255,0.015); }
.techstrip .container { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.tech-pill {
  font-family: var(--font-mono); font-size: 0.82rem;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted);
}
.tech-pill b { color: var(--text); font-weight: 600; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 28px 24px; text-align: center; }
.stat .num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
.stat .lbl { color: var(--text-muted); font-size: 0.92rem; margin-top: 4px; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 28px; border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  position: relative; overflow: hidden;
}
.feature:hover { transform: translateY(-5px); border-color: var(--border-strong); background: var(--surface-2); }
.feature .f-ico {
  width: 50px; height: 50px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad-soft); border: 1px solid var(--border);
  color: var(--cyan);
}
.feature .f-ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 9px; }
.feature p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ---------- Split / value prop ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checklist li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--border); align-items: flex-start; }
.checklist li:last-child { border-bottom: 0; }
.checklist .ck { flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(52,211,153,.14); color: var(--emerald); }
.checklist .ck svg { width: 15px; height: 15px; }
.checklist b { color: var(--text); }
.checklist span { color: var(--text-muted); }

/* code window */
.codewin { border-radius: var(--radius); overflow: hidden; }
.codewin-top { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.03); }
.codewin-top .hc-tag { margin-left: auto; }
.codewin pre { margin: 0; padding: 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 0.83rem; line-height: 1.75; color: #c8d4e3; }
.codewin .c-key { color: #7dd3fc; } .codewin .c-str { color: #86efac; } .codewin .c-com { color: #64748b; } .codewin .c-fn { color: #d8b4fe; } .codewin .c-num { color: #fca5a5; }

/* ---------- Service catalog (glass.html) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc {
  padding: 22px; border-radius: var(--radius-sm);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.svc:hover { transform: translateY(-4px); border-color: var(--cyan); background: var(--surface-2); }
.svc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.svc-name { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text); font-weight: 600; }
.svc-lang { font-family: var(--font-mono); font-size: 0.68rem; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-dim); }
.svc p { color: var(--text-muted); font-size: 0.87rem; margin: 0; }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.skillcat { padding: 26px; border-radius: var(--radius); }
.skillcat h3 { font-size: 1.1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.skillcat h3 .s-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--grad-soft); display: grid; place-items: center; color: var(--cyan); }
.skillcat h3 .s-ico svg { width: 18px; height: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--font-mono); font-size: 0.8rem; padding: 6px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }

/* ---------- Timeline / process ---------- */
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding-bottom: 30px; position: relative; }
.tl-item:not(:last-child)::before { content: ""; position: absolute; left: 22px; top: 44px; bottom: 0; width: 2px; background: var(--border); }
.tl-dot { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); color: var(--cyan); }
.tl-dot svg { width: 20px; height: 20px; }
.tl-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.tl-body p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* ---------- CTA banner ---------- */
.cta-banner { padding: 60px 48px; border-radius: 26px; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content:""; position:absolute; inset:0; background: var(--grad-soft); }
.cta-banner > * { position: relative; }
.cta-banner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.cta-banner p { color: var(--text-muted); max-width: 540px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.contact-card { padding: 26px; border-radius: var(--radius); text-align: center; transition: transform .2s ease, border-color .2s ease; }
.contact-card:hover { transform: translateY(-4px); border-color: var(--cyan); }
.contact-card .c-ico { width: 48px; height: 48px; border-radius: 13px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--grad-soft); color: var(--cyan); }
.contact-card .c-ico svg { width: 22px; height: 22px; }
.contact-card .c-lbl { font-size: 0.8rem; color: var(--text-dim); font-family: var(--font-mono); }
.contact-card .c-val { color: var(--text); font-weight: 600; margin-top: 3px; word-break: break-word; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 44px 0 40px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .muted { color: var(--text-dim); font-size: 0.9rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color .2s ease; }
.footer-links a:hover { color: var(--text); }

/* ---------- Page header (subpages) ---------- */
.page-hero { padding: 72px 0 40px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 18px 0 16px; }
.page-hero .lead { color: var(--text-muted); font-size: 1.12rem; max-width: 680px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 340px; max-width: 460px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(7,11,18,0.96); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border); padding: 16px 24px 22px;
  }
  .nav.open .nav-links a { padding: 10px 0; }
  .features { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 20px; }
  .cta-banner { padding: 44px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================================
   Additions — projects, contact form, résumé
   ========================================================================= */

/* ---------- Selected Work / projects ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work-card {
  padding: 26px; border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  display: flex; flex-direction: column;
}
.work-card:hover { transform: translateY(-5px); border-color: var(--border-strong); background: var(--surface-2); }
.work-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.work-ico { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); color: var(--cyan); }
.work-ico svg { width: 22px; height: 22px; }
.work-title { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; }
.work-sub { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); letter-spacing: .04em; }
.work-pill { margin-left: auto; font-family: var(--font-mono); font-size: 0.66rem; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--emerald); background: rgba(52,211,153,.10); white-space: nowrap; }
.work-by { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); margin: -4px 0 12px; letter-spacing: .02em; }
.work-by b { color: var(--cyan); font-weight: 600; }
.work-card p { color: var(--text-muted); font-size: 0.94rem; margin: 0 0 16px; flex-grow: 1; }

/* WIP / in-development flag */
.dev-flag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.10);
  color: #fbbf24;
}
.dev-flag .pulse { width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 0 0 rgba(251,191,36,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(251,191,36,.55); } 70% { box-shadow: 0 0 0 7px rgba(251,191,36,0); } 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); } }
.work-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.work-tags .tag { font-size: 0.72rem; padding: 5px 10px; }

/* ---------- Contact form ---------- */
.cform { max-width: 640px; margin: 40px auto 0; padding: 30px; border-radius: var(--radius); }
.cform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 7px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 11px;
  color: var(--text); font-family: var(--font-sans); font-size: 0.95rem;
  transition: border-color .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: rgba(255,255,255,0.06); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: 0.9rem; }
.form-status.ok { color: var(--emerald); }
.form-status.err { color: #fca5a5; }
.form-note { text-align: center; color: var(--text-dim); font-size: 0.85rem; margin-top: 16px; }
.form-note a { color: var(--text-muted); text-decoration: underline; }

@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
  .cform .row { grid-template-columns: 1fr; }
}

/* ---------- Résumé page ---------- */
.resume-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.resume-doc { max-width: 900px; margin: 0 auto; padding: 44px; border-radius: var(--radius); }
.resume-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; border-bottom: 1px solid var(--border); padding-bottom: 22px; margin-bottom: 26px; }
.resume-head h1 { font-size: 2rem; margin-bottom: 4px; }
.resume-head .role { color: var(--cyan); font-family: var(--font-mono); font-size: 0.9rem; }
.resume-contact { font-size: 0.86rem; color: var(--text-muted); text-align: right; line-height: 1.9; }
.resume-contact a { color: var(--text-muted); }
.resume-section { margin-bottom: 28px; }
.resume-section > h2 { font-size: 0.82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); font-family: var(--font-mono); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.resume-section p { color: var(--text-muted); margin: 0 0 10px; }
.r-item { margin-bottom: 16px; }
.r-item-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.r-item-top h3 { font-size: 1.05rem; }
.r-item-top .r-meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-dim); }
.r-item ul { margin: 8px 0 0; padding-left: 0; }
.r-item ul li { position: relative; padding-left: 18px; color: var(--text-muted); font-size: 0.92rem; margin-bottom: 5px; }
.r-item ul li::before { content: "▸"; position: absolute; left: 0; color: var(--cyan); }
.r-skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.r-skill-row b { color: var(--text); font-size: 0.9rem; }
.r-skill-row span { color: var(--text-muted); font-size: 0.9rem; }
.r-placeholder { border: 1px dashed var(--border-strong); border-radius: 10px; padding: 14px 16px; color: var(--text-dim); font-size: 0.86rem; background: rgba(255,255,255,0.02); }

@media (max-width: 640px) {
  .resume-doc { padding: 26px; }
  .resume-contact { text-align: left; }
  .r-skills { grid-template-columns: 1fr; }
}

/* ---------- Comparison page ---------- */
.tco-chart { padding: 30px; border-radius: var(--radius); }
.tco-row { display: grid; grid-template-columns: 118px 1fr 96px; gap: 14px; align-items: center; margin-bottom: 16px; }
.tco-row:last-child { margin-bottom: 0; }
.tco-name { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }
.tco-name.hl { color: var(--cyan); font-weight: 600; }
.tco-track { position: relative; height: 30px; background: rgba(255,255,255,0.04); border-radius: 9px; overflow: hidden; }
.tco-fill {
  height: 100%; border-radius: 9px; width: 0; min-width: 8px;
  transition: width 1.3s cubic-bezier(.2,.7,.2,1);
}
.tco-amt { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; color: var(--text); text-align: right; }
.tco-amt.hl { color: var(--cyan); }
.tco-fill.glass { background: var(--grad); }
.tco-fill.other { background: linear-gradient(90deg, rgba(148,163,184,.65), rgba(100,116,139,.55)); color: var(--text); }
.tco-fill.danger { background: linear-gradient(90deg, #fb7185, #ef4444); color: #fff; }

.parity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 40px; }
.parity-row .p-top { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.92rem; }
.parity-row .p-top b { color: var(--text); font-weight: 600; }
.parity-row .p-top .p-val { font-family: var(--font-mono); color: var(--cyan); }
.parity-track { height: 9px; background: rgba(255,255,255,0.05); border-radius: 999px; overflow: hidden; }
.parity-fill { height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.parity-fill.full { background: linear-gradient(90deg, #34d399, #22d3ee); }

.cost-table-wrap { overflow-x: auto; border-radius: var(--radius); }
.cost-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.cost-table th, .cost-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.cost-table thead th { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.cost-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.cost-table .plat { font-weight: 600; color: var(--text); }
.cost-table .glass-row { background: rgba(56,189,248,.06); }
.cost-table .glass-row .plat { color: var(--cyan); }
.cost-table .total { font-family: var(--font-mono); font-weight: 600; color: var(--text); }
.cost-table .save { color: var(--emerald); font-family: var(--font-mono); }

.unique-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.unique { padding: 20px; border-radius: var(--radius-sm); transition: transform .2s ease, border-color .2s ease; }
.unique:hover { transform: translateY(-4px); border-color: var(--cyan); }
.unique .u-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px; background: var(--grad-soft); color: var(--cyan); }
.unique .u-ico svg { width: 20px; height: 20px; }
.unique h3 { font-size: 1rem; margin-bottom: 6px; }
.unique p { font-size: 0.86rem; color: var(--text-muted); margin: 0; }

@media (max-width: 960px) {
  .parity-grid { grid-template-columns: 1fr; }
  .unique-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tco-row { grid-template-columns: 78px 1fr 70px; gap: 8px; }
  .tco-name, .tco-amt { font-size: 0.72rem; }
  .unique-grid { grid-template-columns: 1fr; }
  .tco-chart { padding: 20px; }
}

/* ---------- Hardware requirement tiers ---------- */
.hw-cost { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin: 2px 0 16px; }
.hw-cost .per { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); font-weight: 400; letter-spacing: .02em; }
.hw-specs { display: grid; gap: 9px; margin: 0 0 16px; }
.hw-specs li { color: var(--text-muted); font-size: 0.9rem; display: flex; gap: 9px; align-items: flex-start; }
.hw-specs li::before { content: "›"; color: var(--cyan); font-weight: 700; }
.hw-specs b { color: var(--text); font-weight: 600; }
.hw-note { font-size: 0.82rem; color: var(--text-dim); border-top: 1px solid var(--border); padding-top: 12px; margin: auto 0 0; }
.hw-note.good { color: var(--emerald); }

/* ---------- Pricing / Beta License ---------- */
.price-wrap { display: flex; justify-content: center; }
.price-card {
  max-width: 540px; width: 100%; padding: 42px 38px;
  border-radius: 24px; text-align: center; position: relative; overflow: hidden;
}
.price-card::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); }
.price-card > * { position: relative; }
.price-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: #fbbf24; padding: 5px 13px; border-radius: 999px;
  border: 1px solid rgba(251,191,36,.35); background: rgba(251,191,36,.10);
}
.price-name { font-family: var(--font-display); font-size: 1.5rem; margin: 18px 0 6px; }
.price-amt { font-family: var(--font-display); font-weight: 700; font-size: 3.6rem; line-height: 1; }
.price-amt .per { font-family: var(--font-sans); font-size: 1.05rem; color: var(--text-muted); font-weight: 500; }
.price-term { font-family: var(--font-mono); font-size: 0.85rem; color: var(--cyan); margin-top: 12px; }
.price-feats { text-align: left; margin: 28px auto 30px; max-width: 420px; display: grid; gap: 12px; }
.price-feats li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-muted); font-size: 0.95rem; }
.price-feats .ck { flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: rgba(52,211,153,.14); color: var(--emerald); }
.price-feats .ck svg { width: 14px; height: 14px; }
.price-feats b { color: var(--text); }
.price-foot { font-size: 0.84rem; color: var(--text-dim); margin-top: 18px; }

/* ---------- Tour carousel (glass.html virtual demo) ---------- */
.tour-carousel { max-width: 960px; margin: 0 auto; }
.tour-viewport { border-radius: 20px; overflow: hidden; position: relative; }
.tour-slides { position: relative; min-height: 460px; }
.tour-slide { display: none; animation: tourFadeIn .5s ease; }
.tour-slide.active { display: block; }
@keyframes tourFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tour-slide-mock { }
.tour-mock-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.tour-mock-chrome .hc-tag { margin-left: auto; }
.tour-mock-body { display: flex; min-height: 400px; }
.tour-mock-sidebar {
  width: 140px; flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 14px 0;
  background: rgba(255,255,255,0.02);
}
.tour-sb-item {
  padding: 9px 18px; font-size: 0.82rem; color: var(--text-dim);
  cursor: default; transition: color .2s, background .2s;
  border-left: 3px solid transparent;
}
.tour-sb-item.active {
  color: var(--cyan); background: rgba(34,211,238,.06);
  border-left-color: var(--cyan);
}
.tour-mock-main { flex: 1; padding: 18px 22px; }
.tour-mock-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.tour-mock-greeting { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.tour-mock-badges { display: flex; gap: 8px; }
.tour-badge {
  font-family: var(--font-mono); font-size: 0.7rem; padding: 4px 10px;
  border-radius: 999px; border: 1px solid var(--border); color: var(--text-dim);
}
.tour-badge.good { border-color: rgba(52,211,153,.4); color: var(--emerald); background: rgba(52,211,153,.08); }
.tour-mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.tour-mock-stat {
  padding: 14px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  text-align: center;
}
.tms-num { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.tms-lbl { font-size: 0.72rem; color: var(--text-dim); margin-top: 2px; }

/* Tour: chart mock */
.tour-mock-chart {
  padding: 16px; border-radius: 12px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
}
.tmc-label { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 12px; }
.tmc-bars { display: flex; gap: 10px; height: 80px; align-items: flex-end; }
.tmc-bar {
  flex: 1; border-radius: 6px 6px 0 0;
  background: var(--grad); opacity: 0.7;
  transition: opacity .2s;
}
.tmc-bar:hover { opacity: 1; }

/* Tour: AI panel */
.tour-ai-panel { display: grid; gap: 14px; }
.tour-ai-card {
  padding: 16px; border-radius: 12px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
}
.tour-ai-label { font-size: 0.86rem; font-weight: 600; margin-bottom: 10px; }
.tour-ai-row {
  display: flex; gap: 12px; padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.84rem;
}
.tour-ai-row:last-child { border-bottom: 0; }
.ai-k { color: var(--text-dim); width: 70px; flex-shrink: 0; font-family: var(--font-mono); font-size: 0.76rem; }
.ai-v { color: var(--text-muted); }
.tour-ai-match {
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.84rem; color: var(--text-muted);
}
.tour-ai-match:last-child { border-bottom: 0; }
.ai-pct { font-family: var(--font-mono); color: var(--cyan); font-weight: 600; margin-right: 8px; }
.ai-tag {
  font-family: var(--font-mono); font-size: 0.66rem;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(52,211,153,.12); color: var(--emerald);
  margin-left: 6px;
}

/* Tour: security feeds */
.tour-sec-feeds { display: grid; gap: 8px; margin-top: 8px; }
.tour-sec-feed {
  padding: 10px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  font-size: 0.84rem; color: var(--text-muted);
}
.sec-src {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  color: var(--cyan); margin-right: 8px;
  padding: 2px 7px; border-radius: 6px;
  background: rgba(34,211,238,.08);
}

/* Tour: AI prompt mock */
.tour-ai-prompt {
  padding: 18px; border-radius: 12px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
}
.tour-prompt-label { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 8px; }
.tour-prompt-input {
  font-family: var(--font-sans); font-size: 0.95rem; font-style: italic;
  color: var(--text); padding: 12px 16px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 12px;
}
.tour-prompt-arrow {
  text-align: center; font-family: var(--font-mono); font-size: 0.76rem;
  color: var(--cyan); padding: 8px 0;
}
.tour-prompt-result {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.tour-result-row {
  display: flex; justify-content: space-between; padding: 10px 14px;
  font-size: 0.86rem; color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.tour-result-row:last-child { border-bottom: 0; }
.tour-result-row span:first-child { color: var(--text); font-weight: 500; }
.tour-result-row span:last-child { font-family: var(--font-mono); color: var(--cyan); }

/* Tour controls */
.tour-controls {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 18px;
}
.tour-btn {
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); cursor: pointer;
  display: grid; place-items: center;
  transition: border-color .2s, color .2s, transform .15s;
}
.tour-btn:hover { border-color: var(--cyan); color: var(--text); transform: scale(1.06); }
.tour-btn svg { width: 20px; height: 20px; }
.tour-dots { display: flex; gap: 6px; }
.tour-dot {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-dim);
  font-family: var(--font-mono); font-size: 0.72rem; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.tour-dot:hover { border-color: var(--border-strong); color: var(--text-muted); }
.tour-dot.active { border-color: var(--cyan); color: var(--cyan); background: rgba(34,211,238,.08); }

@media (max-width: 960px) {
  .tour-mock-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tour-slides { min-height: 380px; }
  .tour-mock-sidebar { width: 90px; }
  .tour-sb-item { font-size: 0.72rem; padding: 7px 10px; }
  .tour-mock-main { padding: 14px; }
  .tour-mock-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tour-mock-stat { padding: 10px 8px; }
  .tms-num { font-size: 1.1rem; }
  .tour-dots { gap: 4px; }
  .tour-dot { padding: 5px 10px; font-size: 0.66rem; }
  .tour-ai-row { flex-direction: column; gap: 2px; }
  .ai-k { width: auto; }
}

/* Print — clean white résumé */
@media print {
  .bg-fx, .bg-grid, .nav, .footer, .resume-actions, .no-print { display: none !important; }
  body { background: #fff; color: #111; }
  .page-hero { display: none; }
  .resume-doc { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; background: #fff; backdrop-filter: none; }
  .resume-doc, .resume-doc * { color: #111 !important; }
  .resume-head .role { color: #0369a1 !important; }
  .r-item ul li::before { color: #0369a1 !important; }
  .resume-section > h2, .r-item-top .r-meta { color: #555 !important; }
  .resume-head, .resume-section > h2 { border-color: #ddd !important; }
  a { text-decoration: none; }
  .section { padding: 0 !important; }
}
