/* Portfolio content sections and hero extras (2026-11-01). Uses the theme variables from swapz.css. */

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.tags li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); font-size: .8rem; font-weight: 500; }

/* Experience */
.xp { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.xp__item { padding: 24px 26px; }
.xp__top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; }
.xp__logo { width: 48px; height: 48px; flex: none; border-radius: 12px; object-fit: contain; background: var(--bg-2); }
.xp__title { flex: 1; min-width: 200px; }
.xp__title h3 { margin: 0; font: 600 1.15rem/1.3 var(--font-display); letter-spacing: -.01em; }
.xp__org { margin: 4px 0 0; color: var(--text-2); }
.xp__org a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.xp__when { margin: 2px 0 0; color: var(--text-2); font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.xp__points { margin: 14px 0 0; padding-left: 1.1em; color: var(--text); line-height: 1.55; }
.xp__points li + li { margin-top: 6px; }
.xp--timeline { position: relative; padding-left: 28px; }
.xp--timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 8px; width: 2px; border-radius: 2px; background: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.xp--timeline .xp__item { position: relative; }
.xp--timeline .xp__item::before { content: ""; position: absolute; top: 30px; left: -26px; width: 14px; height: 14px; border: 3px solid var(--bg, #fff); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.xp--compact .xp__item { padding: 16px 20px; }
.xp--compact .xp__points { display: none; }

/* Education */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.edu { padding: 24px; }
.edu h3 { margin: 0; font: 600 1.08rem/1.3 var(--font-display); }
.edu__org { margin: 6px 0 0; color: var(--text-2); }
.edu__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; color: var(--text-2); font-size: .88rem; }
.edu__grade { padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 600; }
.edu__desc { margin: 12px 0 0; line-height: 1.55; }

/* Projects */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
@media (min-width: 900px) { .proj-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } .proj-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.proj { display: flex; flex-direction: column; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.proj:hover { transform: translateY(-4px); }
.proj__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.proj:hover .proj__img img { transform: scale(1.03); }
.proj__body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.proj__body h3 { margin: 0; font: 600 1.12rem/1.3 var(--font-display); letter-spacing: -.01em; }
.proj__body h3 a { color: var(--text); }
.proj__body > p { margin: 8px 0 0; color: var(--text-2); line-height: 1.55; }
.proj__links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: auto !important; padding-top: 16px; font-weight: 600; font-size: .92rem; }
.proj--featured { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
@media (min-width: 900px) { .proj-grid .proj--featured { grid-column: span 2; } .proj-grid.cols-2 .proj--featured { grid-column: 1 / -1; } }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.svc { padding: 26px 24px; }
.svc__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 14%, transparent); font-size: 1.5rem; }
.svc h3 { margin: 0; font: 600 1.08rem/1.3 var(--font-display); }
.svc p { margin: 8px 0 0; color: var(--text-2); line-height: 1.55; }
.svc__cta { margin: 28px 0 0; }

/* Testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.quote { display: flex; flex-direction: column; margin: 0; padding: 26px; }
.quote blockquote { flex: 1; margin: 0; }
.quote blockquote p { margin: 0; font-size: 1.04rem; line-height: 1.6; }
.quote blockquote p::before { content: "\201C"; margin-right: 2px; color: var(--accent); font-weight: 700; }
.quote blockquote p::after { content: "\201D"; color: var(--accent); font-weight: 700; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote figcaption img, .quote__ph { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; }
.quote__ph { display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-weight: 700; }
.quote figcaption small { display: block; color: var(--text-2); }
.quote figcaption a { color: inherit; }
.quote-grid--large { grid-template-columns: 1fr; max-width: 820px; }
.quote-grid--large .quote blockquote p { font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.5; }

/* Highlights */
.hl { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.hl li { display: flex; flex-direction: column; gap: 4px; padding: 22px 20px; text-align: center; }
.hl strong { font: 700 clamp(1.8rem, 4vw, 2.6rem)/1.05 var(--font-display); letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.hl span { color: var(--text-2); font-size: .92rem; }
.hl--plain li { padding: 10px; }

/* Hero extras */
.hero__badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: .85rem; font-weight: 500; }
.hero__badge i { width: 8px; height: 8px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 4px rgba(52, 199, 89, .2); }
.hero__roles { min-height: 1.5em; margin: 10px 0 0; color: var(--accent); font: 600 clamp(1.05rem, 2.4vw, 1.35rem)/1.4 var(--font-display); }
.hero__roles .caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.15em; background: currentColor; animation: szCaret 1s steps(1) infinite; }
.hero__loc { margin: 10px 0 0; color: var(--text-2); font-size: .95rem; }
@keyframes szCaret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero__roles .caret { animation: none; } .proj, .proj__img img { transition: none; } }
@media (max-width: 640px) { .xp__item, .edu, .svc, .quote { padding: 20px; } .xp--timeline { padding-left: 22px; } .xp--timeline .xp__item::before { left: -20px; } }

/* Announcement bar (2026-11-01) */
.sz-announce { position: relative; z-index: 60; font-size: .9rem; line-height: 1.4; }
.sz-announce__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; min-height: 40px; padding-top: 8px; padding-bottom: 8px; padding-right: 44px; text-align: center; }
.sz-announce a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: inherit; }
.sz-announce__x { position: absolute; top: 50%; right: 10px; width: 32px; height: 32px; transform: translateY(-50%); border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: .75; }
.sz-announce__x:hover { opacity: 1; background: rgba(127, 127, 127, .2); }
.sz-announce--accent { background: var(--accent); color: #fff; }
.sz-announce--dark { background: #1d1d1f; color: #f5f5f7; }
.sz-announce--light { background: var(--bg-2); color: var(--text); border-bottom: 1px solid var(--line); }
.sz-announce--warning { background: #ffcc00; color: #1d1d1f; }
