:root {
  --ink: #0a0c0f;
  --charcoal: #11161a;
  --panel: #171e22;
  --panel-light: #1d272c;
  --ice: #a7fff2;
  --ice-bright: #65eee0;
  --amber: #ffb45e;
  --text: #f2f6f5;
  --muted: #a4b1b0;
  --line: rgba(167, 255, 242, 0.18);
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  --radius: 4px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--ink);
  line-height: 1.6;
}

body::selection {
  color: var(--ink);
  background: var(--ice);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1120px, 90%);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 15, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  color: var(--text);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  gap: 1rem;
}

.logo {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo::before {
  content: "// ";
  color: var(--ice);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav a {
  color: var(--muted);
  transition: color 0.2s, text-shadow 0.2s;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ice);
  text-shadow: 0 0 18px rgba(101, 238, 224, 0.45);
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10,12,15,.55), rgba(10,12,15,.88)),
    url("images/spirit-lake.jpg") center/cover no-repeat;
  color: var(--text);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.13;
  pointer-events: none;
  background-image: linear-gradient(rgba(167, 255, 242, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 255, 242, 0.2) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 76% 48%, transparent 0, rgba(6, 9, 11, 0.28) 42%, rgba(6, 9, 11, 0.7) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--ice);
  margin: 0 0 1.2rem;
}

.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 2px;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(255, 180, 94, 0.8);
}

.hero h1 {
  max-width: 12ch;
  font-family: var(--display);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  font-weight: 900;
}

.hero-lead {
  color: #d6e1df;
  font-size: clamp(1rem, 2vw, 1.18rem);
  max-width: 40rem;
  margin: 0 0 2rem;
}

/* Facts strip */
.facts-strip {
  background: #0e1316;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid rgba(255, 180, 94, 0.28);
  padding: 1.1rem 0;
}

.facts-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2.25rem;
}

.fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 4.5rem;
}

.fact-label {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.fact-value {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ice);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 0.95rem 1.45rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--ice);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(167, 255, 242, 0.3), 0 8px 24px rgba(101, 238, 224, 0.2);
}

.btn-primary::after {
  content: "↗";
  margin-left: 0.7rem;
  font-size: 1rem;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(167, 255, 242, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Sections */
.highlights,
.gallery,
.cta,
.history {
  padding: 5.5rem 0;
}

.highlights {
  background: var(--charcoal);
  position: relative;
}

.highlights::before,
.gallery::before,
.history::before {
  content: "";
  display: block;
  width: 4rem;
  height: 2px;
  background: var(--amber);
  margin: 0 auto 1.5rem;
}

.highlights h2,
.gallery h2,
.cta h2,
.history h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto 2.8rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: linear-gradient(145deg, var(--panel-light), var(--panel));
  border-radius: var(--radius);
  padding: 1.6rem 1.35rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(167, 255, 242, 0.12);
  border-top: 2px solid rgba(167, 255, 242, 0.55);
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--ice);
}

.card-icon {
  color: var(--ice);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  filter: grayscale(0.4);
}

.card h3 {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* History */
.history {
  background: #0d1114;
  position: relative;
}

.timeline {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.timeline-item {
  background: linear-gradient(145deg, var(--panel-light), var(--panel));
  border: 1px solid rgba(167, 255, 242, 0.12);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.timeline-item h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice);
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Gallery */
.gallery {
  position: relative;
  background: var(--charcoal);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
}

.gallery-item {
  grid-column: span 4;
  margin: 0;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(167, 255, 242, 0.1);
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(4) {
  grid-column: span 6;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08) brightness(0.78);
  transition: filter 0.3s, transform 0.3s;
}

.gallery-item:hover img {
  filter: saturate(1) contrast(1.08) brightness(0.95);
  transform: scale(1.03);
}

.gallery-item figcaption {
  padding: 0.8rem 1rem;
  font-size: 0.72rem;
  color: var(--ice);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nearby-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 42rem;
  margin: 2rem auto 0;
}

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #10191c, #111316 62%, #182c2c);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta::before {
  content: "BLANCHARD";
  position: absolute;
  right: -0.04em;
  bottom: -0.2em;
  color: rgba(167, 255, 242, 0.035);
  font-family: var(--display);
  font-size: clamp(4rem, 16vw, 12rem);
  line-height: 0.8;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
}

.cta h2 {
  color: var(--ice);
}

.cta p {
  margin: 0 0 1.7rem;
  color: var(--muted);
}

.plan-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  max-width: 380px;
  margin: 0 auto;
}

