/* Resume Studio — theme tokens aligned with epickreations.com
   Bootstrap 5.3.3 (same version as the site) supplies layout, buttons and forms.
   This file only styles what Bootstrap has no component for. */

:root,
[data-bs-theme="light"] {
  --rs-bg: #ffffff;
  --rs-bg-2: #f8f9fa;
  --rs-card: #f8f9fa;
  --rs-card-hover: #f2f4f5;
  --rs-ink: #212529;
  --rs-ink-soft: #495057;
  --rs-ink-faint: #5c636a;
  --rs-line: #dee2e6;
  --rs-line-soft: #e9ecef;
  --rs-accent: #026179;
  --rs-accent-2: #013947;
  --rs-accent-deep: #024d60;
  --rs-accent-hover: #026179;
  --rs-accent-rgb: 2, 97, 121;
  --rs-border-hover: #ced4da;
  --rs-wash: rgba(2, 97, 121, 0.08);
  --rs-track: #e9ecef;
  --rs-nav: rgba(255, 255, 255, 0.82);
  --rs-nav-stuck: rgba(255, 255, 255, 0.96);
  --rs-foot: #f2f2f2;
  --rs-glow: rgba(2, 97, 121, 0.12);
  --bs-body-bg: var(--rs-bg);
  --bs-body-color: var(--rs-ink);
  --bs-border-color: var(--rs-line);
  --bs-emphasis-color: var(--rs-ink);
  --bs-secondary-color: var(--rs-ink-soft);
  --bs-link-color: var(--rs-accent);
  --bs-link-hover-color: var(--rs-accent-2);
  color-scheme: light;
}

[data-bs-theme="dark"] {
  --rs-bg: #0d0d0d;
  --rs-bg-2: #141414;
  --rs-card: #141414;
  --rs-card-hover: #171717;
  --rs-ink: #dee2e6;
  --rs-ink-soft: #b7c0c6;
  --rs-ink-faint: #8b949b;
  --rs-line: #2a2a2a;
  --rs-line-soft: #212121;
  --rs-accent: #de6902;
  --rs-accent-2: #fd8215;
  --rs-accent-deep: #884001;
  --rs-accent-hover: #a04f01;
  --rs-accent-rgb: 222, 105, 2;
  --rs-border-hover: #3a3a3a;
  --rs-wash: rgba(222, 105, 2, 0.12);
  --rs-track: #232323;
  --rs-nav: rgba(13, 13, 13, 0.8);
  --rs-nav-stuck: rgba(13, 13, 13, 0.95);
  --rs-foot: #080808;
  --rs-glow: rgba(253, 130, 21, 0.16);
  --bs-body-bg: var(--rs-bg);
  --bs-body-color: var(--rs-ink);
  --bs-border-color: var(--rs-line);
  --bs-emphasis-color: #ffffff;
  --bs-secondary-color: var(--rs-ink-soft);
  --bs-link-color: var(--rs-accent);
  --bs-link-hover-color: var(--rs-accent-2);
  color-scheme: dark;
}

/* 4pt spacing scale. Every margin and gap in the hero uses one of these, so its
   vertical rhythm is consistent instead of drifting a few pixels per block.
   Off-grid values that had crept in: 6, 20, 22, 26, 30, 40, 52, 44, 14, 11. */
:root {
  --rs-sp-1: 4px;
  --rs-sp-2: 8px;
  --rs-sp-3: 12px;
  --rs-sp-4: 16px;
  --rs-sp-5: 24px;
  --rs-sp-6: 32px;
  --rs-sp-7: 48px;
  --rs-sp-8: 64px;
}

/* iOS Safari still lets the viewport pan sideways when only <body> clips its
   overflow, so lock the horizontal axis on both elements. */
html {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  transition: background-color 260ms ease, color 260ms ease;
}

h1, h2, h3, h4 { font-weight: 200; }

a { color: var(--rs-accent); }

::selection { background: var(--rs-wash); }

/* ---------- buttons: Bootstrap proportions, site colours ---------- */
.btn { border-radius: .375rem; font-weight: 400; }

.btn-accent {
  --bs-btn-bg: var(--rs-accent-deep);
  --bs-btn-border-color: var(--rs-accent-2);
  --bs-btn-color: #fff;
  /* Hover darkens the fill instead of jumping to the bright accent: white on
     the dark-theme #de6902 was 3.43:1, under the 4.5:1 minimum. */
  --bs-btn-hover-bg: var(--rs-accent-hover);
  --bs-btn-hover-border-color: var(--rs-accent-hover);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--rs-accent);
  --bs-btn-active-border-color: var(--rs-accent);
}

