/* ============================================================
   KURT LOY — Personal Portfolio
   Design System & Shared Styles
   ============================================================ */

/* Fonts loaded via async <link> in HTML to avoid render-blocking */

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:          #07070D;
  --surface:     #0F0F1A;
  --surface-2:   #161624;
  --surface-3:   #1E1E30;
  --border:      rgba(255, 255, 255, 0.06);
  --border-mid:  rgba(255, 255, 255, 0.10);
  --border-hi:   rgba(255, 255, 255, 0.18);

  --accent:        #7C3AED;
  --accent-violet: #7C3AED;
  --accent-lt:     #A78BFA;
  --accent-cyan:   #22D3EE;
  --accent-glow: rgba(124, 58, 237, 0.30);
  --cyan-glow:   rgba(34, 211, 238, 0.20);

  --text:        #F0F2FF;
  --text-sub:    #A0A8C0;
  --text-muted:  #7A82A0;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius:    10px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --nav-h:  72px;
  --max-w:  1180px;
  --col-gap: 28px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

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

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Noise Overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

/* ── Layout Helpers ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section--sm {
  padding: 72px 0;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.display {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
}

.headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.body-lg {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.75;
  color: var(--text-sub);
}

.body-sm {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-lt);
}

/* ── Gradient Text ── */
.grad {
  background: linear-gradient(135deg, var(--accent-lt) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn--primary:hover {
  background: #6D28D9;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-mid);
}
.btn--ghost:hover {
  border-color: var(--border-hi);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.btn--sm {
  font-size: 0.8rem;
  padding: 9px 20px;
}

.btn svg, .btn .arrow {
  transition: transform 0.2s var(--ease-out);
}
.btn:hover svg, .btn:hover .arrow {
  transform: translateX(3px);
}

/* ── Tags / Chips ── */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-mid);
  color: var(--text-sub);
  background: var(--surface-2);
  white-space: nowrap;
}

.tag--accent {
  border-color: rgba(124, 58, 237, 0.35);
  color: var(--accent-lt);
  background: rgba(124, 58, 237, 0.08);
}

.tag--cyan {
  border-color: rgba(34, 211, 238, 0.3);
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.07);
}

/* ── Section Label ── */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: var(--accent);
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.card:hover {
  border-color: var(--border-mid);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-mid);
}

/* ── Divider ── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── ══════════════════════════════════
   NAVIGATION
   ══════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(7, 7, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-sub);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background-color 0.2s;
  text-decoration: none;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text);
  background: var(--surface-2);
}

.nav__cta {
  margin-left: 8px;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(7, 7, 13, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.nav__mobile.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav__mobile .nav__link {
  font-size: 1rem;
  padding: 12px 16px;
}

/* ── ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer__brand p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 4px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.footer__link {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background-color 0.2s;
}

.footer__link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
  background: var(--surface);
}

.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent-lt);
  background: rgba(124, 58, 237, 0.12);
  transform: translateY(-2px);
}

.footer__copy {
  width: 100%;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── ══════════════════════════════════
   HERO
   ══════════════════════════════════ */
