@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;600;700&display=swap');

/* Colorblind-safe palette (Okabe-Ito)
   --blue:   #0077BB  primary
   --orange: #EE7733  accent
   --text:   #1A1A1A
   --muted:  #555555
   --bg:     #FFFFFF
   --surface:#F4F4F4
   --border: #DDDDDD
*/

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

:root {
  --blue:   #0077BB;
  --orange: #EE7733;
  --text:   #1A1A1A;
  --muted:  #555555;
  --bg:     #FFFFFF;
  --surface:#F4F4F4;
  --border: #DDDDDD;
  --radius: 6px;
  --max-w:  860px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* ── Site Header ── */
.site-header {
  background-color: #0D0D0D;
  background-image:
    radial-gradient(circle at 8% 40%,  transparent 128px, rgba(238,119,51,0.10) 128px, rgba(238,119,51,0.10) 131px, transparent 131px),
    radial-gradient(circle at 91% 18%, rgba(238,119,51,0.08) 55px,  transparent 55px),
    radial-gradient(circle at 62% 88%, transparent 38px,  rgba(238,119,51,0.11) 38px,  rgba(238,119,51,0.11) 41px,  transparent 41px),
    radial-gradient(circle at 87% 82%, rgba(238,119,51,0.06) 100px, transparent 100px),
    radial-gradient(circle at 2%  78%, transparent 68px,  rgba(238,119,51,0.09) 68px,  rgba(238,119,51,0.09) 71px,  transparent 71px),
    radial-gradient(circle at 78% 52%, rgba(238,119,51,0.09) 20px,  transparent 20px),
    radial-gradient(circle at 38% 8%,  transparent 30px,  rgba(238,119,51,0.08) 30px,  rgba(238,119,51,0.08) 33px,  transparent 33px);
  border-bottom: 2px solid rgba(238,119,51,0.35);
  padding: 0 1.5rem;
}

.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.5rem 0 1.25rem;
}

.header-photo {
  flex-shrink: 0;
  width: 200px;
  height: 220px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--orange);
}

.header-info {
  flex: 1;
  text-align: center;
}

.header-info h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 2.6rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 1.1;
  color: #FFFFFF;
}

.header-info .header-title {
  font-size: 1rem;
  color: var(--orange);
  font-weight: 600;
  margin-top: 0.2rem;
}

.header-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: #AAAAAA;
}

.header-contact a {
  color: #AAAAAA;
  text-decoration: none;
}

.header-contact a:hover { color: #FFFFFF; }

/* ── Nav ── */
nav {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0;
  justify-content: center;
}

.nav-links a {
  display: block;
  padding: 0.7rem 1.25rem;
  text-decoration: none;
  color: #888888;
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: color 0.15s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #FFFFFF;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* ── Layout ── */
.page-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.82; }

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-outline {
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
}

/* ── Section headings ── */
.section { margin-bottom: 2.5rem; }

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

.page-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

/* ── Info boxes ── */
.info-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.info-box {
  background: var(--surface);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.info-box-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 1rem;
}

.info-box-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.info-box-list li {
  padding-left: 0.9rem;
  position: relative;
}

.info-box-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--orange);
}

.highlight-org { font-weight: 600; color: var(--text); }
.highlight-dates { color: var(--muted); font-size: 0.85rem; }

.info-box-full { width: 100%; }

.info-box-list-columns {
  column-count: 2;
  column-gap: 3rem;
}

@media (max-width: 600px) {
  .info-box-list-columns { column-count: 1; }
}

