:root {
  --bg: #fafafa;
  --text: #111111;
  --muted: rgba(0, 0, 0, 0.65);
  --faint: rgba(0, 0, 0, 0.45);
  --label: rgba(0, 0, 0, 0.82);
  --border: rgba(0, 0, 0, 0.08);
  --card: rgba(255, 255, 255, 0.8);
  --header-bg: rgba(255, 255, 255, 0.85);
  --radius: 24px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  --font-base: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
  --font-lg: clamp(1.1rem, 1rem + 0.4vw, 1.35rem);
  --font-xl: clamp(1.35rem, 1.25rem + 0.8vw, 2rem);
  --font-xxl: clamp(1.8rem, 1.5rem + 2vw, 3.5rem);
  --font-hero: clamp(2rem, 1.6rem + 3vw, 4rem);
  --serif: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --green: rgba(30, 215, 96, 0.15);
  --cyan: rgb(102, 102, 255);
  --yellow: rgba(255, 193, 7, 0.15);
  --blue: rgba(26, 115, 232, 0.12);
  --red: rgba(234, 67, 53, 0.12);
  --rainbow: linear-gradient(110deg,
      rgba(234, 67, 53, 0.15),
      rgba(255, 193, 7, 0.18),
      rgba(30, 215, 96, 0.15),
      rgba(26, 115, 232, 0.15),
      rgba(161, 66, 244, 0.15));
  --ring: #111111;
  --headshot-bg: #f8f9fa;
  --headshot-v1: rgba(0, 0, 0, 0.03);
  --headshot-v2: rgba(0, 0, 0, 0.01);
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.05);
  --shadow-strong: 0 16px 40px rgba(0, 0, 0, 0.1);
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 160ms;
  --t-base: 220ms;
  --cursor-orb-core: rgba(12, 12, 14, 0.16);
  --cursor-orb-edge: rgba(0, 0, 0, 0.82);
  --cursor-orb-glass: rgba(255, 255, 255, 0.26);
  --cursor-orb-shadow: rgba(0, 0, 0, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  font-size: var(--font-base);
  height: 100%;
}

html {
  /* Smooth scrolling between anchors */
  scroll-behavior: smooth;
}
/* Base styling for the logo in navbar */
.site-logo {
    display: block;
    height: 50px;
    width: auto;
    margin-right: 12px;
    flex-shrink: 0;
    transition: transform 0.2s ease-in-out;
}

/* Make it slightly smaller on tablets */
@media (max-width: 992px) {
    .site-logo {
        height: 36px;
    }
}

/* Make it fit nicely on mobile phones */
@media (max-width: 480px) {
    .site-logo {
        height: 32px;
    }
}

/* Professional touch: Subtle grow effect when hovered */
.site-logo:hover {
    transform: scale(1.05);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 240ms var(--ease-soft), color 240ms var(--ease-soft);
}

main {
  /* Prevent sticky header from covering section titles, adjusted for tighter spacing */
  scroll-padding-top: 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
input,
textarea,
select,
summary,
[role="button"] {
  transition:
    color var(--t-fast) var(--ease-soft),
    background-color var(--t-fast) var(--ease-soft),
    border-color var(--t-fast) var(--ease-soft),
    box-shadow var(--t-fast) var(--ease-soft),
    transform var(--t-fast) var(--ease-soft),
    opacity var(--t-fast) var(--ease-soft);
}

.container {
  width: min(1120px, 100% - 48px);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-160%);
  transition: transform var(--t-fast) var(--ease-soft);
  z-index: 999;
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.15), var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform var(--t-base) var(--ease-soft), background-color 240ms var(--ease-soft), border-color 240ms var(--ease-soft);
}

.site-header.nav-hidden {
  transform: translateY(-100%);
}

.nav {
  position: relative;
  width: min(1120px, 100% - 48px);
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  order: 1;
}

/* Consolidated site-logo style at the top of styles.css */

.brand {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  order: 1;
}

