/* --- Reset & variables --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #f8f6fc;
  background-image:
    linear-gradient(to right, rgba(124, 58, 237, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(124, 58, 237, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  left: 0;
  bottom: 0;
  width: 4px;
  height: 200vmax;
  background: #e11b22;
  transform-origin: left bottom;
  transform: rotate(-45deg) translate(0, 0);
  animation: redline-up 6s ease-in-out infinite;
  z-index: 5;
  pointer-events: none;
}

@keyframes redline-up {
  0% {
    transform: rotate(-45deg) translate(0, 0);
  }
  100% {
    transform: rotate(-45deg) translate(-100%, -100%);
  }
}

:root {
  --color-bg: #f8f6fc;
  --color-surface: #ede9f7;
  --color-text: #1a1a1a;
  --color-muted: #5c5470;
  --color-accent: #7c3aed;
  --color-accent-dark: #6d28d9;
  --color-purple-deep: #5b21b6;
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --max-width: 1100px;
  --gap: 1.5rem;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(92, 84, 112, 0.06);
  --shadow-md: 0 8px 24px rgba(92, 84, 112, 0.1);
  --shadow-lg: 0 16px 48px rgba(92, 84, 112, 0.12);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.5vw + 0.75rem, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.location {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--color-muted);
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.2s;
}

.nav a:hover { color: var(--color-accent); }

/* --- Main --- */
main {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 0;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 5vw, 2rem);
}

.section + .section {
  border-top: 1px solid rgba(124, 58, 237, 0.06);
}

/* Work, Focus, Awards: same full-bleed + inner max-width as About Me so titles align */
.section-work,
.section-focus,
.section-awards {
  width: 100%;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 5vw, 2rem);
  box-sizing: border-box;
}

.section-work .section-head,
.section-work .work-history,
.section-work .link-arrow,
.section-focus .section-head,
.section-focus .focus-grid,
.section-awards .section-head,
.section-awards .awards-row,
.section-awards .awards-note,
.section-awards .licenses-block {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  background: rgba(124, 58, 237, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem 0;
}

.section-period {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

/* --- Hero: split layout --- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 5vw, 2rem) clamp(4rem, 8vw, 6rem);
  min-height: 88vh;
}

.hero-title-block {
  display: inline-grid;
  grid-template-columns: min-content;
  margin-bottom: 2.25rem;
  max-width: 100%;
}

.hero-title,
.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw + 1.5rem, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  grid-column: 1;
}

.hero-title {
  margin: 0 0 0.2rem 0;
  white-space: nowrap;
}

.hero-subtitle {
  margin: 0;
  color: var(--color-muted);
  font-weight: 500;
  font-size: 3em;
  white-space: normal;
  min-width: 0;
}

.hero-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-muted);
  max-width: 54ch;
  margin: 0 0 1.75rem 0;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.85rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.hero-image {
  position: relative;
  min-width: 0;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  margin-left: 2rem;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Work history (timeline) --- */
.section-work {
  padding-top: 5rem;
}

.section-work .section-head,
.section-work .link-arrow {
  text-align: left;
}

.section-work-head .link-arrow {
  display: inline-block;
  margin-top: 0.5rem;
}

.work-history {
  list-style: none;
  margin: 0 auto 2rem;
  padding: 0;
  position: relative;
  padding-left: 0;
  max-width: 100%;
}

/* Vertical line: runs in its own narrow column, behind the dots */
.work-history::before {
  content: '';
  position: absolute;
  left: calc(1.25rem - 1px);
  top: 1.25rem;
  bottom: 1.25rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), rgba(124, 58, 237, 0.2));
  border-radius: 2px;
  z-index: 0;
}

.work-history-item {
  display: grid;
  grid-template-columns: 2.5rem 8rem 1fr;
  gap: 0 1.25rem;
  align-items: start;
  position: relative;
  z-index: 1;
  padding-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.work-history-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* First column: dot (centered on line). Second column: date. */
.work-history-timeline-marker {
  display: grid;
  grid-template-columns: 2.5rem 8rem;
  grid-column: 1 / 3;
  align-items: center;
  padding-top: calc(1.75rem + 8px);
}

.work-history-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  justify-self: center;
  box-shadow: 0 0 0 4px var(--color-surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-history-item:hover .work-history-dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px var(--color-surface), 0 0 0 6px rgba(124, 58, 237, 0.25);
}

.work-history-duration {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
}

.work-history-card {
  grid-column: 3;
}

.work-history-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 2rem 2rem;
  border: 1px solid rgba(124, 58, 237, 0.1);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, border-color 0.2s ease;
}

.work-history-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 58, 237, 0.18);
}

