/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* color */
  --bg-base: #0a0d10;
  --bg-surface: #12161b;
  --bg-surface-2: #181d24;
  --border: #232932;
  --border-soft: #1a1f26;

  --text-primary: #e8eaed;
  --text-secondary: #a7afb9;
  --text-muted: #687078;

  --accent-amber: #e2a94c;
  --accent-amber-dim: rgba(226, 169, 76, 0.13);
  --accent-teal: #4fbdae;
  --accent-teal-dim: rgba(79, 189, 174, 0.13);

  --danger: #d9695f;

  /* type */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* layout */
  --sidebar-w: 300px;
  --content-max: 760px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --gap-section: clamp(2.5rem, 5vw, 4rem);

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.02) inset, 0 8px 24px rgba(0, 0, 0, 0.25);
}

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

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

body,
h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ============================================================
   BASE
   ============================================================ */
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(226, 169, 76, 0.05), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(79, 189, 174, 0.04), transparent 60%);
  background-attachment: fixed;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-amber);
  color: #1a1206;
  padding: 0.6rem 1rem;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 100vh;
}

.content {
  padding: 3.25rem clamp(1.25rem, 4vw, 3.5rem) 5rem;
  min-width: 0;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  border-right: 1px solid var(--border-soft);
  padding: 2.75rem 1.75rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  scrollbar-width: thin;
}

.profile-photo-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
}

.profile-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  position: relative;
  z-index: 1;
}

.profile-photo-wrap img.loaded {
  opacity: 1;
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--accent-amber);
  background:
    linear-gradient(155deg, var(--accent-amber-dim), transparent 60%),
    var(--bg-surface-2);
}

.identity h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.identity .headline {
  margin-top: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-teal);
  margin-top: 0.95rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-teal);
  position: relative;
  flex-shrink: 0;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--accent-teal);
  animation: pulse-ring 2.4s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

.status-line.unavailable {
  color: var(--text-muted);
}
.status-line.unavailable .status-dot,
.status-line.unavailable .status-dot::after {
  background: var(--text-muted);
  border-color: var(--text-muted);
  animation: none;
}

.meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.82rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border-soft);
}

.meta-list .meta-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--text-secondary);
}

.meta-list .meta-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  width: 4.2rem;
  flex-shrink: 0;
}

.meta-list a:hover {
  color: var(--accent-amber);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0.36rem 0.6rem;
  border-radius: 999px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.social-links a:hover {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.social-links svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.sidebar-badges {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border-soft);
}

.sidebar-badges .badge-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.sidebar-badges .badge-row::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-amber);
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.print-btn {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.print-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-teal);
}

/* ============================================================
   SECTION NAV (scrollspy)
   ============================================================ */
.section-nav {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.85rem;
  margin-bottom: var(--gap-section);
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  scrollbar-width: none;
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  white-space: nowrap;
  color: var(--text-muted);
  padding-bottom: 0.85rem;
  margin-bottom: -0.95rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease;
}

.section-nav a:hover {
  color: var(--text-secondary);
}

.section-nav a.active {
  color: var(--accent-amber);
  border-bottom-color: var(--accent-amber);
}

/* ============================================================
   SECTION GENERIC
   ============================================================ */
.section {
  margin-bottom: var(--gap-section);
  scroll-margin-top: 1.5rem;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 1.1rem;
}

.section-eyebrow::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}

/* ============================================================
   ABOUT
   ============================================================ */
.summary-text {
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: var(--content-max);
  line-height: 1.75;
}

.domain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.domain-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-amber);
  background: var(--accent-amber-dim);
  border: 1px solid rgba(226, 169, 76, 0.25);
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
}

.approach-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.approach-row span {
  display: flex;
  align-items: center;
}

.approach-row span:not(:last-child)::after {
  content: "→";
  margin: 0 0.6rem;
  color: var(--border);
}