.brand-logo-mask {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--border);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: auto;
  margin-right: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 500;
  order: 3;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  order: 3;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  transition: transform var(--t-fast) var(--ease-soft), background-color var(--t-fast) var(--ease-soft);
}

.nav-links a:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-fast) var(--ease-soft), box-shadow var(--t-fast) var(--ease-soft), filter var(--t-fast) var(--ease-soft);
}

.nav-toggle:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: var(--shadow-strong);
}

.nav-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.14), var(--shadow-soft);
}

.nav-toggle__icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle__icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--t-fast) var(--ease-soft), opacity var(--t-fast) var(--ease-soft);
}

body.nav-open .nav-toggle__icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle__icon span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle__icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-cta {
  border: 1px solid var(--border);
  background: rgba(255, 62, 62, 0.832);
}

.theme-toggle {
  position: relative;
  width: 68px;
  /* Widened toggle for more clearly visible icons */
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-soft), filter var(--t-fast) var(--ease-soft), background-color 240ms var(--ease-soft), border-color 240ms var(--ease-soft), box-shadow var(--t-fast) var(--ease-soft);
  overflow: hidden;
}

.theme-toggle:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12), 0 14px 36px rgba(0, 0, 0, 0.12);
}

.theme-toggle__icons {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  padding: 0 10px;
  opacity: 1;
  z-index: 2;
  color: #fff;
  mix-blend-mode: difference;
}

.theme-toggle__icons svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.9;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}

.theme-toggle__thumb {
  position: absolute;
  left: 6px;
  top: 50%;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: #000;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  transition: left 420ms var(--ease), background-color 420ms var(--ease), box-shadow 420ms var(--ease);
}

.theme-toggle[data-theme=dark] .theme-toggle__thumb {
  left: 34px;
  /* Move thumb further right because container is wider */
}

.theme-toggle[data-theme=dark] .theme-toggle__sun {
  opacity: 0.34;
  transform: scale(0.94);
}

.theme-toggle[data-theme=light] .theme-toggle__moon {
  opacity: 0.34;
  transform: scale(0.94);
}

.theme-toggle[data-theme=dark] .theme-toggle__moon {
  opacity: 0.98;
}

.theme-toggle[data-theme=light] .theme-toggle__sun {
  opacity: 0.98;
}

.section {
  padding: 40px 0;
}

.hero {
  padding-top: 74px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

.hero-media {
  display: flex;
  justify-content: flex-end;
}

.hero-media-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 340px;
  padding: 40px; /* Space for the arc overflow */
}

.hero-social-arc {
  position: absolute;
  /* Make the container larger than the headshot */
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  pointer-events: none;
  z-index: 10;
}



.hero-social-arc .icon-btn {
  position: absolute;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  background: var(--bg);
  box-shadow: var(--shadow-soft);
  z-index: 2;
  width: 44px;
  height: 44px;
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 400ms ease, background 400ms ease;
}

.hero-social-arc .icon-btn:hover {
  transform: translate(-50%, -50%) scale(1.15) rotate(5deg);
  box-shadow: var(--shadow-strong);
}

/* Icon positions aligned in a circular arc around the headshot */
.icon-pos-1 { left: 50%; top: 5%; }
.icon-pos-2 { left: 65%; top: 8%; }
.icon-pos-3 { left: 80%; top: 18%; }
.icon-pos-4 { left: 90%; top: 35%; }
.icon-pos-5 { left: 92%; top: 55%; }
.icon-pos-6 { left: 90%; top: 75%; }

.icon-btn {
  color: var(--text);
}

.icon-btn svg {
  fill: currentColor;
}

.icon-btn--hero {
  position: static;
  width: 32px;
  height: 32px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-size: var(--font-hero);
  margin: 0 0 14px;
}

.hero-role {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: var(--font-xl);
  margin: 0 0 16px;
}