.work-history-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
}

.work-history-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.work-history-company {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: color 0.2s;
}

.work-history-company:hover {
  color: var(--color-accent-dark);
}

.work-history-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.work-history-bullets {
  margin: 0;
  padding-left: 1.35rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.65;
  list-style-type: disc;
}

.work-history-bullets li {
  margin-bottom: 0.55rem;
  display: list-item;
}

.work-history-bullets li::marker {
  color: var(--color-accent);
}

.work-history-bullets li:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .work-history::before {
    left: calc(1rem - 1px);
    top: 1rem;
    bottom: 1rem;
  }

  .work-history-item {
    grid-template-columns: 2rem 1fr;
    grid-template-rows: auto auto;
    gap: 0 0.75rem;
    padding-bottom: 2rem;
  }

  .work-history-timeline-marker {
    grid-column: 1 / -1;
    grid-template-columns: 2rem 1fr;
    align-items: center;
    padding-top: 0.35rem;
  }

  .work-history-duration {
    font-size: 0.7rem;
  }

  .work-history-dot {
    width: 12px;
    height: 12px;
  }

  .work-history-card {
    grid-column: 1 / -1;
    padding: 1.25rem clamp(1rem, 4vw, 1.35rem) 1.5rem;
    margin-left: min(2.75rem, 12vw);
  }
}

.link-arrow {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
}

.link-arrow:hover { gap: 0.75rem; }

.link-arrow::after {
  content: '→';
}

/* --- About --- */
.section-about {
  width: 100%;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: clamp(4rem, 9vw, 5.5rem) clamp(1.25rem, 5vw, 2rem);
  padding-bottom: clamp(4rem, 10vw, 6.5rem);
  box-sizing: border-box;
  background: linear-gradient(160deg, #f5f3ff 0%, #ede9fe 40%, #ddd6fe 80%, #e9e5ff 100%);
  position: relative;
  overflow: hidden;
}

.section-about::before {
  display: none;
}

/* Option: split — clean white | lavender vertical split */
.section-about[data-about-style="split"] {
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, #ede9fe 50%, #e9e5ff 100%);
}
.section-about[data-about-style="split"]::before {
  display: none;
}

/* Option: dots — white with subtle purple dot pattern */
.section-about[data-about-style="dots"] {
  background-color: #fafafa;
  background-image: radial-gradient(rgba(124, 58, 237, 0.2) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}
.section-about[data-about-style="dots"]::before {
  display: none;
}

/* Option: blob — white with a soft purple orb behind content */
.section-about[data-about-style="blob"] {
  background: #fff;
}
.section-about[data-about-style="blob"]::before {
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 90% 80% at 30% 50%, rgba(196, 181, 253, 0.35) 0%, rgba(167, 139, 250, 0.12) 40%, transparent 70%);
}

/* Option: stripes — very subtle diagonal lavender stripes */
.section-about[data-about-style="stripes"] {
  background-color: #fefefe;
  background-image: repeating-linear-gradient(
    -3deg,
    transparent,
    transparent 40px,
    rgba(221, 214, 254, 0.4) 40px,
    rgba(221, 214, 254, 0.4) 41px
  );
}
.section-about[data-about-style="stripes"]::before {
  display: none;
}

.section-about .section-head,
.section-about .about-layout {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.section-about .section-head h2 {
  color: var(--color-text);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 2.5rem 3rem;
  align-items: start;
}

.about-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 280px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(124, 58, 237, 0.2);
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-content {
  max-width: 65ch;
  margin-bottom: 0;
}

.about-text {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin: 0 0 2rem 0;
  line-height: 1.65;
}

.section-about .stats-row {
  display: flex;
  gap: 3rem;
}

.section-about .stat {
  display: flex;
  flex-direction: column;
}

.section-about .stat-num {
  font-family: var(--font-sans);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
}

.section-about .stat-label {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.section-about .social-row {
  display: flex;
  gap: 2rem;
}

.section-about .social-row a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.2s;
}

.section-about .social-row a:hover {
  color: var(--color-accent);
}

.stats-row {
  display: flex;
  gap: 3rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-sans);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.social-row {
  display: flex;
  gap: 2rem;
}

.social-row a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.2s;
}

.social-row a:hover { color: var(--color-accent); }

/* --- Focus: 2x2, aligned with About / Awards --- */
.section-focus .section-head,
.section-focus .focus-grid {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.focus-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem 1.4rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  align-items: center;
}

.focus-grid li {
  position: relative;
  padding: 1.05rem 1.65rem;
  font-size: 1.12rem;
  background: #8b5cf6;
  color: #fff;
  font-weight: 500;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  width: fit-content;
  max-width: 100%;
  overflow: visible;
  animation: focus-idle-vibrate 2.5s ease-in-out infinite;
}

/* Each bubble on its own phase (staggered delay so they don't move in sync) */
.focus-grid li:nth-child(1) { animation-delay: 0s; }
.focus-grid li:nth-child(2) { animation-delay: -0.4s; }
.focus-grid li:nth-child(3) { animation-delay: -0.8s; }
.focus-grid li:nth-child(4) { animation-delay: -0.2s; }
.focus-grid li:nth-child(5) { animation-delay: -0.6s; }
.focus-grid li:nth-child(6) { animation-delay: -0.1s; }
.focus-grid li:nth-child(7) { animation-delay: -0.5s; }
.focus-grid li:nth-child(8) { animation-delay: -0.9s; }
.focus-grid li:nth-child(9) { animation-delay: -0.3s; }
.focus-grid li:nth-child(10) { animation-delay: -0.7s; }
.focus-grid li:nth-child(11) { animation-delay: -0.15s; }
.focus-grid li:nth-child(12) { animation-delay: -0.55s; }
.focus-grid li:nth-child(13) { animation-delay: -0.25s; }

/* Hover: bubble expands (box-shadow and z-index) */
.focus-grid li:hover {
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.45);
  z-index: 2;
}