/* ============================================================
   EXPERIENCE TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 1.6rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.1rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 1px solid var(--text-muted);
}

.timeline-item.current::before {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px var(--accent-teal-dim);
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
}

.timeline-company {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.timeline-company a:hover {
  color: var(--accent-amber);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.timeline-domain {
  display: inline-block;
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-teal);
  background: var(--accent-teal-dim);
  border: 1px solid rgba(79, 189, 174, 0.25);
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
}

.timeline-list {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-list li {
  position: relative;
  padding-left: 1.05rem;
  color: var(--text-secondary);
  font-size: 0.91rem;
  line-height: 1.6;
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-surface-2);
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-media img.loaded {
  opacity: 1;
}

.project-media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.4rem;
  background:
    repeating-linear-gradient(135deg, var(--bg-surface-2) 0 2px, transparent 2px 14px);
}

.project-media-fallback .glyph {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-base);
  border: 1px solid var(--border);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
}

.project-body {
  padding: 1.2rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}

.project-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}

.project-tagline {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.confidential-tag {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
}

.project-type {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.87rem;
  line-height: 1.6;
}

.project-toggle {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-teal);
  align-self: flex-start;
}

.project-toggle:hover {
  color: var(--accent-amber);
}

.project-highlights {
  display: none;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.3rem;
  border-top: 1px solid var(--border-soft);
}

.project-highlights.open {
  display: flex;
}

.project-highlights li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.55;
}

.project-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 4px;
  height: 4px;
  background: var(--accent-amber);
  border-radius: 50%;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.tech-tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 2rem;
}

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-tags span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.skill-tags span:hover {
  border-color: var(--accent-amber);
  color: var(--text-primary);
}

/* ============================================================
   EDUCATION / CERTS / LANGUAGES
   ============================================================ */
.record-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.record-row:first-child {
  padding-top: 0;
}

.record-row:last-child {
  border-bottom: none;
}

.record-main .record-title {
  font-weight: 500;
  font-size: 0.95rem;
}

.record-main a.record-title:hover {
  color: var(--accent-amber);
}

.record-main .record-sub {
  color: var(--text-secondary);
  font-size: 0.84rem;
  margin-top: 0.15rem;
}

.record-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: right;
}

.lang-bar-track {
  width: 110px;
  height: 4px;
  background: var(--bg-surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.4rem;
}

.lang-bar-fill {
  height: 100%;
  background: var(--accent-teal);
  border-radius: 999px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent-amber);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  z-index: 50;
}

#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#backToTop:hover {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 1.75rem clamp(1.25rem, 4vw, 3.5rem);
    gap: 1.25rem 1.75rem;
  }

  .identity {
    flex: 1;
    min-width: 200px;
  }

  .meta-list,
  .social-links,
  .sidebar-badges,
  .print-btn {
    flex-basis: 100%;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }

  .meta-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    border-top: 1px solid var(--border-soft);
    padding-top: 1.1rem;
  }

  .print-btn {
    margin-top: 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .content {
    padding-top: 2.25rem;
  }

  .timeline-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .record-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .record-meta {
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
  }
}