.hero-summary {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius);
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: #000;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform var(--t-fast) var(--ease-soft), filter var(--t-fast) var(--ease-soft), box-shadow var(--t-fast) var(--ease-soft), background-color 240ms var(--ease-soft), color 240ms var(--ease-soft);
  user-select: none;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.18), 0 10px 26px rgba(0, 0, 0, 0.14);
}

.btn-ghost {
  background: #fff;
  color: #000;
}

.btn-full {
  width: 100%;
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 576px) {
  .nowrap {
    white-space: normal;
  }
}

.headshot {
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, var(--headshot-v1), var(--headshot-v2)), var(--headshot-bg);
  box-shadow: 0 0 0 1px var(--border), var(--shadow);
  position: relative;
}

.headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.headshot:hover img {
  transform: scale(1.05);
}

.headshot--lg {
  width: min(1300px, 100%);
  aspect-ratio: 1/1;
  margin-left: auto;
}

.headshot--md {
  width: 200px;
  aspect-ratio: 1/1;
  margin-top: 16px;
}

.headshot--sm {
  width: 110px;
  aspect-ratio: 1/1;
  margin-left: auto;
}

/* Hero: framed ring + inner crop + top cut */
.headshot--hero {
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.headshot--hero .headshot-frame {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: transparent;
  border: 8px solid var(--ring);
  box-shadow: var(--shadow);
  z-index: 1;
}

.headshot--hero .headshot-inner {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, var(--headshot-v1), var(--headshot-v2)), var(--headshot-bg);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.headshot--hero .headshot-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 10%;
  transition: transform 800ms cubic-bezier(0.25, 1, 0.5, 1);
}

.headshot--hero:hover .headshot-inner img {
  transform: scale(1.08);
}

.headshot--hero::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), transparent 70%);
  opacity: 0.4;
  z-index: -1;
  filter: blur(4px);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: var(--font-xxl);
  line-height: 1.05;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 70ch;
}

.title-highlight {
  position: relative;
  display: inline-block;
  padding: 4px 10px;
  z-index: 0;
  isolation: isolate;
}

.title-highlight::before {
  content: "";
  position: absolute;
  inset: 55% -10px -12px -10px;
  z-index: -1;
  transform: rotate(-1.5deg);
  border-radius: 58% 42% 56% 44%/60% 45% 55% 40%;
}

.title-highlight--green::before {
  background: var(--green);
}

.title-highlight--green {
  --badge-bg: rgba(22, 199, 97, 0.46);
}

.title-highlight--yellow::before {
  background: var(--yellow);
}

.title-highlight--yellow {
  --badge-bg: rgba(255, 214, 0, 0.5);
}

.title-highlight--blue::before {
  background: var(--blue);
}

.title-highlight--blue {
  --badge-bg: rgba(35, 117, 255, 0.5);
}

.title-highlight--red::before {
  background: var(--red);
}

.title-highlight--red {
  --badge-bg: rgba(255, 56, 56, 0.4);
}

.title-highlight--rainbow::before {
  background: var(--rainbow);
  inset: 55% -16px -14px -16px;
}

.title-highlight--rainbow {
  --badge-bg: var(--rainbow);
}

/* First-letter badge only for MAIN headings */
.initial-badge {
  position: relative;
  display: inline-block;
  padding: 0 0.08em;
  margin-right: 0.02em;
  isolation: isolate;
}

.initial-badge::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  width: 1.25em;
  height: 1.25em;
  border-radius: 999px;
  background: var(--badge-bg, rgba(35, 117, 255, 0.42));
  z-index: -1;
}

.initial-rest {
  display: inline-block;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-base) var(--ease-soft), box-shadow var(--t-base) var(--ease-soft), filter var(--t-base) var(--ease-soft);
  color: var(--text);
}

.card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-strong);
  filter: brightness(1.02);
}