/* Next to hovered: ripple = scale pulse + expanding ring */
.focus-grid li:hover + li,
.focus-grid li:has(+ li:hover) {
  animation: focus-ripple 0.5s ease;
}

.focus-grid li:hover + li::after,
.focus-grid li:has(+ li:hover)::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
  animation: focus-ripple-ring 0.6s ease-out forwards;
}

@keyframes focus-ripple {
  0%, 100% { transform: scale(1) rotate(var(--focus-rotate, 0deg)); }
  50% { transform: scale(1.1) rotate(var(--focus-rotate, 0deg)); }
}

@keyframes focus-ripple-ring {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Irregular blob shape (rem-based), rotated and offset – set --focus-rotate for hover/ripple */
.focus-grid li:nth-child(5n+1) {
  border-radius: 4rem 2.75rem 3.5rem 2.25rem / 2.75rem 3.5rem 2.25rem 2.75rem;
  transform: rotate(-4deg);
  --focus-rotate: -4deg;
  margin: 0 0.25rem 0.15rem 0;
}
.focus-grid li:nth-child(5n+2) {
  border-radius: 1.75rem 2.75rem 2.25rem 2.75rem / 2.75rem 1.75rem 2.75rem 2.25rem;
  transform: rotate(3deg);
  --focus-rotate: 3deg;
  margin: 0.2rem 0 0 0.2rem;
}
.focus-grid li:nth-child(5n+3) {
  border-radius: 2.25rem 1.75rem 2.75rem 2.25rem / 1.75rem 2.75rem 2.25rem 1.75rem;
  transform: rotate(2deg);
  --focus-rotate: 2deg;
  margin: -0.1rem 0.3rem 0 0;
}
.focus-grid li:nth-child(5n+4) {
  border-radius: 1.75rem 2.25rem 1.75rem 2.75rem / 2.75rem 2.25rem 1.75rem 2.25rem;
  transform: rotate(-3deg);
  --focus-rotate: -3deg;
  margin: 0.1rem 0 0.2rem 0.15rem;
}
.focus-grid li:nth-child(5n) {
  border-radius: 2.75rem 2.25rem 1.75rem 2.25rem / 2.25rem 2.75rem 2.25rem 1.75rem;
  transform: rotate(1deg);
  --focus-rotate: 1deg;
  margin: 0.15rem 0.2rem 0 0;
}

/* When any bubble is hovered, stop idle animation so hover expand is clear */
.focus-grid:has(li:hover) li {
  animation: none;
}

/* Hover expand: must override nth-child transform (same specificity, so order matters) */
.focus-grid li:nth-child(5n+1):hover { transform: scale(1.18) rotate(-4deg); }
.focus-grid li:nth-child(5n+2):hover { transform: scale(1.18) rotate(3deg); }
.focus-grid li:nth-child(5n+3):hover { transform: scale(1.18) rotate(2deg); }
.focus-grid li:nth-child(5n+4):hover { transform: scale(1.18) rotate(-3deg); }
.focus-grid li:nth-child(5n):hover { transform: scale(1.18) rotate(1deg); }

@keyframes focus-idle-vibrate {
  0%, 100% { transform: translate(0, 0) rotate(var(--focus-rotate, 0deg)); }
  25% { transform: translate(1px, -0.5px) rotate(var(--focus-rotate, 0deg)); }
  50% { transform: translate(-1px, 0.5px) rotate(var(--focus-rotate, 0deg)); }
  75% { transform: translate(0.5px, 1px) rotate(var(--focus-rotate, 0deg)); }
}

/* --- Awards --- */
.awards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  margin-bottom: 1rem;
}