.btn-outline-accent {
  --bs-btn-color: var(--rs-accent);
  --bs-btn-border-color: var(--rs-accent-2);
  --bs-btn-hover-bg: var(--rs-accent-deep);
  --bs-btn-hover-border-color: var(--rs-accent-2);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--rs-accent);
  --bs-btn-active-color: #fff;
}

/* ---------- nav ---------- */
.rs-nav {
  background: var(--rs-nav);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease, background 300ms ease;
  min-height: 64px;
}
.rs-nav.is-stuck { border-bottom-color: var(--rs-line); background: var(--rs-nav-stuck); }
.navbar-brand { color: var(--rs-ink); font-size: 15px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: .375rem;
  display: grid; place-items: center;
  background: var(--rs-accent-deep); border: 1px solid var(--rs-accent-2);
  color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .04em;
}
.navbar .nav-link {
  color: var(--rs-accent); font-size: 14px; font-weight: 300;
  padding: .5rem .75rem; border-radius: .375rem;
}
.navbar .nav-link:hover { color: var(--rs-accent-2); background: var(--rs-wash); }
.navbar .nav-link.active { color: var(--rs-accent-2); background: var(--rs-wash); font-weight: 400; }
.navbar-toggler { border-color: var(--rs-line); }

/* Desktop: a thin rule after Credentials, so the industry switch sits in the
   nav row as "Credentials | Resume by Industry Focus". */
@media (min-width: 992px) {
  .resume-type-nav { display: flex; align-items: center; }
  .resume-type-nav::before {
    content: ""; flex: 0 0 1px; width: 1px; height: 16px;
    background: var(--rs-ink-faint); opacity: .35; margin-left: .1rem;
  }
  .resume-type-trigger { padding-left: .6rem; }
}

/* 992–1199: the nav row now carries six links plus the action buttons, so
   shave a little padding to keep it on one line. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar .nav-link { padding-left: .55rem; padding-right: .55rem; }
}

/* Industry switcher: a plain nav link plus Bootstrap's caret, separated from
   Credentials by a thin rule — it reads as one more section, not a widget.
   Still a real HTML dropdown: iOS paints a native <select> white. */
.resume-type-trigger {
  background: transparent; border: 0; font-family: inherit;
  font-size: 14px; font-weight: 300; line-height: 1.65;
  white-space: nowrap; cursor: pointer;
}
.resume-type-trigger::after { margin-left: .4em; vertical-align: .12em; opacity: .7; }
.resume-type-trigger:hover::after,
.resume-type-trigger[aria-expanded="true"]::after { opacity: 1; }
.resume-type-trigger[aria-expanded="true"] { color: var(--rs-accent-2); background: var(--rs-wash); }

.resume-type-menu {
  --bs-dropdown-bg: var(--rs-bg-2);
  --bs-dropdown-border-color: var(--rs-line);
  --bs-dropdown-link-color: var(--rs-ink-soft);
  --bs-dropdown-link-hover-bg: var(--rs-wash);
  --bs-dropdown-link-hover-color: var(--rs-accent-2);
  --bs-dropdown-link-active-bg: var(--rs-wash);
  --bs-dropdown-link-active-color: var(--rs-accent-2);
  --bs-dropdown-header-color: var(--rs-ink-faint);
  min-width: 248px; padding: .35rem; border-radius: .5rem; z-index: 1060;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.resume-type-menu .dropdown-item { font-size: 12.5px; padding: .42rem .6rem; border-radius: .3rem; }
.resume-type-menu .dropdown-item.active { font-weight: 500; }
.resume-type-menu .dropdown-header {
  font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; padding: .4rem .6rem .3rem;
}

.theme-toggle {
  width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--rs-line); border-radius: .375rem;
  display: grid; place-items: center;
  color: var(--rs-ink-soft); background: transparent;
}
.theme-toggle:hover { color: var(--rs-accent); border-color: var(--rs-accent-2); }
.theme-toggle svg { width: 16px; height: 16px; display: none; }
.theme-toggle .i-moon { display: block; }
[data-bs-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-bs-theme="dark"] .theme-toggle .i-moon { display: none; }

.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 1050; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--rs-accent-deep), var(--rs-accent) 45%, var(--rs-accent-2));
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  padding: 150px 0 90px;
}
.hero-glow {
  position: absolute; z-index: 0; width: 900px; height: 900px; border-radius: 50%;
  right: -260px; top: -320px;
  background: radial-gradient(circle at 42% 42%, var(--rs-glow), transparent 68%);
  filter: blur(8px);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-70px, 60px, 0) scale(1.09); }
}
.hero > .container-xxl { position: relative; z-index: 1; }

.eyebrow {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rs-accent); display: flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; flex: 0 0 22px; height: 1px; background: var(--rs-accent); opacity: .7; }
.eyebrow-avail { margin-bottom: var(--rs-sp-2); }