.card,
.blog-card,
.cert-card,
.resume-tags li {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.card.tilt-card,
.blog-card.tilt-card,
.cert-card.tilt-card,
.resume-tags li.tilt-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  --press: 0px;
  --sheen-x: 50%;
  --sheen-y: 50%;
  --depth: 26px;
  position: relative;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift)) translateZ(0);
  transition: transform 140ms var(--ease-soft), box-shadow 140ms var(--ease-soft), filter 140ms var(--ease-soft);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

.card.tilt-card::before,
.blog-card.tilt-card::before,
.cert-card.tilt-card::before,
.resume-tags li.tilt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--sheen-x) var(--sheen-y), rgba(255, 255, 255, 0.38), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 45%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease-soft);
}

.card.tilt-card:hover::before,
.blog-card.tilt-card:hover::before,
.cert-card.tilt-card:hover::before,
.resume-tags li.tilt-card:hover::before {
  opacity: 1;
}

.card.tilt-card > *,
.blog-card.tilt-card > *,
.cert-card.tilt-card > *,
.resume-tags li.tilt-card > * {
  transform: translateZ(var(--depth));
}

.card.tilt-card:hover,
.blog-card.tilt-card:hover,
.cert-card.tilt-card:hover,
.resume-tags li.tilt-card:hover {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.14), 0 2px 0 rgba(255, 255, 255, 0.3) inset;
}

.cursor-orb {
  position: fixed;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  mix-blend-mode: normal;
  background:
    radial-gradient(circle at center, transparent 0 51%, rgba(255, 255, 255, 0.34) 52%, rgba(255, 255, 255, 0.18) 58%, transparent 59%),
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 20%, transparent 45%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 10px 24px var(--cursor-orb-shadow);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  filter: saturate(1.05);
  transform: translate3d(-50%, -50%, 0) scale(0.94);
  transition: opacity 160ms var(--ease-soft), transform 260ms var(--ease-soft), width 220ms var(--ease-soft), height 220ms var(--ease-soft), box-shadow 220ms var(--ease-soft), filter 220ms var(--ease-soft);
}

.cursor-orb.is-visible {
  opacity: 1;
}

.cursor-orb.is-active {
  width: 40px;
  height: 40px;
  transform: translate3d(-50%, -50%, 0) scale(1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24) inset,
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 14px 34px rgba(0, 0, 0, 0.14);
  filter: saturate(1.1);
}

@media (hover: none), (pointer: coarse) {
  .cursor-orb {
    display: none;
  }
}

.card-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 22px;
}

.card-body {
  margin: 10px 0 0;
  color: var(--muted);
}

.card-meta {
  margin: 0;
  color: var(--faint);
  font-weight: 500;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.project {
  display: grid;
  gap: 12px;
  min-height: 290px;
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.project:hover .project-image img {
  transform: scale(1.05);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.mockups {
  position: relative;
  margin-top: 4px;
  height: 128px;
}

.mockup {
  position: absolute;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02));
}

.mockup--laptop {
  left: 0;
  right: 26px;
  bottom: 0;
  height: 92px;
}

.mockup--laptop::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  bottom: 18px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.65);
}

.mockup--phone {
  width: 76px;
  height: 118px;
  right: 0;
  bottom: 0;
  border-radius: 22px;
}

.mockup--phone::after {
  content: "";
  position: absolute;
  inset: 10px 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.65);
}

/* ─── Certificate Timeline ─────────────────────────────────── */
.cert-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px 0 32px;
}

/* Vertical center spine */
.cert-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--border) 5%, var(--border) 95%, transparent);
  transform: translateX(-50%);
}

.cert-entry {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: center;
  min-height: 180px;
  position: relative;
  margin-bottom: 28px;
}

/* Timeline node */
.cert-timeline-dot {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 2;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.cert-entry:hover .cert-timeline-dot {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

.cert-dot-icon {
  font-size: 22px;
  line-height: 1;
}

/* Card panel */
.cert-content {
  padding: 0 24px;
}

.cert-content--left {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
}

.cert-content--right {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  justify-content: flex-start;
}

.cert-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  width: 100%;
  max-width: 440px;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
  position: relative;
  overflow: hidden;
}

.cert-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,193,7,0.06) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