.hero {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(34, 211, 238, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #0A0A16 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero__dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse 2.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  margin-top: -12px;
}

.hero__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.hero__role {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 500;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__role::after {
  content: '·';
  color: var(--text-muted);
}

.hero__role:last-child::after { display: none; }

.hero__desc {
  max-width: 560px;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 44px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero__stats {
  display: flex;
  gap: 40px;
  padding-top: 64px;
  border-top: 1px solid var(--border);
  margin-top: 64px;
  flex-wrap: wrap;
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-sub) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── ══════════════════════════════════
   CLIENTS STRIP
   ══════════════════════════════════ */
.clients-strip {
  padding: 32px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.clients-strip__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.clients-strip__row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.client-logo-link {
  display: flex;
  align-items: center;
  padding: 0 28px;
  flex-shrink: 0;
}

.client-logo {
  width: auto;
  opacity: 0.32;
  filter: brightness(0) invert(1);
  transition: opacity 0.25s var(--ease-out);
  flex-shrink: 0;
  display: block;
}

.client-logo-link:hover .client-logo {
  opacity: 0.78;
}

.clients-strip__div {
  width: 1px;
  height: 28px;
  background: var(--border-mid);
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .clients-strip__div { display: none; }
  .client-logo-link { padding: 8px 14px; }
  .clients-strip__row { gap: 0; flex-wrap: wrap; justify-content: center; }
}

/* ── ══════════════════════════════════
   PRESS STRIP
   ══════════════════════════════════ */
.press-strip {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.press-strip__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.press-strip__row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.press-mark {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-sub);
  opacity: 0.45;
  padding: 4px 20px;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.press-mark:hover {
  opacity: 1;
  color: var(--accent-lt);
}

.press-strip__div {
  width: 1px;
  height: 12px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .press-strip__div { display: none; }
  .press-mark { padding: 6px 12px; font-size: 0.75rem; }
}

/* ── ══════════════════════════════════
   ABOUT STRIP
   ══════════════════════════════════ */
.about-strip {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.about-strip__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.about-strip__left h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.about-strip__left p {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-strip__right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.about-card:hover {
  border-color: var(--border-mid);
  background: var(--surface-2);
}

.about-card__icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.about-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.about-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── ══════════════════════════════════
   FEATURED PROJECTS
   ══════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--col-gap);
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}

.project-card__thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.project-card__thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: transform 0.5s var(--ease-out);
}

.project-card:hover .project-card__thumb-inner {
  transform: scale(1.08);
}

.project-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.project-card__client {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-lt);
}

.project-card__year {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

/* Big featured project */
.project-card--featured {
  grid-column: span 2;
  flex-direction: row;
}

.project-card--featured .project-card__thumb {
  width: 45%;
  height: auto;
  flex-shrink: 0;
}

.project-card--featured .project-card__thumb-inner {
  height: 100%;
  font-size: 4.5rem;
}

@media (max-width: 760px) {
  .project-card--featured {
    grid-column: span 1;
    flex-direction: column;
  }
  .project-card--featured .project-card__thumb {
    width: 100%;
    height: 200px;
  }
}

/* ── ══════════════════════════════════
   SKILLS SECTION
   ══════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.skill-category:hover {
  border-color: var(--border-mid);
}

.skill-category__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  background: var(--surface-3);
}

.skill-category h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── ══════════════════════════════════
   TIMELINE (Resume)
   ══════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 52px;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.timeline-item__period {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--accent-lt);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.timeline-item__role {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
  margin-bottom: 2px;
}

.timeline-item__company {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.timeline-item__body {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.75;
}

.timeline-item__body li {
  margin-bottom: 6px;
  padding-left: 16px;
  position: relative;
  list-style: none;
}

.timeline-item__body li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-lt);
  font-size: 0.75rem;
  top: 1px;
}

.timeline-item__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* ── ══════════════════════════════════
   BLOG CARDS
   ══════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--col-gap);
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.blog-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.4);
}

.blog-card__header {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.blog-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.blog-card__date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.blog-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 10px;
}

.blog-card p {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

.blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── ══════════════════════════════════
   CONTACT
   ══════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.contact-method:hover {
  border-color: var(--border-mid);
  background: var(--surface-2);
  transform: translateX(4px);
}

.contact-method__icon {
  width: 40px;
  height: 40px;
  background: var(--surface-3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-method__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-method__value {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-sub);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--surface-3);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── ══════════════════════════════════
   PAGE HEADER
   ══════════════════════════════════ */
.page-header {
  padding: 120px 0 72px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(124, 58, 237, 0.10) 0%, transparent 60%);
}

.page-header__inner {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.page-header p {
  max-width: 580px;
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.75;
}

/* ── ══════════════════════════════════
   AVAILABILITY BADGE
   ══════════════════════════════════ */
.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #34D399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.avail-badge__dot {
  width: 6px;
  height: 6px;
  background: #34D399;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

/* ── ══════════════════════════════════
   CERTIFICATIONS
   ══════════════════════════════════ */
.cert-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.cert-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.25s, background-color 0.25s;
}

.cert-item:hover {
  border-color: var(--border-mid);
  background: var(--surface-2);
}

.cert-item__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.cert-item__text {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-sub);
}

.cert-item__issuer {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── ══════════════════════════════════
   CTA BANNER
   ══════════════════════════════════ */
.cta-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(34, 211, 238, 0.08) 100%);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1rem;
  color: var(--text-sub);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.cta-banner__btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── ══════════════════════════════════
   FILTER TABS
   ══════════════════════════════════ */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.filter-tab {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-mid);
  background: transparent;
  color: var(--text-sub);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.filter-tab:hover {
  border-color: var(--border-hi);
  color: var(--text);
}

.filter-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 900px) {
  .about-strip__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .about-strip__right { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
  .cta-banner { padding: 40px 24px; }
  .contact-form { padding: 24px; }
}

/* ── ══════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up {
  animation: fadeUp 0.65s var(--ease-out) both;
}

.animate-fade-up:nth-child(1) { animation-delay: 0.05s; }
.animate-fade-up:nth-child(2) { animation-delay: 0.12s; }
.animate-fade-up:nth-child(3) { animation-delay: 0.19s; }
.animate-fade-up:nth-child(4) { animation-delay: 0.26s; }
.animate-fade-up:nth-child(5) { animation-delay: 0.33s; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── ══════════════════════════════════
   IMAGES
   ══════════════════════════════════ */

/* Linked thumbnails */
a.project-card__thumb {
  display: block;
  cursor: pointer;
}

/* Project card real image thumbnails */
.project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.project-card:hover .project-card__thumb img {
  transform: scale(1.06);
}

/* Profile / about image */
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-mid);
  display: block;
}