.award {
  font-size: 1rem;
  color: var(--color-muted);
}

.award strong {
  color: var(--color-text);
  margin-right: 0.35rem;
}

.awards-note {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

.section-awards {
  background: transparent;
  width: 100%;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 5vw, 2rem);
  box-sizing: border-box;
}

.section-awards .section-head,
.section-awards .awards-row,
.section-awards .awards-note,
.section-awards .licenses-block {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.licenses-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-top: 0.25rem;
  transition: color 0.2s;
}

.licenses-link:hover {
  color: var(--color-accent-dark);
}

/* Licenses and Certificates block – each card has image + name, bigger layout */
.licenses-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 2.5rem;
}

.license-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(124, 58, 237, 0.08);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.6s ease-out, transform 0.6s ease-out;
  opacity: 0;
  transform: translateY(28px);
}

.license-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.license-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 58, 237, 0.15);
}

.license-card-img {
  width: 160px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.license-card-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .licenses-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .license-card {
    padding: 1.75rem 1.25rem;
  }

  .license-card-img {
    width: 140px;
    margin-bottom: 1rem;
  }

  .license-card-name {
    font-size: 1rem;
  }
}

/* --- Blog --- */
.blog-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.blog-item {
  padding: 1.5rem 1.6rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.06);
}

.blog-item:hover {
  background: #e4ddf5;
  box-shadow: var(--shadow-sm);
}

.blog-item h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.blog-item p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

/* --- Clients --- */
.section-clients {
  text-align: center;
  padding: 4rem clamp(1.25rem, 5vw, 2rem);
  background: #fff;
  width: 100%;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  box-sizing: border-box;
}

.clients-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 2.5rem 0;
}

.clients-strip-wrap {
  overflow: hidden;
  width: 100%;
}

.clients-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 3rem 4rem;
}

.clients-strip-inner {
  animation: clients-scroll 40s linear infinite;
  width: max-content;
}

@keyframes clients-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-logo-img {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.client-logo-img:hover {
  opacity: 1;
}

/* --- Contact form --- */
.section-contact {
  width: 100%;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background: #f5f3ff;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 5vw, 2rem);
  box-sizing: border-box;
}

.section-contact .contact-header,
.section-contact .contact-form-card {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-header {
  margin-bottom: 2rem;
}

.contact-intro {
  font-size: 1rem;
  color: var(--color-muted);
  margin: 0.75rem 0 0 0;
  max-width: 36ch;
}

.contact-form-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(124, 58, 237, 0.08);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.contact-input {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-input::placeholder {
  color: var(--color-muted);
  opacity: 0.7;
}

.contact-input:hover {
  border-color: rgba(124, 58, 237, 0.25);
}

.contact-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.contact-textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-submit {
  align-self: flex-start;
  margin-top: 0.25rem;
}

@media (max-width: 560px) {
  .contact-row {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 1.5rem;
  }
}

/* --- Footer --- */
.footer {
  background: var(--color-purple-deep);
  color: #fff;
  padding: 2rem clamp(1.25rem, 5vw, 2rem);
  margin-top: 0;
  text-align: center;
}

.footer-powered {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.9rem;
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: clamp(4rem, 10vw, 5rem) clamp(1.25rem, 5vw, 2rem) clamp(3rem, 8vw, 4rem);
  }

  .hero-desc { max-width: none; margin-left: auto; margin-right: auto; }
  .hero-image { margin-left: 0; margin-top: 1rem; }
  .location { display: none; }
  .blog-list { grid-template-columns: 1fr; }
  .hero-title-block { justify-items: center; }
  .hero-title { white-space: normal; text-align: center; }
  .hero-subtitle { text-align: center; }
}

@media (max-width: 600px) {
  .site-header { padding: 1rem clamp(1rem, 4vw, 1.25rem); }
  .logo { font-size: 0.85rem; }
  .nav { gap: 1.25rem; }
  .section-head {
    text-align: center;
  }
  .section-head h2,
  .section-period {
    margin-left: auto;
    margin-right: auto;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-image-wrap {
    max-width: 220px;
    justify-self: center;
  }
  .stats-row { flex-direction: column; gap: 1rem; align-items: center; }
  .social-row { justify-content: center; flex-wrap: wrap; }
  .focus-grid { max-width: 100%; }
  .awards-row { flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
  .awards-note { text-align: center; }
}