.cert-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-strong);
  border-color: rgba(255,193,7,0.35);
}

.cert-card:hover::after {
  opacity: 1;
}

/* Thumbnail */
.cert-preview {
  flex-shrink: 0;
  width: 100px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}

.cert-card:hover .cert-preview img {
  transform: scale(1.06);
}

.cert-preview--pdf {
  flex-direction: column;
  gap: 4px;
  background: rgba(92, 107, 192, 0.08);
  border: 1px solid rgba(92, 107, 192, 0.2);
}

.cert-preview--pdf svg {
  width: 40px;
  height: 40px;
}

.cert-preview--pdf span {
  font-size: 10px;
  font-weight: 700;
  color: #5c6bc0;
  letter-spacing: 0.05em;
}

/* Card text */
.cert-info {
  flex: 1;
  min-width: 0;
}

.cert-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.cert-issuer-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 150, 0, 0.9);
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.28);
  border-radius: 999px;
  padding: 2px 8px;
}

.cert-year {
  font-size: 12px;
  font-weight: 600;
  color: var(--faint);
}

.cert-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(15px, 1.2vw + 10px, 18px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
}

.cert-link-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 150, 0, 0.85);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}

.cert-card:hover .cert-link-cta {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Bento (kept for potential future use) ─────────────────── */
.bento {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.bento-item {
  min-height: 190px;
}

.bento-item--wide {
  grid-row: span 2;
  min-height: 396px;
  padding-top: 22px;
}

/* ─── Blog Section ───────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  min-height: 210px;
}

@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), filter 200ms var(--ease);
  color: var(--text);
  text-decoration: none;
  min-height: 200px;
}

.blog-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-strong);
  filter: brightness(1.02);
}

.blog-meta-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 150, 0, 0.9);
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.28);
  border-radius: 999px;
  padding: 2px 8px;
  display: inline-block;
}

.blog-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(16px, 1.2vw + 12px, 18px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
}

.blog-description {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 12px;
}

.blog-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.blog-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--label);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

.blog-read-link {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 150, 0, 0.85);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 180ms var(--ease);
}

.blog-card:hover .blog-read-link {
  transform: translateX(2px);
}

.blog-view-all {
  margin-top: 20px;
  text-align: center;
}

.blog-view-all a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.blog-view-all a:hover {
  color: var(--text);
}

.blog-state-card {
  grid-column: 1 / -1;
  min-height: 180px;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.blog-state-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(18px, 1.2vw + 14px, 24px);
  color: var(--text);
}

.blog-state-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 60ch;
}

.blog-state-path {
  margin: 0;
  color: var(--label);
  font-size: 13px;
}

.blog-state-path code {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}

/* ─── Résumé ─────────────────────────────────────────────────── */
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.resume-title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
  position: relative;
  padding-bottom: 10px;
}

.resume-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, rgba(26,115,232,0.7), transparent);
  border-radius: 999px;
}

.resume-list {
  margin: 0 0 24px;
  padding-left: 18px;
  color: var(--muted);
}

/* ─── Skill Tags with Icons ─────────────────────────────────── */
.resume-tags {
  padding-left: 0;
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  margin-bottom: 24px;
}

.resume-tags li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--label);
  font-weight: 600;
  font-size: 13px;
  cursor: default;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
  user-select: none;
}

.resume-tags li:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: var(--shadow-strong);
  border-color: rgba(26,115,232,0.35);
  background: rgba(26,115,232,0.06);
}

.skill-icon {
  font-size: 16px;
  line-height: 1;
  display: inline-block;
  transition: transform 180ms var(--ease);
}

.resume-tags li:hover .skill-icon {
  transform: scale(1.25) rotate(-5deg);
}

.muted {
  color: var(--faint);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
  margin-top: 10px;
}

.about-lede {
  font-size: 18px;
}

.about-copy p {
  margin: 0 0 12px;
  color: var(--muted);
}