.about-photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}

.about-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(7,7,13,0.6));
  pointer-events: none;
}

/* Blog card real image */
.blog-card__header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.blog-card:hover .blog-card__header img {
  transform: scale(1.05);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 1;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.gallery-item:hover {
  border-color: var(--border-hi);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  transition: transform 0.3s var(--ease-out);
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.03);
}

.gallery-item__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform 0.3s var(--ease-out);
  pointer-events: none;
}

.gallery-item:hover .gallery-item__label {
  transform: translateY(0);
}

.gallery-item__cat {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.gallery-item__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-lt);
}

/* Image lightbox overlay */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(8px);
}

.lightbox.open {
  display: flex;
}

.lightbox img,
.lightbox video {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 32px 96px rgba(0,0,0,0.8);
}

/* Clients logo strip */
.clients-img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.clients-img:hover { opacity: 1; }

/* Hero two-column layout */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 32px;
  align-items: start;
  padding: 32px 0 48px;
}

/* Hero image column */
.hero-img-col {
  display: flex;
  justify-content: center;
  height: 520px;
  overflow: hidden;
}

.hero-img-col picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-img-col img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

/* Intro two-col layout for homepage about */
.intro-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0 40px;
    min-height: auto;
  }
  .hero-img-col { order: -1; width: 200px; height: 220px; margin: 0 auto; overflow: hidden; }
  .intro-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hero-layout { padding: 20px 0 32px; gap: 12px; }
  .hero-img-col { width: 180px; height: 200px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* ── POST NAVIGATION ── */
.post-nav {
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding: 40px 0 60px;
}
.post-nav__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.post-nav__item:hover {
  border-color: var(--accent-violet);
  background: rgba(124,58,237,0.06);
}
.post-nav__item--next { text-align: right; }
.post-nav__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.post-nav__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
@media (max-width: 560px) {
  .post-nav__inner { grid-template-columns: 1fr; }
  .post-nav__item--next { text-align: left; }
}

/* ============================================================
   BLOG POST STYLES
   ============================================================ */

.post-hero { width:100%; max-height:480px; object-fit:cover; border-radius:var(--radius-xl); margin-bottom:40px; border:1px solid var(--border-mid); display:block; }
.post-body { max-width:720px; margin:0 auto; }
.post-body h2 { font-size:1.5rem; font-weight:700; letter-spacing:-0.02em; margin:40px 0 14px; color:var(--text); }
.post-body h3 { font-size:1.15rem; font-weight:600; margin:28px 0 10px; color:var(--text); }
.post-body p  { color:var(--text-sub); line-height:1.85; margin-bottom:18px; font-size:1.02rem; }
.post-body ul, .post-body ol { color:var(--text-sub); line-height:1.8; padding-left:24px; margin-bottom:18px; font-size:1.02rem; }
.post-body li { margin-bottom:8px; }
.post-body blockquote { border-left:3px solid var(--accent); padding:16px 24px; background:var(--surface); border-radius:0 var(--radius) var(--radius) 0; margin:28px 0; color:var(--text-sub); font-style:italic; font-size:1.05rem; line-height:1.75; }
.post-body strong { color:var(--text); font-weight:600; }
.post-body .callout { background:rgba(124,58,237,0.08); border:1px solid rgba(124,58,237,0.25); border-radius:var(--radius); padding:20px 24px; margin:28px 0; }
.post-body .callout p { margin:0; }
.post-inset-img { width:100%; border-radius:var(--radius-lg); border:1px solid var(--border-mid); margin:28px 0; object-fit:cover; display:block; }
.post-tags { display:flex; flex-wrap:wrap; gap:8px; margin:8px 0 32px; }
.post-meta { font-family:var(--font-mono); font-size:0.72rem; letter-spacing:0.08em; color:var(--text-muted); text-transform:uppercase; margin-bottom:14px; }
.author-card { display:flex; align-items:center; gap:16px; padding:24px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); margin:48px 0 0; }
.author-card img { width:60px; height:60px; object-fit:cover; border-radius:50%; border:2px solid var(--border-mid); flex-shrink:0; }
.author-card__name { font-weight:600; margin-bottom:4px; }
.author-card__bio { font-size:0.83rem; color:var(--text-sub); line-height:1.6; }