/* ============================================================
   MOTION & PRINT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  @page {
    margin: 0.6in 0.7in;
  }

  /* Flip the whole palette to a plain, ink-friendly scheme. Almost every
     color in this file reads from these custom properties, so overriding
     them here is what turns the dark dashboard into a light document. */
  :root {
    --bg-base: #ffffff;
    --bg-surface: #ffffff;
    --bg-surface-2: #ffffff;
    --border: #cfd3d8;
    --border-soft: #e3e6e9;
    --text-primary: #15181c;
    --text-secondary: #383d44;
    --text-muted: #5a6068;
    --accent-amber: #6b5226;
    --accent-amber-dim: transparent;
    --accent-teal: #2f6e64;
    --accent-teal-dim: transparent;
    --gap-section: 1.35rem;
    --shadow-card: none;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    background: #fff !important;
    background-image: none !important;
    color: var(--text-primary);
    font-size: 10.5pt;
    line-height: 1.5;
  }

  /* dashboard-only chrome that has no place on paper */
  #backToTop,
  .print-btn,
  .section-nav,
  .profile-photo-wrap,
  .project-media,
  .project-toggle,
  .lang-bar-track,
  .site-footer,
  .status-dot::after {
    display: none !important;
  }

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

  /* ---------- layout: single column, sidebar becomes the header ---------- */
  .layout {
    display: block;
    max-width: 100%;
  }

  .content {
    padding: 0;
  }

  .sidebar {
    position: static;
    height: auto;
    border: none;
    padding: 0 0 0.9rem 0;
    gap: 0.45rem;
    display: block;
  }

  .identity h1 {
    font-size: 19pt;
  }

  .identity .headline {
    font-size: 10pt;
    margin-top: 0.2rem;
  }

  .status-line {
    margin-top: 0.4rem;
    font-size: 9pt;
  }

  /* contact / meta rows run horizontally, label: value style */
  .meta-list {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 1.4rem;
    row-gap: 0.2rem;
    border-top: none;
    padding-top: 0.35rem;
    font-size: 9.5pt;
  }

  .social-links {
    gap: 0 1rem;
    padding-top: 0.2rem;
  }

  .social-links a {
    border: none;
    padding: 0;
    border-radius: 0;
    font-size: 9pt;
  }

  .social-links svg {
    display: none;
  }

  .social-links a[data-detail]::after {
    content: " — " attr(data-detail);
    color: var(--text-muted);
  }

  .sidebar-badges {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 0;
    border-top: none;
    padding-top: 0.2rem;
    font-size: 9pt;
  }

  .sidebar-badges .badge-row::before {
    content: none;
  }

  .sidebar-badges .badge-row:not(:last-child)::after {
    content: "  •  ";
    color: var(--text-muted);
  }

  /* ---------- section chrome ---------- */
  .section {
    margin-bottom: var(--gap-section);
  }

  .section-eyebrow {
    font-size: 8pt;
    margin-bottom: 0.5rem;
  }

  .section h2 {
    font-size: 13pt;
    margin-bottom: 0.6rem;
  }

  .summary-text {
    font-size: 10pt;
    max-width: 100%;
    orphans: 3;
    widows: 3;
  }

  .domain-tags {
    margin-top: 0.7rem;
  }

  .domain-tags span,
  .tech-tags span,
  .skill-tags span {
    border: none;
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 9.5pt;
    color: var(--text-secondary);
  }

  .domain-tags span:not(:last-child)::after,
  .tech-tags span:not(:last-child)::after,
  .skill-tags span:not(:last-child)::after {
    content: ", ";
  }

  .approach-row {
    margin-top: 0.8rem;
    font-size: 9pt;
  }

  /* ---------- experience ---------- */
  .timeline {
    padding-left: 0;
  }

  .timeline::before,
  .timeline-item::before {
    display: none;
  }

  .timeline-item {
    padding-bottom: 1rem;
  }

  .timeline-role {
    font-size: 11pt;
  }

  .timeline-company,
  .timeline-period {
    font-size: 9.5pt;
  }

  .timeline-domain {
    border: none;
    background: none;
    padding: 0;
    margin-top: 0.3rem;
    font-size: 9pt;
    color: var(--text-muted);
  }

  .timeline-domain::before {
    content: "(";
  }

  .timeline-domain::after {
    content: ")";
  }

  .timeline-list {
    margin-top: 0.5rem;
    gap: 0.3rem;
  }

  .timeline-list li {
    font-size: 9.7pt;
  }

  /* ---------- projects: single column, image-free, fully expanded ---------- */
  .projects-grid {
    display: block;
  }

  .project-card {
    background: none;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .project-card:last-child {
    border-bottom: none;
  }

  .project-body {
    padding: 0 0 0.9rem 0;
    gap: 0.45rem;
  }

  .project-name {
    font-size: 11pt;
  }

  .project-tagline,
  .project-type {
    font-size: 9pt;
  }

  .project-desc {
    font-size: 9.7pt;
  }

  .confidential-tag {
    border: none;
    background: none;
    padding: 0;
    font-size: 8.5pt;
    color: var(--text-muted);
  }

  .confidential-tag::before {
    content: "(";
  }

  .confidential-tag::after {
    content: ")";
  }

  .project-highlights {
    display: flex !important;
    margin-top: 0.1rem;
    padding-top: 0.45rem;
  }

  .project-highlights li {
    font-size: 9.3pt;
  }

  /* ---------- skills ---------- */
  .skills-grid {
    display: block;
  }

  .skill-group {
    margin-bottom: 0.55rem;
    page-break-inside: avoid;
  }

  .skill-group-title {
    display: inline;
    font-size: 9.5pt;
    color: var(--text-primary);
  }

  .skill-group-title::after {
    content: ": ";
  }

  .skill-tags {
    display: inline;
  }

  /* ---------- education / certifications / languages ---------- */
  .record-row {
    border-bottom-color: var(--border-soft);
    padding: 0.55rem 0;
    page-break-inside: avoid;
  }

  .record-main .record-title {
    font-size: 10pt;
  }

  .record-main .record-sub,
  .record-meta {
    font-size: 9pt;
  }
}