.about-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.about-aside {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.section--contact {
  padding-bottom: 110px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  align-items: start;
}

.contact-copy {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 52ch;
}

.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.label {
  font-size: 13px;
  font-weight: 600;
  color: var(--label);
}

input,
textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 16px 18px;
  font-family: var(--sans);
  font-size: 16px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  transition: box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12);
}

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 18px 0;
  transition: border-color 420ms var(--ease);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms var(--ease), filter 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease);
}

.icon-btn:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.08);
  box-shadow: var(--shadow-strong);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.footer-stamp {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 500;
}

.dot {
  opacity: 0.6;
}

/* Scroll reveal */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
  will-change: opacity, transform;
}

[data-animate=left] {
  transform: translateX(-40px);
}

[data-animate=right] {
  transform: translateX(40px);
}

[data-animate=zoom] {
  transform: scale(0.92);
}

[data-animate=up] {
  transform: translateY(40px);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Dark mode overrides */
html[data-theme=dark] {
  --bg: #09090b;
  --text: #fafafa;
  --muted: rgba(250, 250, 250, 0.75);
  --faint: rgba(250, 250, 250, 0.5);
  --label: rgba(250, 250, 250, 0.85);
  --border: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.05);
  --header-bg: rgba(9, 9, 11, 0.75);
  --green: rgba(30, 215, 96, 0.2);
  --yellow: rgba(255, 193, 7, 0.2);
  --blue: rgba(26, 115, 232, 0.2);
  --red: rgba(234, 67, 53, 0.2);
  --ring: #fafafa;
  --headshot-bg: #1e1e20;
  --headshot-v1: rgba(255, 255, 255, 0.04);
  --headshot-v2: rgba(255, 255, 255, 0.01);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-strong: 0 16px 40px rgba(0, 0, 0, 0.6);
  --cursor-orb-core: rgba(255, 255, 255, 0.14);
  --cursor-orb-edge: rgba(255, 255, 255, 0.98);
  --cursor-orb-glass: rgba(255, 255, 255, 0.28);
  --cursor-orb-shadow: rgba(255, 255, 255, 0.14);
}

html[data-theme=dark] .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme=dark] .nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme=dark] .btn {
  background: #f3f5f7;
  color: #0b0c10;
}

html[data-theme=dark] .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #f3f5f7;
}