/* The status line: a fact about him, so it takes the same small-caps label as the
   facts strip instead of shouting in a second eyebrow. */
.hero-status {
  margin: 0; display: flex; flex-wrap: wrap; align-items: baseline;
  gap: var(--rs-sp-1) var(--rs-sp-3);
  font-size: 13px; line-height: 1.5; color: var(--rs-ink-soft);
}
.status-key {
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--rs-ink-faint);
}

/* The recruiter link's context line: prepared for whom, and how long it lasts. */
.eyebrow-meta {
  margin: var(--rs-sp-2) 0 0; padding-left: 31px;
  font-size: 10.5px; letter-spacing: .08em; color: var(--rs-ink-faint);
}

.hero-name {
  margin: var(--rs-sp-5) 0 0;
  font-size: clamp(3rem, 9vw, 7.2rem);
  line-height: .96; letter-spacing: -.03em; color: var(--rs-ink);
}
.hero-name span { display: block; }
.hero-name em { display: block; font-style: normal; color: var(--rs-accent-2); margin-left: clamp(0px, 8vw, 110px); }
/* Light theme: mid-grey first name, brand-blue surname. Near-black ink reads
   as one heavy block at display size and buries the blue. */
[data-bs-theme="light"] .hero-name span { color: var(--rs-ink-soft); }
[data-bs-theme="light"] .hero-name em { color: var(--rs-accent); }

.hero-roles {
  margin-top: var(--rs-sp-5); font-size: 12px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--rs-ink-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 0;
}
/* The separator belongs to the term after it, so a narrow screen wraps whole
   terms instead of leaving a dot hanging at the end of a line. */
.hero-roles span + span::before { content: "·"; margin: 0 var(--rs-sp-3); color: var(--rs-accent); opacity: .8; }

/* Cutting-edge keyword block on a tailored resume: plain text an ATS can parse. */
.competencies { margin-top: 26px; }
.competencies-title {
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rs-ink-faint); margin-bottom: 10px;
}
.competencies-list { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.competencies-list li { font-size: 13.5px; color: var(--rs-ink-soft); }
.competencies-list li::before { content: '·'; color: var(--rs-accent); margin-right: 8px; }

/* Tailored fit blocks: the posting phrase first, the proof underneath. */
.fit-block { margin-top: 30px; }
.fit-highlights { display: grid; gap: 14px; }
.fit-highlights li {
  padding-left: 14px; border-left: 2px solid var(--rs-line);
}
.fit-phrase {
  display: inline-block; margin-bottom: 4px; font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--rs-accent-2);
}
.fit-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--rs-ink-soft); }
.fit-source { display: block; margin-top: 4px; font-size: 12px; color: var(--rs-ink-faint); }
.fit-transfer { display: grid; gap: 12px; }
.fit-transfer li { display: grid; gap: 2px; }
.fit-need { font-size: 13.5px; color: var(--rs-ink); }
.fit-need::before { content: '→'; color: var(--rs-accent); margin-right: 8px; }
.fit-proof { font-size: 13px; line-height: 1.5; color: var(--rs-ink-soft); }
.fit-proof em { font-style: normal; color: var(--rs-ink-faint); }

.hero-lede { margin-top: var(--rs-sp-5); max-width: 46ch; font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--rs-ink-soft); }

/* Tablet and desktop: let the intro run to 75% of the hero, but stop growing at 80ch so wide screens stay readable. Phones keep the 46ch measure. */
@media (min-width: 768px) {
  .hero-lede { width: 75%; max-width: 80ch; }
}

/* One rule only, under the stats: it closes the scan block (name, keywords,
   lede, numbers) and the labelled facts hang off it. A rule above as well
   bracketed the numbers and made the hero read as stacked boxes. */
.hero-stats {
  margin-top: var(--rs-sp-7); display: flex; flex-wrap: wrap;
  gap: clamp(var(--rs-sp-5), 5vw, var(--rs-sp-8));
  padding: 0 0 var(--rs-sp-5); max-width: 720px;
  border-bottom: 1px solid var(--rs-line);
}
.stat { display: flex; flex-direction: column; gap: var(--rs-sp-1); }
.stat-num { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1; letter-spacing: -.03em; color: var(--rs-ink); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--rs-ink-faint); }

/* Location, relocation, working arrangement and authorisation: one labelled
   strip under the stats. Stacked above the name it was five lines of small caps
   on a phone and it buried the name itself; unlabelled under the stats it read
   as text dropped there. Job boards print this as a meta row of labelled facts.
   It sits directly under the stats' closing rule, with no rule of its own, so
   the facts read as part of the same block. No dot separators: a dot that wraps
   lands as a stray bullet. */
