/* ==========================================================================
   dragonsys.org — Eric Baugh
   Static stylesheet. Structured so it can be dropped into a WordPress
   theme later (all styling lives here; no inline styles in the markup).
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */
:root {
  --bg:            #0d1117;
  --bg-alt:        #131a24;
  --bg-panel:      #182130;
  --bg-light:      #f4f6f9;
  --line:          #253044;
  --line-light:    #dfe4ec;

  --text:          #e6edf5;
  --text-dim:      #97a4b8;
  --text-dark:     #16202e;
  --text-dark-dim: #55627a;

  --accent:        #35c8c0;
  --accent-2:      #6d8fff;
  --accent-glow:   rgba(53, 200, 192, .18);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --wrap: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--text); }

h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1.1em; }

ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }

/* --- 3. Layout helpers -------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt   { background: var(--bg-alt); }
.section--light { background: var(--bg-light); color: var(--text-dark); }
.section--light h1, .section--light h2, .section--light h3 { color: var(--text-dark); }
.section--light p { color: var(--text-dark-dim); }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lead { font-size: 1.16rem; color: var(--text-dim); max-width: 62ch; }
.section--light .lead { color: var(--text-dark-dim); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.rule {
  width: 54px; height: 3px; border: 0; margin: 0 0 26px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 3px;
}
.section-head--center .rule { margin-left: auto; margin-right: auto; }

/* --- 4. Buttons --------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--accent); color: #08120f; }
.btn--primary:hover { background: #55e0d8; color: #08120f; }

.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.section--light .btn--ghost { border-color: var(--line-light); color: var(--text-dark); }
.section--light .btn--ghost:hover { border-color: var(--text-dark); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* --- 5. Header / nav ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(13, 17, 23, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 20px;
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-weight: 700; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand__mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08120f; font-size: .95rem; font-weight: 800;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 1rem; }
.brand__sub {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-dim); font-weight: 500;
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  color: var(--text-dim); font-size: .93rem; font-weight: 500;
  position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width .25s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; padding: 10px; color: var(--text);
}
.nav-toggle span {
  display: block; height: 2px; background: currentColor; border-radius: 2px;
  margin: 4px 0; transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- 6. Hero ------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 104px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(720px 420px at 78% 8%,  var(--accent-glow), transparent 62%),
    radial-gradient(620px 460px at 8% 92%, rgba(109, 143, 255, .13), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero__inner { max-width: 830px; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .hl {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: 1.2rem; color: var(--text-dim); max-width: 60ch; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin-top: 38px; padding-top: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim);
}
.hero__meta span::before { content: "\25B8"; color: var(--accent); margin-right: 9px; }

/* --- 7. Stat band ------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.stat { padding: 40px 26px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.1;
}
.stat__label {
  margin-top: 8px; font-size: .82rem; color: var(--text-dim);
  letter-spacing: .04em;
}

/* --- 8. Cards ----------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .38);
}
.card__icon {
  width: 46px; height: 46px; margin-bottom: 20px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(53, 200, 192, .12);
  border: 1px solid rgba(53, 200, 192, .3);
  color: var(--accent);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: .5em; }
.card p { color: var(--text-dim); font-size: .97rem; margin-bottom: 0; }

.section--light .card {
  background: #fff; border-color: var(--line-light);
}
.section--light .card:hover { box-shadow: 0 18px 40px rgba(22, 32, 46, .09); }
.section--light .card p { color: var(--text-dark-dim); }

/* --- 9. Split (text + panel) -------------------------------------------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }

/* skill meters */
.meters { display: grid; gap: 22px; }
.meter__top {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 9px; font-size: .93rem;
}
.meter__name { font-weight: 600; }
.meter__val { font-family: var(--mono); font-size: .78rem; color: var(--accent); }
.meter__track {
  height: 7px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, .07);
}
.section--light .meter__track { background: rgba(22, 32, 46, .09); }
.meter__fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.1s var(--ease);
}

/* --- 10. Tech tags ------------------------------------------------------ */
.tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.tags li {
  margin: 0;
  font-family: var(--mono); font-size: .8rem;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-dim);
  background: var(--bg-panel);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.tags li:hover { color: var(--accent); border-color: var(--accent); }