/* ── ══════════════════════════════════
   READING PROGRESS BAR
   ══════════════════════════════════ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  z-index: 10000;
  transition: width 0.08s linear;
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}

/* ── ══════════════════════════════════
   BACK TO TOP BUTTON
   ══════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.2s, border-color 0.2s;
  z-index: 7000;
  color: var(--text-sub);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
@media (max-width: 640px) {
  .back-to-top { bottom: 20px; right: 16px; }
}

/* ── ══════════════════════════════════
   COPY / SHARE LINK BUTTON
   ══════════════════════════════════ */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  margin-bottom: 28px;
}
.share-btn:hover {
  border-color: var(--accent-lt);
  color: var(--accent-lt);
}
.share-btn.copied {
  border-color: #34D399;
  color: #34D399;
}

/* ── ══════════════════════════════════
   RELATED POSTS
   ══════════════════════════════════ */
.related-posts {
  margin: 56px 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.related-posts__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.related-posts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.related-posts__card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.related-posts__card:hover {
  border-color: var(--accent-violet);
  background: rgba(124,58,237,0.06);
}
.related-posts__thumb {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.related-posts__info { flex: 1; min-width: 0; }
.related-posts__date {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.related-posts__title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 560px) {
  .related-posts__grid { grid-template-columns: 1fr; }
}

/* ── ══════════════════════════════════
   PRINT STYLES (resume.html)
   ══════════════════════════════════ */
@media print {
  .nav, .nav__mobile, .footer, .btn, .avail-badge, .page-header .section-label { display: none !important; }
  body { background: #fff !important; color: #111 !important; font-size: 11pt; }
  .page-header { background: none !important; padding: 12px 0 4px; }
  .page-header h1 { color: #111 !important; font-size: 22pt; }
  .page-header p { color: #444 !important; }
  .section { padding: 20px 0; }
  .timeline-item { border-left-color: #bbb; }
  .timeline-item::before { background: #6d28d9; border-color: #fff; }
  .timeline-item__period { color: #6d28d9; }
  .timeline-item__role { color: #111; }
  .timeline-item__company { color: #444; }
  .timeline-item__body { color: #444; }
  .timeline-item__body li::before { color: #6d28d9; }
  .tag { background: #f0f0f0 !important; border-color: #ccc !important; color: #333 !important; }
  .surface, [class*="surface"] { background: #f9f9f9 !important; border-color: #ddd !important; }
  .cert-item { background: #f5f5f5 !important; border-color: #ddd !important; }
  .cert-item__text { color: #333 !important; }
  .cert-item__issuer { color: #666 !important; }
  .section-label span { color: #6d28d9 !important; border-color: #6d28d9 !important; }
  h2, h3 { color: #111 !important; }
  a { color: #6d28d9; }
  @page { margin: 1.5cm 2cm; }
}

/* ── Subscribe block (blog posts) ── */
.subscribe-block {
  margin: 56px 0 48px;
  padding: 40px 36px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  text-align: center;
}
.subscribe-block__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-lt);
  margin-bottom: 10px;
}
.subscribe-block__title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.subscribe-block__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 380px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.subscribe-block__form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto 12px;
}
.subscribe-block__input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.subscribe-block__input::placeholder { color: var(--text-muted); }
.subscribe-block__input:focus { border-color: var(--accent-lt); }
.subscribe-block__note {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.subscribe-block__note a { color: var(--accent-lt); text-decoration: none; }
.subscribe-block__note a:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .subscribe-block { padding: 28px 20px; }
  .subscribe-block__form { flex-direction: column; }
}

/* ── Subscribe strip (blog.html) ── */
.subscribe-strip {
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 64px 0;
  text-align: center;
}
.subscribe-strip__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-lt);
  margin-bottom: 10px;
}
.subscribe-strip__title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.subscribe-strip__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.subscribe-strip__form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto 12px;
}
.subscribe-strip__input {
  flex: 1;
  padding: 13px 18px;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.subscribe-strip__input::placeholder { color: var(--text-muted); }
.subscribe-strip__input:focus { border-color: var(--accent-lt); }
.subscribe-strip__note {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.subscribe-strip__note a { color: var(--accent-lt); text-decoration: none; }
.subscribe-strip__note a:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .subscribe-strip__title { font-size: 1.5rem; }
  .subscribe-strip__form { flex-direction: column; }
}

/* ── FAQ ── */
.faq-section { border-top: 1px solid var(--border); }
.faq-inner { max-width: 720px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-of-type { border-top: 1px solid var(--border); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent-lt);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}
.faq-question:hover { color: var(--accent-lt); }

.faq-answer {
  padding-bottom: 22px;
}
.faq-answer p {
  font-size: 0.9375rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin: 0;
}

/* ── TESTIMONIALS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color 0.2s;
}
.testimonial-card:hover { border-color: var(--accent-lt); }

.testimonial-card__quote {
  font-size: 0.9375rem;
  color: var(--text-sub);
  line-height: 1.75;
  position: relative;
  padding-top: 8px;
}
.testimonial-card__quote::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  left: -4px;
  font-size: 3.5rem;
  color: var(--accent-lt);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.5;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.testimonial-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.testimonial-card__title {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.testimonial-card--wide {
  grid-column: 1 / -1;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

/* ── ══════════════════════════════════
   BLOG & CASE STUDY PROSE CONTENT
   ══════════════════════════════════ */

.blog-post__content h2,
.blog-post__content h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.blog-post__content h2:first-child,
.blog-post__content h3:first-child {
  margin-top: 0;
}

.blog-post__content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.blog-post__content p:last-of-type {
  margin-bottom: 0;
}

.blog-post__content ul,
.blog-post__content ol {
  margin: 0 0 1.25rem 1.5rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.blog-post__content li {
  margin-bottom: 0.4rem;
}

.blog-post__content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.blog-post__content blockquote {
  border-left: 3px solid var(--accent-purple);
  padding-left: 1.25rem;
  margin: 2rem 0;
  color: var(--text-muted);
  font-style: italic;
}

/* ── ══════════════════════════════════
   READ TIME BADGE
   ══════════════════════════════════ */

.read-time {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0.5rem 0 1.25rem;
  letter-spacing: 0.01em;
}

/* ── ══════════════════════════════════
   READING PROGRESS BAR
   ══════════════════════════════════ */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── ══════════════════════════════════
   SHARE ROW
   ══════════════════════════════════ */

.share-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.share-row__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  height: 36px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  vertical-align: middle;
}

.share-btn svg {
  flex-shrink: 0;
}