.hero-logistics {
  margin: var(--rs-sp-6) 0 0; padding: 0; list-style: none;
  display: grid; gap: var(--rs-sp-2); max-width: 720px;
  font-size: 12.5px; line-height: 1.5;
}
.hero-logistics li { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: var(--rs-sp-3); align-items: baseline; }
.logistics-key {
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--rs-ink-faint);
}
.logistics-val { color: var(--rs-ink-soft); }
/* Wide screens fit two pairs per row. Not one long inline row: a mixed-length
   relocation list wrapped into a ragged three lines there. */
@media (min-width: 992px) {
  .hero-logistics { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--rs-sp-7); row-gap: var(--rs-sp-2); }
  .hero-logistics li { grid-template-columns: 104px minmax(0, 1fr); }
}

/* Version switcher: it sits below the stats and the facts strip, not between
   the lede and the stats. It is a control, not a fact, so the scan block (name,
   keywords, lede, stats, logistics) stays unbroken and the hairline closes it.
   Named as an instruction rather than a label, because "focus" alone did not
   tell anyone the page changes. Chips wrap instead of scrolling so every
   version is visible on a phone. */
.lens-block { margin-top: var(--rs-sp-7); }
.lens-prompt {
  margin: 0 0 var(--rs-sp-3); font-size: 12.5px; line-height: 1.5; color: var(--rs-ink-soft);
}
.lens-row {
  display: flex; align-items: center; gap: var(--rs-sp-2); flex-wrap: wrap; padding-bottom: var(--rs-sp-1);
}
.lens-hint { margin: var(--rs-sp-3) 0 0; font-size: 12px; line-height: 1.5; color: var(--rs-ink-faint); }
.lens-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; padding: 7px 14px;
  border: 1px solid var(--rs-line); border-radius: 999px;
  color: var(--rs-ink-soft); text-decoration: none;
  font-size: 12.5px; line-height: 1.25; white-space: nowrap;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}
.lens-chip:hover { border-color: var(--rs-accent-2); color: var(--rs-accent); }
.lens-chip:focus-visible { outline: 2px solid var(--rs-accent); outline-offset: 2px; }
.lens-chip.is-active {
  background: var(--rs-accent-deep); border-color: var(--rs-accent-2); color: #fff;
}
/* Timeline is the full-history option, not another role: set it apart a little. */
.lens-chip--timeline { margin-left: var(--rs-sp-2); border-style: dashed; }

.hero-contact { margin-top: var(--rs-sp-5); display: flex; flex-wrap: wrap; gap: var(--rs-sp-2); font-size: 13.5px; }
.hero-contact a {
  text-decoration: none; color: var(--rs-accent); padding: 7px 13px;
  min-height: 36px; display: inline-flex; align-items: center;
  border: 1px solid var(--rs-accent-2); border-radius: .375rem;
  transition: background 180ms, color 180ms;
}
.hero-contact a:hover { background: var(--rs-accent-deep); color: #fff; }

/* Hero actions: email and the PDF lead (what a recruiter does), share trails
   them quietly. The confirmation is read out from the status span beside it. */
.hero-actions { margin-top: var(--rs-sp-5); display: flex; align-items: center; flex-wrap: wrap; gap: var(--rs-sp-4); }

/* WCAG 2.2 target size: the split-arrow button is only ~18px wide by default. */
.rs-nav .dropdown-toggle-split { min-width: 34px; min-height: 24px; }
/* Share is the owner's action, not the visitor's: a quiet text button beside the
   two they actually use, so it does not compete for the hero's one filled slot. */
.btn-ghost {
  display: inline-flex; align-items: center; gap: var(--rs-sp-2);
  padding: var(--rs-sp-2) var(--rs-sp-1); background: none; border: 0;
  font-size: 13px; color: var(--rs-ink-soft);
  text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: var(--rs-line); text-underline-offset: 4px;
}
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--rs-accent); text-decoration-color: currentColor; background: none; }
.btn-ghost:focus-visible { outline: 2px solid var(--rs-accent); outline-offset: 3px; border-radius: var(--rs-sp-1); }
.btn-ghost svg { width: 15px; height: 15px; flex: 0 0 auto; }
/* Kept in the accessibility tree when empty: a live region that is
   display:none at load can be missed when its text arrives. */
.share-note { font-size: 12.5px; color: var(--rs-ink-faint); }