.section--light .tags li { background: #fff; border-color: var(--line-light); color: var(--text-dark-dim); }

.tag-group { margin-bottom: 34px; }
.tag-group h4 {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; font-weight: 500;
}

/* --- 11. Timeline ------------------------------------------------------- */
.timeline { position: relative; margin: 0; padding: 0 0 0 34px; list-style: none; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
}
.tl-item { position: relative; margin: 0 0 46px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -34px; top: 9px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.tl-item__date {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.tl-item__role { font-size: 1.22rem; font-weight: 700; margin-bottom: 2px; }
.tl-item__org { color: var(--text-dim); font-size: .93rem; margin-bottom: 14px; }
.tl-item ul { color: var(--text-dim); font-size: .97rem; }
.tl-item ul li::marker { color: var(--accent); }

.section--light .tl-item::before { background: var(--bg-light); }
.section--light .tl-item__org, .section--light .tl-item ul { color: var(--text-dark-dim); }

/* --- 12. Employer strip ------------------------------------------------- */
.orgs {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 18px 54px; padding: 34px 0;
}
.orgs__label {
  width: 100%; text-align: center; font-family: var(--mono);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 4px;
}
.orgs span {
  font-size: 1.25rem; font-weight: 700; letter-spacing: .01em;
  color: var(--text-dim); opacity: .75;
  transition: opacity .25s var(--ease), color .25s var(--ease);
}
.orgs span:hover { opacity: 1; color: var(--text); }

/* --- 13. CTA ------------------------------------------------------------ */
.cta {
  position: relative; overflow: hidden;
  border-radius: 20px; padding: 66px 48px; text-align: center;
  background: linear-gradient(135deg, #14202e, #0f1922);
  border: 1px solid var(--line);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, var(--accent-glow), transparent 70%);
}
.cta > * { position: relative; }
.cta h2 { margin-bottom: .4em; }
.cta p { color: var(--text-dim); max-width: 56ch; margin: 0 auto 1.4em; }
.cta .btn-row { justify-content: center; }

.note {
  display: inline-block; margin-top: 8px;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .06em;
  color: var(--text-dim); border: 1px dashed var(--line);
  border-radius: 8px; padding: 10px 18px;
}

/* --- 14. Callout / quote ------------------------------------------------ */
.callout {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 26px;
  font-size: 1.24rem; line-height: 1.55; font-weight: 500;
  color: var(--text);
}
.section--light .callout { color: var(--text-dark); }

/* --- 15. Definition rows (training, certs) ------------------------------ */
.rows { border-top: 1px solid var(--line); }
.section--light .rows { border-color: var(--line-light); }
.row {
  display: grid; grid-template-columns: 220px 1fr; gap: 26px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.section--light .row { border-color: var(--line-light); }
.row__k {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); padding-top: 4px;
}
.row__v { color: var(--text-dim); }
.section--light .row__v { color: var(--text-dark-dim); }
.row__v p:last-child { margin-bottom: 0; }

/* --- 16. Page hero (interior pages) ------------------------------------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: 96px 0 74px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(640px 340px at 12% 0%, var(--accent-glow), transparent 65%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }

/* --- 17. Footer --------------------------------------------------------- */
.site-footer {
  background: #090d13;
  border-top: 1px solid var(--line);
  padding: 56px 0 30px;
  font-size: .92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
  padding-bottom: 36px; border-bottom: 1px solid var(--line);
}
.footer-grid p { color: var(--text-dim); margin-bottom: 0; max-width: 42ch; }
.footer-blurb { margin-top: 16px !important; }
.footer-grid h4 {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-dim); font-weight: 500; margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 9px; }
.footer-grid ul a { color: var(--text-dim); }
.footer-grid ul a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  padding-top: 24px; color: var(--text-dim); font-size: .85rem;
}

/* --- 18. Reveal on scroll ----------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* --- 19. Responsive ----------------------------------------------------- */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .hero { padding: 84px 0 68px; }

  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .cta { padding: 46px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .orgs { gap: 16px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