html[data-theme=dark] .theme-toggle {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme=dark] .theme-toggle__thumb {
  background: #f3f5f7;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

html[data-theme=dark] input,
html[data-theme=dark] textarea {
  background: rgba(255, 255, 255, 0.06);
  color: #f3f5f7;
}

html[data-theme=dark] input::placeholder,
html[data-theme=dark] textarea::placeholder {
  color: rgba(243, 245, 247, 0.55);
}

html[data-theme=dark] .icon-btn {
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme=dark] .site-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

html[data-theme=dark] .cert-card {
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme=dark] .cert-card:hover {
  border-color: rgba(255, 193, 7, 0.4);
  background: rgba(255, 193, 7, 0.06);
}

html[data-theme=dark] .resume-tags li {
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme=dark] .resume-tags li:hover {
  background: rgba(26, 115, 232, 0.12);
  border-color: rgba(26, 115, 232, 0.4);
}


@media (min-width: 1441px) {
  .container {
    width: min(1400px, 100% - 80px);
    max-width: 1400px;
    margin: 0 auto;
  }
  .work-grid {
    gap: 24px;
  }
  .bento {
    gap: 24px;
  }
}
@media (max-width: 1023px) {
  .nav {
    align-items: center;
  }
  .nav-toggle {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 24px;
    left: 24px;
    margin-top: 8px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border-radius: 18px;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-strong);
    border: 1px solid var(--border);
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 250ms var(--ease), transform 250ms var(--ease), max-height 250ms var(--ease);
    z-index: 40;
    overflow: hidden;
  }
  body.nav-open .nav-links {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links a {
    width: 100%;
    justify-content: flex-start;
    min-height: 44px;
  }
  .nav-links .nav-cta {
    justify-content: center;
  }
  .work-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .bento {
    grid-template-columns: 1fr 1fr !important;
  }
  .resume-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 767px) {
  .container {
    width: min(1120px, 100% - 32px);
  }
  .nav {
    width: min(1120px, 100% - 32px);
    gap: 10px;
  }
  .hero-grid,
  .work-grid,
  .bento,
  .resume-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  /* Collapse timeline to single column on mobile */
  .cert-timeline::before { display: none; }
  .cert-entry {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto;
    margin-bottom: 16px;
    min-height: unset;
  }
  .cert-timeline-dot {
    grid-column: 1;
    grid-row: 1;
    width: 36px;
    height: 36px;
  }
  .cert-dot-icon { font-size: 16px; }
  .cert-content--left,
  .cert-content--right {
    grid-column: 2;
    grid-row: 1;
    padding: 0 0 0 12px;
    justify-content: flex-start;
  }
  .cert-card {
    max-width: 100%;
    gap: 12px;
    padding: 12px 14px;
  }
  .cert-preview {
    width: 72px;
    height: 52px;
  }

  .headshot--lg {
    margin-left: 0;
    width: min(400px, 100%);
  }
  .hero-media {
    margin-top: 20px;
  }
  .hero-media-wrap {
    width: 100%;
    min-width: 0;
    padding: 0;
    flex-direction: column;
  }
  .hero-social-arc {
    position: static;
    width: 100%;
    height: auto;
    pointer-events: auto;
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .hero-social-arc .arc-line {
    display: none;
  }
  .hero-social-arc .icon-btn {
    position: static;
    transform: none;
  }
  .about-aside {

    justify-items: start;
  }
  .bento-item--wide {
    grid-row: auto;
    min-height: 240px;
  }
  .btn, .icon-btn, .theme-toggle, .nav-toggle, input, textarea {
    min-height: 40px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .icon-btn--hero {
    width: 40px !important;
    height: 40px !important;
  }
  .nav-links a {
    min-height: 40px;
  }
  .hero {
    padding-top: 40px;
  }
  .section {
    padding: 32px 0;
  }
}
@media (max-width: 299px) {
  .container {
    width: calc(100% - 16px);
  }
  body {
    background: #000 !important;
    color: #fff !important;
  }
  html[data-theme=light] {
    --bg: #000;
    --text: #fff;
    --muted: #ccc;
    --card: #111;
    --border: #333;
    --header-bg: #000;
  }
  .mockups,
  .mockup,
  .hero-media-wrap,
  .about-aside,
  .site-footer,
  .headshot,
  .hero-social,
  .theme-toggle {
    display: none !important;
  }
  .hero-title {
    font-size: 28px !important;
    line-height: 1.1;
  }
  .hero-role {
    font-size: 16px !important;
  }
  .hero-summary {
    font-size: 14px !important;
  }
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-toggle {
    display: none !important;
  }
  .nav-links {
    position: static !important;
    display: flex !important;
    flex-direction: column;
    max-height: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .nav-links a {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid #333;
    border-radius: 0;
    background: transparent !important;
  }
  .nav-links li {
    width: 100%;
  }
  .brand {
    font-size: 18px;
    margin-bottom: 12px;
  }
  .section {
    padding: 16px 0;
  }
  .card {
    padding: 12px;
    border-radius: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  .card,
  .icon-btn,
  [data-animate],
  .theme-toggle,
  .theme-toggle__thumb,
  .theme-toggle__icons svg {
    transition: none !important;
  }
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 480px) {
  .nav {
    width: calc(100% - 24px);
    gap: 8px;
  }
  .brand {
    font-size: clamp(14px, 4.5vw, 17px);
  }
  .theme-toggle {
    width: 56px;
  }
  .theme-toggle[data-theme=dark] .theme-toggle__thumb {
    left: 22px;
  }
}

/*# sourceMappingURL=styles.css.map */