/* ---------- sections ---------- */
.rs-section { padding: clamp(72px, 11vw, 132px) 0; }
.rs-section + .rs-section { border-top: 1px solid var(--rs-line-soft); }
.section-head { margin-bottom: clamp(34px, 5vw, 58px); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.025em; color: var(--rs-ink); }
.section-index { display: block; font-size: 11px; letter-spacing: .16em; color: var(--rs-accent); margin-bottom: 12px; }
.section-sub { margin-top: 14px; max-width: 54ch; color: var(--rs-ink-soft); font-size: 15px; }

.profile-lede { font-size: clamp(1.12rem, 2vw, 1.5rem); line-height: 1.6; color: var(--rs-ink); }

/* Timeline: a progression story, so it reads as running text rather than one
   oversized paragraph. */
.profile-story { max-width: 64ch; font-size: 1.02rem; line-height: 1.72; color: var(--rs-ink-soft); }
.profile-story + .profile-story { margin-top: 1.05em; }

.section-note { margin-top: 12px; font-size: 12.5px; letter-spacing: .02em; color: var(--rs-ink-faint); }

.profile-aside { border-left: 2px solid var(--rs-accent-2); padding: 4px 0 4px 22px; }
.profile-aside h3 { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--rs-ink-faint); margin-bottom: 12px; }
.profile-aside li { font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--rs-line-soft); color: var(--rs-ink-soft); }
.profile-aside li:last-child { border-bottom: 0; }

.legend {
  display: flex; flex-wrap: wrap; gap: 10px 26px; padding-bottom: 26px; margin-bottom: 30px;
  border-bottom: 1px solid var(--rs-line-soft); font-size: 12.5px; color: var(--rs-ink-faint);
}
.legend b { color: var(--rs-ink); font-weight: 500; margin-right: 5px; }

/* ---------- skill cards / accordion ---------- */
.skill-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px; align-items: start;
}
.skill-card {
  background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: .375rem;
  transition: border-color 300ms, background 300ms;
}
.skill-card:hover { border-color: var(--rs-border-hover); background: var(--rs-card-hover); }
.skill-card-heading { margin: 0; }
.skill-card-toggle {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 17px 20px; background: transparent; border: 0;
  border-bottom: 1px solid var(--rs-line-soft);
  border-radius: .375rem .375rem 0 0; cursor: pointer; text-align: left;
  color: var(--rs-ink); font-family: inherit;
}
.skill-card-toggle:hover { background: var(--rs-wash); }
.skill-card-toggle:focus-visible { outline: 2px solid var(--rs-accent); outline-offset: -2px; }
.skill-card-title { flex: 1; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--rs-accent); font-weight: 500; }
.skill-card-count { font-size: 10.5px; color: var(--rs-ink-faint); font-variant-numeric: tabular-nums; }
.skill-card-chevron {
  width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.5px solid var(--rs-ink-faint); border-bottom: 1.5px solid var(--rs-ink-faint);
  transform: rotate(45deg); transition: transform 260ms, margin 260ms;
}
.skill-card.is-open .skill-card-chevron { transform: rotate(225deg); margin-top: 3px; }
.skill-card-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 300ms ease; }
.skill-card-inner { overflow: hidden; min-height: 0; padding: 0; }
.skill-card-inner .skill-list { padding: 6px 20px 12px; }
html.js .skill-card:not(.is-open) .skill-card-body { grid-template-rows: 0fr; }

.skill { padding: 10px 0; }
.skill + .skill { border-top: 1px solid var(--rs-line-soft); }
.skill-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.skill-name { font-size: 13.5px; color: var(--rs-ink); }
.skill-level { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--rs-ink-faint); white-space: nowrap; }
.skill-card:hover .skill-level { color: var(--rs-accent); }
.skill-toolkit { margin: 0; padding: 14px 20px 16px; font-size: 13px; line-height: 1.9; color: var(--rs-ink-soft); }

/* Level-coded meter: one hue in four strengths, so the ladder reads the same
   in dark and light mode. Width fills when the card scrolls into view. */
.skill .track { margin-top: 8px; }
.track { height: 4px; border-radius: 2px; background: var(--rs-track); overflow: hidden; }
.fill {
  display: block; height: 100%; width: 0; border-radius: 2px;
  background: rgba(var(--rs-accent-rgb), .3);
  transition: width 900ms cubic-bezier(.22, 1, .36, 1), background-color 260ms ease;
  transition-delay: calc(var(--i, 0) * 45ms), 0s;
}
.skill--l1 .fill { background: rgba(var(--rs-accent-rgb), .3); }
.skill--l2 .fill { background: rgba(var(--rs-accent-rgb), .52); }
.skill--l3 .fill { background: rgba(var(--rs-accent-rgb), .74); }
.skill--l4 .fill {
  background: linear-gradient(90deg, var(--rs-accent-deep), var(--rs-accent) 55%, var(--rs-accent-2));
}