/* ── Profile blockquote ── */
.profile-quote {
  border-left: 4px solid var(--orange);
  margin: 0;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.profile-quote p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.profile-quote cite {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: normal;
}

@media (max-width: 600px) {
  .info-boxes { grid-template-columns: 1fr; }
}

/* ── Skills tags ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Okabe-Ito colorblind-safe tag variants */
.tag-teal {
  background: #E1F5EE;
  border-color: #009E73;
  color: #00705A;
}

.tag-sky {
  background: #E3F4FF;
  border-color: #56B4E9;
  color: #0066AA;
}

.tag-purple {
  background: #F7EEF4;
  border-color: #CC79A7;
  color: #8B3D6B;
}

.tag-amber {
  background: #FEF3D0;
  border-color: #B35C00;
  color: #7A3D00;
}

/* ── Portfolio strips ── */
.portfolio-strips {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portfolio-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.portfolio-strip:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.portfolio-strip-thumb {
  flex-shrink: 0;
  width: 180px;
  height: 110px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--border);
  overflow: hidden;
}

.portfolio-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-strip:hover .portfolio-strip-thumb img {
  transform: scale(1.06);
}

.portfolio-strip-body {
  padding: 1rem 1rem 1rem 0;
  flex: 1;
}

.portfolio-strip-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.portfolio-strip-body p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

@media (max-width: 600px) {
  .portfolio-strip { flex-direction: column; }
  .portfolio-strip-thumb { width: 100%; height: 140px; }
  .portfolio-strip-body { padding: 1rem; }
}

/* ── Resume ── */
.resume-section { margin-bottom: 2.25rem; }

.resume-entry {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.resume-entry:last-child { border-bottom: none; margin-bottom: 0; }

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

.resume-org {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.resume-location-dates {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.resume-roles {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.75rem;
}

.resume-roles span {
  font-size: 0.88rem;
  color: var(--orange);
  font-weight: 600;
}

.resume-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resume-bullets li {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.resume-bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--orange);
}

/* ── References ── */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.ref-card {
  perspective: 1000px;
  transition: opacity 0.5s ease, transform 0.5s ease;
  cursor: default;
}

.ref-card.card-hidden {
  opacity: 0;
  transform: translateY(20px);
}

.ref-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 250px;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

@media (hover: hover) {
  .ref-card:hover .ref-card-inner {
    transform: rotateY(180deg);
  }
}

.ref-card.flipped .ref-card-inner {
  transform: rotateY(180deg);
}

.ref-card-front,
.ref-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.ref-card-back {
  transform: rotateY(180deg);
  background: var(--surface);
}

.ref-card-body {
  flex: 1;
  padding: 1.25rem 1.25rem 0.75rem;
}

.ref-card-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.ref-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0;
}

.ref-card-primary {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.ref-card-affiliations {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ref-card-affiliations li {
  font-size: 0.82rem;
  color: var(--muted);
  padding-left: 0.9rem;
  position: relative;
  line-height: 1.4;
}

.ref-card-affiliations li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.ref-card-tag {
  padding: 0.6rem 1.25rem 0.85rem;
}

.ref-relationship {
  flex: 1;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.75;
  padding: 1.25rem 1.25rem 0.75rem;
  font-style: italic;
}

.ref-card-contact {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(0,0,0,0.04);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

.ref-card-contact a {
  color: var(--blue);
  text-decoration: none;
}

.ref-card-contact a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .ref-grid { grid-template-columns: 1fr; }
}

/* ── Contact strip ── */
.contact-strip {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.contact-strip a {
  color: var(--blue);
  text-decoration: none;
}

.contact-strip a:hover { text-decoration: underline; }

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 500;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.lightbox.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.lightbox-panel {
  background: #fff;
  border-radius: var(--radius);
  max-width: 800px;
  width: 100%;
  margin: auto;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.1rem;
  height: 2.1rem;
  background: var(--orange);
  border: 2px solid #1A1A1A;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.15s, transform 0.15s;
}

.lightbox-close:hover {
  background: #d4621e;
  transform: scale(1.1);
}

.portfolio-strip { cursor: pointer; }

/* ── Case study card (lightbox content) ── */
.case-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}

.case-card-header {
  display: grid;
  grid-template-columns: 4px 1fr;
}

.case-accent-bar { background: var(--orange); }

.case-card-header-content {
  padding: 1.75rem 2.5rem 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
}

.case-title {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.case-context {
  font-size: 0.85rem;
  color: var(--muted);
}

.case-body { padding: 2rem 2rem 2rem; }

.case-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.85rem;
  margin-bottom: 0.75rem;
}

.case-text {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.85;
}

.case-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-list li {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.85;
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.65rem;
}

.case-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--orange);
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.outcome-pill {
  background: #f5e8df;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  text-align: center;
}

.outcome-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange);
  display: block;
  line-height: 1;
}

.outcome-pill.outcome-blue { background: #E3F4FF; }
.outcome-pill.outcome-blue .outcome-number { color: var(--blue); }
.outcome-pill.outcome-blue .outcome-desc { color: #004477; }

.outcome-pill.outcome-purple { background: #F7EEF4; }
.outcome-pill.outcome-purple .outcome-number { color: #8B3D6B; }
.outcome-pill.outcome-purple .outcome-desc { color: #5C1F47; }

.outcome-pill.outcome-sky { background: #E0F0FF; }
.outcome-pill.outcome-sky .outcome-number { color: #2471A3; }
.outcome-pill.outcome-sky .outcome-desc { color: #154360; }

.outcome-pill.outcome-teal { background: #E1F5EE; }
.outcome-pill.outcome-teal .outcome-number { color: #009E73; }
.outcome-pill.outcome-teal .outcome-desc { color: #005C43; }

.outcome-pill.outcome-amber { background: #FEF3D0; }
.outcome-pill.outcome-amber .outcome-number { color: #B35C00; }
.outcome-pill.outcome-amber .outcome-desc { color: #7A3D00; }

.outcome-desc {
  font-size: 0.72rem;
  color: #4A1B0C;
  margin-top: 0.3rem;
  display: block;
}

/* ── Portfolio strip entrance animation ── */
.portfolio-strip.strip-hidden {
  opacity: 0;
  transform: translateY(22px);
}

.portfolio-strip {
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.2s;
}

/* ── Case gallery (lightbox carousel) ── */
.case-gallery {
  position: relative;
  width: 100%;
  height: 270px;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 1.75rem;
  background: #111;
}

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-track img {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  border: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
  padding-bottom: 2px;
}

.gallery-btn:hover { background: rgba(0, 0, 0, 0.72); }
.gallery-prev { left: 0.65rem; }
.gallery-next { right: 0.65rem; }

.gallery-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.gallery-dot.active { background: #fff; }

/* ── Case study: numbered examples ── */
.case-examples { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 0.25rem; }

.case-example {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0 0.75rem;
}

.case-example-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1.6;
  padding-top: 0.1rem;
}

.case-example-num::after { content: '.'; }

.case-example-body p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0.4rem;
}

/* ── Quote scroll entrance ── */
.case-quote {
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.case-quote.quote-hidden {
  opacity: 0;
  transform: translateY(18px);
}

/* ── Highlighter sweep ── */
.hl {
  background: linear-gradient(rgba(238,119,51,0.3), rgba(238,119,51,0.3));
  background-size: 0% 88%;
  background-repeat: no-repeat;
  background-position: 0 58%;
  transition: background-size 0.9s ease;
}

.hl.highlighted {
  background-size: 100% 88%;
}

/* ── Case study: blockquote ── */
.case-quote {
  border-left: 3px solid var(--orange);
  margin: 1rem 0;
  padding: 0.9rem 1.25rem;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.case-quote p {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 0.6rem;
}

.case-quote p:last-of-type { margin-bottom: 0.5rem; }

.case-quote cite {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 2.6rem;
  height: 2.6rem;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 200;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover { background: #d4621e; }

/* ── Nav download button ── */
.nav-download-btn {
  display: block;
  padding: 0.3rem 0.85rem;
  background: var(--orange);
  color: #fff !important;
  border-radius: var(--radius);
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-decoration: none;
  transition: opacity 0.15s;
  border-bottom: none !important;
  white-space: nowrap;
}

.nav-download-btn:hover { opacity: 0.85; }

/* ── Career timeline ── */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 0.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.55rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.4rem;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.38rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(238,119,51,0.2);
}

.timeline-dates {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}

.timeline-org {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.timeline-role {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-header-inner {
    gap: 1rem;
  }

  .header-photo {
    width: 120px;
    height: 140px;
  }

  .header-info h1 { font-size: 1.8rem; }

  .header-contact { gap: 0.25rem 1rem; }

  .resume-entry {
    grid-template-columns: 1fr;
  }

  .resume-entry .dates {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }
}

/* ── Quote Carousel (Profile page) ── */
.quote-slides {
  display: grid;
  grid-template-columns: 1fr;
}

.quote-slide {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.quote-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.quote-carousel-nav {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.quote-progress-track {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.quote-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--orange);
  border-radius: 2px;
}

@keyframes carousel-progress {
  from { width: 0% }
  to   { width: 100% }
}

.quote-progress-bar.running {
  animation: carousel-progress 15s linear forwards;
}

.quote-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quote-dots {
  display: flex;
  gap: 0.5rem;
}

.quote-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}

.quote-dot.active {
  background: var(--orange);
}

.quote-arrow {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  line-height: 1;
  transition: color 0.2s;
}

.quote-arrow:hover {
  color: var(--orange);
}