.plan-form input {
  background: rgba(10, 12, 15, 0.75);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
  font: inherit;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.plan-form input::placeholder {
  color: #6f7d7c;
}

.plan-form input:focus {
  border-color: var(--ice);
  box-shadow: 0 0 0 1px rgba(167, 255, 242, 0.35);
}

.plan-form .btn {
  width: 100%;
  margin-top: 0.35rem;
}

.cta-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--ice) !important;
  background: rgba(167, 255, 242, 0.08);
  border: 1px solid var(--line);
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 2px;
}

.cta-note[hidden] {
  display: none;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--muted);
  padding: 2.2rem 0;
  text-align: center;
  font-size: 0.86rem;
}

.site-footer strong {
  color: var(--text);
  letter-spacing: 0.04em;
}

.site-footer p {
  margin: 0.35rem 0;
}

.footer-meta {
  color: var(--ice);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-attr {
  font-size: 0.75rem;
  color: #7a8886;
  max-width: 36rem;
  margin: 0.9rem auto 0 !important;
}

@media (max-width: 700px) {
  .header-inner {
    align-items: flex-start;
  }

  .nav {
    gap: 0.75rem;
    justify-content: flex-end;
  }

  .hero {
    min-height: 72vh;
    background-position: 58% center;
  }

  .hero-content {
    padding: 4.5rem 0;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .highlights,
  .gallery,
  .cta,
  .history {
    padding: 4rem 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .header-inner {
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }
}

/* Resume page */
body.resume-page {
  background:
    radial-gradient(circle at top left, rgba(101, 238, 224, 0.08), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(255, 180, 94, 0.06), transparent 28%),
    var(--ink);
}

.resume-main {
  padding: 2.5rem 0 4rem;
}

.resume-sheet {
  max-width: 860px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 2.25rem 2rem 2.5rem;
}

.resume-masthead {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.35rem;
  margin-bottom: 1.75rem;
}

.resume-masthead h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
  line-height: 1;
  color: var(--text);
}

.resume-contact {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.resume-contact a {
  color: var(--ice);
}

.resume-contact a:hover,
.resume-contact a:focus-visible {
  color: var(--ice-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.resume-section {
  margin-bottom: 1.75rem;
}

.resume-section > h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
  margin: 0 0 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.resume-skills {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.job {
  margin-bottom: 1.35rem;
}

.job-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.2rem;
}

.job-org {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.job-dates {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
}

.job-title {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.job-bullets {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text);
}

.job-bullets li {
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.job-bullets li::marker {
  color: var(--ice);
}

.edu-block,
.cert-list {
  margin: 0 0 0.75rem;
}

.edu-block p {
  margin: 0.15rem 0;
}

.edu-school {
  font-weight: 700;
}

.edu-dates {
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cert-list {
  padding-left: 1.15rem;
}

.cert-list li {
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
}

.cert-list li::marker {
  color: var(--ice);
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.resume-actions .btn {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
}

.nav a[aria-current="page"] {
  color: var(--ice);
}

@media (max-width: 640px) {
  .resume-sheet {
    padding: 1.5rem 1.1rem 2rem;
  }

  .job-dates {
    white-space: normal;
  }
}

@media print {
  body.resume-page,
  body.resume-page::before {
    background: #fff !important;
  }

  .site-header,
  .site-footer,
  .resume-actions {
    display: none !important;
  }

  .resume-main {
    padding: 0;
  }

  .resume-sheet {
    max-width: none;
    border: none;
    box-shadow: none;
    background: #fff;
    color: #111;
    padding: 0;
  }

  .resume-masthead h1,
  .job-org,
  .resume-skills,
  .job-bullets,
  .edu-block,
  .cert-list {
    color: #111;
  }

  .resume-section > h2 {
    color: #0a5c52;
    border-bottom-color: #ccc;
  }

  .resume-contact,
  .job-title,
  .muted {
    color: #444;
  }

  .job-dates,
  .edu-dates {
    color: #8a4b00;
  }

  .resume-contact a {
    color: #0a5c52;
    text-decoration: none;
  }

  .job-bullets li::marker,
  .cert-list li::marker {
    color: #0a5c52;
  }

  a {
    color: inherit;
  }
}

/* Interactive resume chrome */
.resume-interactive {
  max-width: 860px;
  margin: 0 auto 1.75rem;
  display: grid;
  gap: 1.25rem;
}

.resume-toolbar {
  display: grid;
  gap: 0.85rem;
}

.resume-search {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
}

.resume-search:focus {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
  border-color: var(--ice);
}

.filter-chips,
.skill-tags,
.ask-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip,
.skill-tag,
.ask-preset {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel-light);
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.chip:hover,
.skill-tag:hover,
.ask-preset:hover,
.chip[aria-pressed="true"],
.skill-tag[aria-pressed="true"] {
  color: var(--ink);
  background: var(--ice);
  border-color: var(--ice);
  box-shadow: 0 0 18px rgba(101, 238, 224, 0.35);
}

.filter-status,
.constellation-label,
.ask-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.skill-constellation,
.ask-demo {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.1rem 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.ask-heading {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
  margin: 0 0 0.4rem;
}

.ask-note {
  margin-bottom: 0.75rem;
}

.ask-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.ask-input {
  flex: 1 1 220px;
  background: var(--charcoal);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  font: inherit;
}

.ask-input:focus {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}

.ask-submit {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid var(--ice);
  background: transparent;
  color: var(--ice);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
  cursor: pointer;
  line-height: 1;
  align-self: stretch;
}

.ask-submit:hover,
.ask-submit:focus-visible {
  background: var(--ice);
  color: var(--ink);
  outline: none;
}

.ask-submit:disabled {
  opacity: 0.5;
  cursor: wait;
}

.ask-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-top: 0.65rem;
  align-items: stretch;
}

.ask-input {
  flex: unset;
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
}

.ask-demo {
  padding: 0.95rem 1rem 1.05rem;
  box-shadow: none;
}

.ask-heading {
  font-size: 0.95rem;
}

.ask-presets .ask-preset {
  font-size: 0.65rem;
  padding: 0.35rem 0.6rem;
  letter-spacing: 0.06em;
}

.resume-interactive {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  gap: 1rem;
}

.resume-search {
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
}

.skill-constellation {
  box-shadow: none;
  padding: 0.85rem 1rem;
}

.btn-quiet {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.btn-quiet:hover,
.btn-quiet:focus-visible {
  color: var(--ice);
  border-color: var(--ice);
}

@media (max-width: 520px) {
  .ask-form {
    grid-template-columns: 1fr;
  }
  .ask-submit {
    width: 100%;
    padding: 0.65rem 0.95rem;
  }
}


.ask-answer {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  background: var(--charcoal);
  border-left: 3px solid var(--ice);
}

.ask-q,
.ask-a-title,
.ask-a-body,
.ask-disclaimer {
  margin: 0 0 0.45rem;
}

.ask-a-title {
  color: var(--amber);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ask-disclaimer {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.ask-flash {
  animation: askIn 0.45s ease;
}

@keyframes askIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.job {
  position: relative;
  padding-left: 2rem;
  border-radius: var(--radius);
  transition: box-shadow 0.25s, background 0.25s;
}

.job-toggle {
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--line);
  background: var(--panel-light);
  color: var(--ice);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
  padding: 0;
}

.job-toggle:hover {
  border-color: var(--ice);
}

.job-body {
  overflow: hidden;
  transition: opacity 0.2s;
}

.job.is-collapsed .job-body {
  display: none;
}

.job.is-hidden,
.resume-section.is-hidden {
  display: none !important;
}

.job.is-skill-lit {
  background: rgba(101, 238, 224, 0.06);
  box-shadow: inset 0 0 0 1px rgba(101, 238, 224, 0.35);
}

.section-focus {
  box-shadow: 0 0 0 1px rgba(101, 238, 224, 0.35), 0 0 28px rgba(101, 238, 224, 0.12);
  border-radius: var(--radius);
  transition: box-shadow 0.35s;
}

.ice-pulse {
  animation: icePulse 0.55s ease;
}

@keyframes icePulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

#spark-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 200;
}

.spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 8px var(--ice-bright);
  animation: sparkFly 0.65s ease-out forwards;
}

@keyframes sparkFly {
  to {
    transform: translate(var(--dx), var(--dy));
    opacity: 0;
  }
}

@media print {
  .resume-interactive,
  .job-toggle,
  #spark-layer,
  .resume-actions {
    display: none !important;
  }

  .job {
    padding-left: 0;
  }

  .job-body,
  .job.is-collapsed .job-body {
    display: block !important;
  }

  .job.is-hidden,
  .resume-section.is-hidden {
    display: block !important;
  }
}

.ask-submit.btn-primary {
  padding: 0.55rem 0.95rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  box-shadow: none;
}
.ask-submit.btn-primary::after { content: none; margin: 0; }

.resume-header .logo {
  pointer-events: none;
  cursor: default;
}
.nav-print {
  margin-left: 0.25rem;
}
.resume-page .site-footer,
.resume-page a[href="/"] {
  /* hide any leftover home links if present */
}


/* === Resume v6: sticky mini-nav, lab story, PDF, motion === */

.resume-mininav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 18, 22, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.mininav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  padding: 0.55rem 0;
  position: relative;
}

.mininav-brand {
  color: var(--text);
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: auto;
}

.mininav-inner > a {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.mininav-inner > a:hover,
.mininav-inner > a:focus-visible {
  color: var(--ice);
}

.mininav-inner > a.is-active {
  color: var(--ice);
  border-bottom-color: var(--ice);
}

.mininav-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(101, 238, 224, 0.12);
  pointer-events: none;
}

.mininav-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ice), var(--amber));
  transition: width 0.1s linear;
}

.mininav-inner > .btn-download-pdf {
  appearance: none;
  border: 1px solid var(--ice);
  background: rgba(101, 238, 224, 0.12);
  color: var(--ice);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
  cursor: pointer;
  margin-left: 0.35rem;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.mininav-inner > .btn-download-pdf:hover,
.mininav-inner > .btn-download-pdf:focus-visible {
  background: var(--ice);
  color: var(--ink);
  box-shadow: 0 0 18px rgba(101, 238, 224, 0.35);
  outline: none;
}

.filter-label {
  margin: 0;
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.filter-chips .chip[aria-pressed="true"] {
  color: var(--ink);
  background: var(--ice);
  border-color: var(--ice);
  box-shadow: 0 0 18px rgba(101, 238, 224, 0.35);
}

/* Lab story card */
.lab-story {
  background: var(--panel-light);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ice);
  padding: 1rem 1.1rem 1.15rem;
  margin: 0 0 1.15rem;
  border-radius: var(--radius);
  transition: box-shadow 0.35s;
}

.lab-story-title {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice);
  margin: 0 0 0.5rem;
}

.lab-story-intro {
  margin: 0 0 0.85rem;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
}

.lab-links {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.lab-links-label {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lab-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.55rem;
}

.lab-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.82rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.lab-link:hover,
.lab-link:focus-visible {
  color: var(--ice);
  border-color: var(--ice);
  transform: translateY(-1px);
}

.lab-link strong {
  color: var(--amber);
  font-size: 0.78rem;
}

.lab-steps {
  display: grid;
  gap: 0.45rem;
}

.lab-step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.lab-step > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  user-select: none;
}

.lab-step > summary::-webkit-details-marker {
  display: none;
}

.lab-step > summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  color: var(--ice);
  margin-right: 0.35rem;
}

.lab-step[open] > summary::before {
  content: "−";
}

.lab-step > p {
  margin: 0;
  padding: 0 0.85rem 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.lab-step[open] > p {
  animation: labStepIn 0.22s ease;
}

@keyframes labStepIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Soft job expand motion */
.job-body.job-body-anim {
  display: block !important;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, max-height 0.22s ease;
}

.job-body.job-body-anim.is-open,
.job:not(.is-collapsed) .job-body.job-body-anim {
  opacity: 1;
  max-height: 2000px;
}

.job.is-collapsed .job-body.job-body-anim {
  opacity: 0;
  max-height: 0;
}

.job-body.job-body-anim[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .lab-step[open] > p,
  .ask-flash,
  .ice-pulse,
  .spark,
  .job-body.job-body-anim,
  .mininav-bar {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .resume-mininav,
  .btn-download-pdf,
  .nav-print,
  .lab-step > summary::before {
    display: none !important;
  }

  .lab-story {
    border: 1px solid #ccc;
    border-left: 3px solid #0a5c52;
    background: #fff;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .lab-story-title {
    color: #0a5c52;
  }

  .lab-story-intro,
  .lab-step > p {
    color: #222;
  }

  .lab-step {
    border-color: #ddd;
    background: #fff;
  }

  .lab-step > summary {
    color: #8a4b00;
  }

  /* Force lab steps open for PDF */
  .lab-step > p {
    display: block !important;
  }
}

/* Keep every resume destination clear of the anchored section nav. */
#ask-demo,
#skills,
#ai-lab,
#experience,
#projects,
#education,
#certifications {
  scroll-margin-top: 3.5rem;
}

/* === Resume print normalization v12 === */
.project-links {
  margin: 0;
  padding-left: 1.1rem;
}

.project-links li {
  margin-bottom: 0.3rem;
}

.project-links a {
  color: var(--ice);
  text-decoration: none;
}

.project-links a:hover,
.project-links a:focus-visible {
  color: var(--ice-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.resume-summary-text {
  margin: 0;
  max-width: 72ch;
}

.resume-filter-ui {
  margin: 0 0 1.4rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-light);
}

@media print {
  @page {
    size: Letter;
    margin: 0.5in 0.58in;
  }

  html,
  body,
  body.resume-page {
    background: #fff !important;
    color: #111 !important;
  }

  body.resume-page {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 10.5pt;
    line-height: 1.35;
  }

  .resume-main {
    padding: 0 !important;
  }

  .resume-sheet {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  /* Web-only navigation, filters, Ask demo, and controls. */
  .resume-mininav,
  .resume-interactive,
  .resume-filter-ui,
  .btn-download-pdf,
  .mininav-progress,
  .job-toggle,
  .resume-actions,
  #spark-layer,
  .site-header,
  .site-footer,
  .nav-print {
    display: none !important;
  }

  /* Keep the lab narrative out of the conventional resume; projects remain below. */
  #ai-lab {
    display: none !important;
  }

  .resume-masthead {
    margin: 0 0 0.8rem;
    padding: 0 0 0.55rem;
    border-bottom: 2px solid #111 !important;
  }

  .resume-masthead h1 {
    margin: 0 0 0.15rem;
    color: #111 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 25pt;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.05;
  }

  .resume-contact,
  .resume-summary-text,
  .resume-skills,
  .job-org,
  .job-bullets,
  .edu-block,
  .cert-list,
  .project-links {
    color: #111 !important;
  }

  .resume-contact {
    font-size: 10pt;
  }

  .resume-section {
    margin-bottom: 0.95rem;
  }

  .resume-section > h2 {
    margin: 0 0 0.42rem;
    padding: 0 0 0.16rem;
    color: #111 !important;
    border-bottom: 1px solid #111 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11.5pt;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    page-break-after: avoid;
    break-after: avoid;
  }

  .resume-summary-text,
  .resume-skills {
    font-size: 10pt;
  }

  .job {
    margin-bottom: 0.72rem;
    padding-left: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .job-header,
  .job-title {
    page-break-after: avoid;
    break-after: avoid;
  }

  .job-header {
    margin-bottom: 0.08rem;
  }

  .job-org {
    font-size: 10.8pt;
  }

  .job-dates,
  .edu-dates {
    color: #333 !important;
    font-size: 8.7pt;
  }

  .job-title {
    margin-bottom: 0.22rem;
    color: #333 !important;
    font-size: 9.5pt;
    font-style: italic;
  }

  .job-body,
  .job.is-collapsed .job-body,
  .job-body.job-body-anim {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
  }

  .job-bullets {
    margin: 0;
    padding-left: 1.05rem;
  }

  .job-bullets li {
    margin-bottom: 0.12rem;
    font-size: 9.15pt;
  }

  .job-bullets li::marker,
  .cert-list li::marker {
    color: #111 !important;
  }

  .job.is-hidden,
  .resume-section.is-hidden {
    display: block !important;
  }

  .edu-block,
  .cert-list,
  .project-links {
    font-size: 9.5pt;
  }

  .edu-block {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .edu-block p {
    margin: 0.08rem 0;
  }

  .cert-list {
    margin-top: 0;
    padding-left: 1.05rem;
    columns: 1;
  }

  .cert-list li {
    margin-bottom: 0.12rem;
  }

  .project-links {
    margin-top: 0;
    padding-left: 1.05rem;
  }

  .project-links a {
    color: #111 !important;
    text-decoration: none !important;
  }

  a {
    color: #111 !important;
    text-decoration: none !important;
  }

  .resume-projects,
  #education,
  #certifications {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}


.contact-unlocked {
  display: inline;
}

.contact-unlocked[hidden] {
  display: none !important;
}

.contact-address {
  display: inline-block;
  margin-top: 0.2rem;
}

body.resume-unlocked .contact-unlocked {
  display: inline;
}

@media print {
  .contact-unlocked[hidden] {
    display: none !important;
  }

  body.resume-unlocked .contact-unlocked {
    display: inline !important;
  }

  .contact-address {
    display: block;
    margin-top: 0.1rem;
  }
}