/* ---------- per-job selected projects ---------- */
.job-projects { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--rs-line); }
.job-projects-title {
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rs-ink-faint); margin-bottom: 9px;
}
.job-project-list { display: flex; flex-wrap: wrap; gap: 8px; }
.job-project {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--rs-line); border-radius: 999px;
  background: var(--rs-card); font-size: 12.5px; line-height: 1.4;
  color: var(--rs-ink-soft); text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}
.job-project:hover { border-color: var(--rs-accent-2); color: var(--rs-accent); background: var(--rs-card-hover); }
.job-project:focus-visible { outline: 2px solid var(--rs-accent); outline-offset: 2px; }
.job-project-arrow { color: var(--rs-accent); font-size: 11px; }

/* ---------- additional skills ---------- */
.skill-more { grid-column: 1 / -1; }
.skill-more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px; padding: 14px 20px 16px; }
.skill-more-title {
  font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--rs-accent);
  font-weight: 500; padding: 12px 0 6px; border-bottom: 1px solid var(--rs-line-soft);
}
.skill-more-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 6px 0; font-size: 12.5px; color: var(--rs-ink-soft); border-bottom: 1px solid var(--rs-line-soft);
}
.skill-more-list li:last-child { border-bottom: 0; }
.skill-more-list em { font-style: normal; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--rs-ink-faint); white-space: nowrap; }

/* ---------- timeline ---------- */
.job { display: grid; grid-template-columns: 168px 1fr; gap: clamp(20px, 4vw, 48px); padding: 34px 0; border-top: 1px solid var(--rs-line-soft); }
.job:first-child { border-top: 0; padding-top: 0; }
.job-side { display: flex; flex-direction: column; gap: 4px; padding-top: 7px; }
.job-dates { font-size: 11.5px; letter-spacing: .06em; color: var(--rs-accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.job-loc { font-size: 11px; color: var(--rs-ink-faint); }
.job-arrangement { font-size: 11px; color: var(--rs-accent-2); }
.job-title { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.25; letter-spacing: -.015em; color: var(--rs-ink); }
.job-company { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--rs-accent); }
.job-summary { margin-top: 12px; max-width: 66ch; font-size: 14.5px; color: var(--rs-ink-soft); }
/* A real disc marker, not a painted dot: it survives print, where browsers
   drop background graphics. */
.job-bullets { margin-top: 15px; padding-left: 20px; max-width: 70ch; }
.job-bullets li { font-size: 13.8px; color: var(--rs-ink-soft); }
.job-bullets li + li { margin-top: 9px; }
.job-bullets li::marker { color: var(--rs-accent); font-size: 1em; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chip {
  font-size: 10.5px; letter-spacing: .06em; padding: 4px 9px; border-radius: .25rem;
  background: var(--rs-wash); color: var(--rs-accent); border: 1px solid var(--rs-accent-2);
}

/* ---------- additional experience ---------- */
.addl-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--rs-line); border: 1px solid var(--rs-line); border-radius: .375rem; overflow: hidden; }
.addl { background: var(--rs-card); padding: 20px 22px; }
.addl:hover { background: var(--rs-card-hover); }
.addl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.addl-title { font-size: 13.5px; font-weight: 500; color: var(--rs-ink); }
.addl-dates { font-size: 10.5px; color: var(--rs-ink-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.addl-org { margin-top: 4px; font-size: 12.5px; color: var(--rs-accent); }
.addl-note { margin-top: 8px; font-size: 12.5px; color: var(--rs-ink-soft); }

/* ---------- credentials ---------- */
.cred-col-title {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--rs-ink-faint);
  padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--rs-line); font-weight: 500;
}
.cred-col-title--spaced { margin-top: 44px; }
.cert { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--rs-line-soft); }
.cert:last-child { border-bottom: 0; }
.cert-date { font-size: 11px; color: var(--rs-accent); min-width: 64px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.cert-name { font-size: 14px; font-weight: 400; color: var(--rs-ink); }
.cert-issuer { margin-top: 3px; font-size: 12.5px; color: var(--rs-ink-soft); }
.cert-detail { margin-top: 6px; font-size: 12px; color: var(--rs-ink-faint); }
.edu { padding: 16px 0; border-bottom: 1px solid var(--rs-line-soft); }
.edu:last-child { border-bottom: 0; }
.edu h4 { margin-top: 5px; font-size: 14px; font-weight: 400; color: var(--rs-ink); }
.edu p { margin-top: 2px; font-size: 12.5px; color: var(--rs-ink-soft); }
.edu-date { font-size: 11px; color: var(--rs-accent); }
.affil-list li { padding: 12px 0; border-bottom: 1px solid var(--rs-line-soft); }
.affil-list li:last-child { border-bottom: 0; }
.affil-list span { font-size: 12.5px; font-weight: 500; }
.affil-list p { margin-top: 3px; font-size: 12.5px; color: var(--rs-ink-soft); }

/* ---------- footer ---------- */
.rs-foot { background: var(--rs-foot); border-top: 1px solid var(--rs-line); padding: 56px 0; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.foot-main { display: flex; flex-direction: column; gap: 16px; }
.foot-name { font-size: 1.5rem; letter-spacing: -.02em; display: flex; flex-direction: column; gap: 5px; }
.foot-name span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--rs-ink-faint); }
/* Two left-aligned lines under the name: the contact pair, then the places
   that leave the page. */
.foot-contact { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; line-height: 1.5; }
.foot-contact p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.foot-contact a { text-decoration: none; color: var(--rs-accent); }
.foot-contact a:hover { color: var(--rs-accent-2); }
.foot-contact a + a::before { content: "·"; margin-right: 10px; color: var(--rs-ink-faint); }
.foot-cta { align-self: center; }
.foot-note { margin: 26px 0 0; font-size: 12px; letter-spacing: .02em; color: var(--rs-ink-faint); }
.foot-note em { font-style: normal; color: var(--rs-accent); }
.foot-main-link { margin: 8px 0 0; font-size: 13.5px; }
.foot-main-link a { color: var(--rs-accent); text-decoration: none; }
.foot-main-link a:hover { color: var(--rs-accent-2); }

/* ---------- back to top ----------
   Small and quiet until it is needed: it fades in after roughly one screen of
   scrolling and sits in the corner away from the content. */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 1035;
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--rs-line);
  background: var(--rs-card); color: var(--rs-ink-soft);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  cursor: pointer;
}
.to-top.is-on { opacity: .92; visibility: visible; transform: none; }
.to-top:hover { color: var(--rs-accent); border-color: var(--rs-accent); opacity: 1; }
.to-top:focus-visible { outline: 2px solid var(--rs-accent); outline-offset: 3px; }
.to-top svg { width: 18px; height: 18px; }
@media (max-width: 575.98px) {
  .to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}

/* ---------- reveal ---------- */
html.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 720ms cubic-bezier(.22, 1, .36, 1), transform 720ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--i, 0) * 55ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* A repeat view in the same tab (another lens, or back/forward) comes from the
   browser cache, so the entrance stagger only adds waiting. */
html.js.rs-repeat [data-reveal] { opacity: 1; transform: none; transition: none; }
html.rs-repeat .fill { transition: none !important; }

@media (max-width: 991px) {
  .job { grid-template-columns: 1fr; gap: 10px; }
  .job-side { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 0; }
  .hero { padding-top: 120px; }
  .resume-type-nav { width: 100%; }
  .resume-type-trigger { width: 100%; text-align: left; }
  .resume-type-menu { min-width: 0; width: 100%; }
  /* The industry list opens inside the collapsed panel; keep the panel
     scrollable instead of letting it fill the whole phone screen. */
  .rs-nav .navbar-collapse { max-height: calc(100svh - 76px); overflow-y: auto; overscroll-behavior: contain; }
}

@media (max-width: 560px) {
  .hero-name em { margin-left: 0; }
  /* Terms wrap here; drop the separators rather than leave one stranded at
     the start or end of a line. */
  .hero-roles { gap: 2px 12px; }
  .hero-roles span + span::before { content: none; }
  .skill-grid { grid-template-columns: 1fr; }
  .addl-list { grid-template-columns: 1fr; }
  #printBtn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .fill { width: var(--pct) !important; transition: none !important; }
}

/* ---------- print ---------- */
/* Section ids sit on the heading line, so a jump lands with the number and
   title 84px from the top: the 64px navbar plus 20px of air. The JS scroll
   handler uses the same offset. */
html { scroll-padding-top: 84px; }

@media print {
  :root, [data-bs-theme="light"], [data-bs-theme="dark"] {
    --rs-bg: #fff; --rs-ink: #111; --rs-ink-soft: #222; --rs-ink-faint: #444;
    --rs-line: #ddd; --rs-line-soft: #e5e5e5; --rs-card: #fff; --rs-accent: #333;
    --rs-accent-2: #111; --rs-accent-deep: #444; --rs-wash: #f2f2f2; --rs-track: #e5e5e5;
    color-scheme: light;
  }
  @page { margin: 13mm 12mm; }

  /* Everything on screen that exists to be clicked rather than read. Project
     chips say "view project"; the meters are pictures of a level; the legend
     explains a meter that is no longer printed. */
  .rs-nav, .scroll-progress, .hero-glow, .rs-foot, .resume-type-nav, .resume-type-menu,
  .theme-toggle, #printBtn, .lens-block, .lens-row, .hero-actions, .to-top,
  .share-note, .legend, .skill-card-chevron, .skill-card-count,
  .job-projects, .chips, .section-index { display: none !important; }

  /* Screen type is fluid and airy: 9vw of a 1280px viewport is a 115px name,
     body copy runs at 1.65, and sections breathe on 132px of padding. None of
     that survives the move to 794px of paper — it printed 17 pages. Fixed point
     sizes and a printed rhythm instead. */
  body { background: #fff; color: #111; font-size: 9pt; line-height: 1.32; }
  .hero { min-height: auto; padding: 0 0 6pt; }
  .hero-name { font-size: 20pt; font-weight: 600; line-height: 1.05; }
  .hero-name span, .hero-name em { color: #111 !important; margin-left: 0; }
  .hero-lede { font-size: 9.5pt; line-height: 1.38; margin: 4pt 0 0; max-width: none; }
  .hero-status { margin: 3pt 0 0; font-size: 8pt; }
  .hero-stats { margin: 6pt 0 0; gap: 12pt; }
  .stat-num { font-size: 13pt; }
  .stat-label { font-size: 7pt; }
  /* Five key/value pairs become one wrapped line, not a three-row table. */
  .hero-logistics { display: flex; flex-wrap: wrap; gap: 1pt 12pt; margin: 5pt 0 0; max-width: none; font-size: 7.5pt; }
  .hero-logistics li { display: inline-flex; gap: 3pt; grid-template-columns: none; }
  .logistics-key { font-size: 6.5pt; }
  .hero-contact { margin-top: 4pt; font-size: 8pt; }

  .rs-section { padding: 6pt 0; }
  .section-head { margin-bottom: 4pt; break-after: avoid; }
  .section-head h2 { font-size: 15pt; line-height: 1.1; letter-spacing: -.01em; }
  .section-sub { font-size: 8.5pt; line-height: 1.35; margin-top: 2pt; max-width: none; }
  .profile-lede { font-size: 9pt; line-height: 1.4; }

  /* One role can be taller than a page. Forbidding a break inside it filled the
     paper with white space; letting it split while its heading stays with the
     first lines is what keeps the flow readable. */
  .job { break-inside: auto; padding: 0 0 6pt; gap: 8pt; grid-template-columns: 82px minmax(0, 1fr); }
  .job + .job { padding-top: 6pt; }
  .job-side { padding-top: 0; gap: 0; }
  .job-dates, .job-loc { font-size: 7pt; line-height: 1.35; }
  .job-title { font-size: 10.5pt; line-height: 1.2; }
  .job-head, .job-title, .job-meta, .job-company { break-after: avoid; }
  .job-company { font-size: 8.5pt; }
  .job-summary { font-size: 8.5pt; line-height: 1.35; margin: 2pt 0 0; }
  .job-bullets, .bullets { font-size: 8.5pt; line-height: 1.3; margin: 2pt 0 0; padding-left: 11pt; }
  .job-bullets li, .bullets li { margin: 0 0 .5pt; }

  .card { box-shadow: none !important; background: #fff !important; border-color: #ddd; }
  .skill-grid { gap: 6pt; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .skill-card { break-inside: auto; }
  .skill-card-body { grid-template-rows: 1fr !important; }
  .skill-card-toggle { padding: 3pt 5pt; border-bottom-color: #ddd; }
  .skill-card-title { font-size: 7pt; letter-spacing: .1em; }
  .skill-card-inner .skill-list { padding: 2pt 5pt 3pt; }
  .skill { padding: 1pt 0; }
  .skill + .skill { border-top: 0; }
  .skill-head { gap: 4pt; }
  .skill-name { font-size: 7.8pt; line-height: 1.3; }
  .skill-level { font-size: 5.8pt; }
  .track { display: none; }
  .skill-toolkit { padding: 2pt 5pt; font-size: 7pt; line-height: 1.35; }

  .cred, .edu, .addl { break-inside: avoid; padding: 3pt 0; }
  .cred-title, .edu-title { font-size: 9pt; }

  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .fill { width: var(--pct) !important; background: #444 !important; transition: none !important; }
  a { color: #111; text-decoration: none; }
  /* Paper details: the name is two screen lines (a block span), the contact
     chips are buttons. On paper it is one name and one line of contacts. */
  .hero-name span, .hero-name em { display: inline; }
  .hero-contact { gap: 0; }
  .hero-contact a, .hero-contact span { border: 0; padding: 0; color: #111; background: none; }
  .hero-contact a + a::before, .hero-contact span + a::before { content: " · "; color: #666; }
  .rs-section + .rs-section { border-top-color: #e2e2e2; }
}
