:root {
  --surface-max: 1080px;
}

html {
  scrollbar-gutter: stable;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

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

.site-header,
.site-footer {
  border-bottom: 1px solid var(--o-border, color-mix(in srgb, currentColor 15%, transparent));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--o-bg, transparent) 88%, transparent);
}

.site-footer {
  border-bottom: 0;
  border-top: 1px solid var(--o-border, color-mix(in srgb, currentColor 15%, transparent));
  margin-top: 3rem;
}

.surface {
  max-width: var(--surface-max);
  margin: 0 auto;
  padding: 1.2rem 1rem;
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand-logo {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}

.brand-mark {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.85;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  background: color-mix(in srgb, var(--o-bg, transparent) 88%, transparent);
  color: inherit;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  flex-direction: column;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 30;
  box-shadow: 0 2px 10px color-mix(in srgb, currentColor 12%, transparent);
}

.nav-toggle span {
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.95;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

nav ul {
  margin: 0;
  padding: 0.25rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid var(--o-border, color-mix(in srgb, currentColor 15%, transparent));
  border-radius: 999px;
  background: color-mix(in srgb, var(--o-bg, transparent) 94%, transparent);
}

nav ul li {
  display: flex;
}

nav ul a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.34rem 0.7rem;
  text-decoration: none;
  line-height: 1.1;
  font-size: 0.92rem;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

nav ul a:hover {
  text-decoration: none;
  background: color-mix(in srgb, currentColor 9%, transparent);
}

nav ul a:focus-visible {
  outline: 2px solid color-mix(in srgb, currentColor 35%, transparent);
  outline-offset: 2px;
}

nav a[aria-current="page"] {
  font-weight: inherit;
  text-decoration: none;
  background: color-mix(in srgb, currentColor 14%, transparent);
  border-color: color-mix(in srgb, currentColor 20%, transparent);
}

.nav-cta {
  border: 1px solid var(--o-border, color-mix(in srgb, currentColor 15%, transparent));
  border-radius: 999px;
  padding: 0.34rem 0.8rem;
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.15rem;
}

.nav-cta:hover {
  text-decoration: none;
  border-color: color-mix(in srgb, currentColor 28%, transparent);
}

main {
  padding-block: 2rem;
  transition: opacity 0.16s ease;
}

body.is-navigating main {
  opacity: 1;
}

.hero {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1.3fr 1fr;
  align-items: start;
}

.hero-title {
  line-height: 1.15;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 62ch;
}

.media-card,
.panel,
.project-card {
  border: 1px solid var(--o-border, color-mix(in srgb, currentColor 15%, transparent));
  border-radius: 14px;
  overflow: hidden;
  background: color-mix(in srgb, var(--o-bg, transparent) 90%, transparent);
}

.panel {
  padding: 1rem;
}

.hero-image {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.hero-image-compact {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.about-logo-card {
  display: grid;
  place-items: center;
  min-height: auto;
  margin: 0.75rem 0 0;
  padding: 0;
  overflow: visible;
  background: none;
}

.about-logo-image {
  display: block;
  width: min(180px, 42vw);
  max-width: 180px;
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  filter: none;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stack span[role="status"] {
  border: 1px solid var(--o-border, color-mix(in srgb, currentColor 15%, transparent));
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.9rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-intro-grid {
  align-items: start;
}

.about-intro-grid > article > :first-child {
  margin-top: 0;
}

.timeline {
  padding-left: 1.1rem;
}

.timeline li {
  margin-bottom: 1rem;
}

.muted {
  opacity: 0.75;
}

.kicker {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.metric {
  margin: 0;
}

.metric dt {
  font-size: 0.84rem;
  opacity: 0.75;
}

.metric dd {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 650;
}

.project-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--o-border, color-mix(in srgb, currentColor 15%, transparent));
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.project-card .actions-row {
  margin-top: auto;
  padding-top: 0.25rem;
}

.contact-grid {
  align-items: start;
}

.contact-hero {
  padding-top: 0.5rem;
}

.contact-hero-card {
  padding: 1.35rem;
}

.contact-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  font-size: 0.88rem;
  opacity: 0.75;
  margin-bottom: 0.6rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-card h2 {
  margin: 0;
  font-size: 1.12rem;
}

.contact-logo-card {
  display: grid;
  place-items: start;
  margin: 0;
  padding: 0;
  background: none;
  overflow: visible;
}

.contact-logo-image {
  display: block;
  width: min(180px, 42vw);
  max-width: 180px;
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  filter: none;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border: 1px solid var(--o-border, color-mix(in srgb, currentColor 14%, transparent));
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: color-mix(in srgb, var(--o-bg, transparent) 96%, transparent);
}

.contact-list li strong {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
}

.contact-list--brief li {
  display: list-item;
  list-style: disc;
  margin-left: 1.05rem;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.contact-note {
  padding: 0.9rem;
}

.contact-note p {
  margin: 0;
}

.booking-card {
  padding: 1.25rem;
}

.scheduler-modal {
  width: min(980px, 92vw);
  max-width: 980px;
  border: 1px solid var(--o-border, color-mix(in srgb, currentColor 15%, transparent));
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  background: color-mix(in srgb, white 96%, currentColor 4%);
}

.scheduler-modal::backdrop {
  background: color-mix(in srgb, black 38%, transparent);
}

.scheduler-shell {
  width: 100%;
}

.scheduler-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--o-border, color-mix(in srgb, currentColor 15%, transparent));
}

.scheduler-iframe {
  width: 100%;
  min-height: 76vh;
  border: 0;
  background: white;
  color-scheme: light;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-social a {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--o-border, color-mix(in srgb, currentColor 18%, transparent));
  border-radius: 999px;
  text-decoration: none;
  background: color-mix(in srgb, var(--o-bg, transparent) 92%, transparent);
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.footer-social a:hover {
  border-color: color-mix(in srgb, currentColor 32%, transparent);
  background: color-mix(in srgb, currentColor 9%, transparent);
  transform: translateY(-1px);
}

.footer-social a:focus-visible {
  outline: 2px solid color-mix(in srgb, currentColor 38%, transparent);
  outline-offset: 2px;
}

.footer-social svg {
  width: 1rem;
  height: 1rem;
  display: block;
  fill: currentColor;
}

/* ─── Hero v2 ──────────────────────────────────────────── */

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.employer-panel {
  padding: 0.9rem 1rem;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.9;
}

.availability-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 2px color-mix(in srgb, #22c55e 30%, transparent);
  animation: pulse-dot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 2px color-mix(in srgb, #22c55e 30%, transparent); }
  50%       { box-shadow: 0 0 0 5px color-mix(in srgb, #22c55e 12%, transparent); }
}

.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--o-border, color-mix(in srgb, currentColor 12%, transparent));
}

.hero-stat {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.hero-stat strong {
  font-size: 1.3rem;
  font-weight: 700;
}

.hero-stat span {
  font-size: 0.78rem;
  opacity: 0.65;
}

.hero-stat-divider {
  width: 1px;
  height: 2rem;
  background: var(--o-border, color-mix(in srgb, currentColor 14%, transparent));
}

/* ─── Section titles ────────────────────────────────────── */

.section-title {
  margin-top: 0.4rem;
  margin-bottom: 1.4rem;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  line-height: 1.2;
}

/* ─── Services ──────────────────────────────────────────── */

.services-section {
  margin-top: 0.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-card--featured {
  border-color: color-mix(in srgb, currentColor 28%, transparent);
  background: color-mix(in srgb, var(--o-bg, transparent) 96%, currentColor);
}

.service-icon {
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.7;
  margin-bottom: 0.1rem;
}

.service-tags span[role="status"] {
  font-size: 0.78rem;
}

/* ─── 4-column grid ─────────────────────────────────────── */

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ─── Metric cards ──────────────────────────────────────── */

.metric-card {
  padding: 1rem;
}

.metric-card .metric dd {
  font-size: 1.65rem;
  font-weight: 700;
}

.metric-card p {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  line-height: 1.55;
}

/* ─── Stack groups ──────────────────────────────────────── */

.stack-group {
  padding: 1rem;
}

.stack-group-label {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.6;
  font-weight: 600;
}

/* ─── Project tags ──────────────────────────────────────── */

.project-tags {
  margin-bottom: 0.5rem;
}

.project-tags span[role="status"] {
  font-size: 0.76rem;
}

/* ─── Project card variants ─────────────────────────────── */

.project-carousel {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--o-border, color-mix(in srgb, currentColor 15%, transparent));
  background: color-mix(in srgb, var(--o-bg, transparent) 92%, transparent);
}

.project-carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.project-carousel-image.is-active {
  opacity: 1;
}

.project-carousel-controls {
  position: absolute;
  inset-inline: 0.5rem;
  bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.project-carousel-btn {
  pointer-events: auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--o-border, color-mix(in srgb, currentColor 20%, transparent));
  background: color-mix(in srgb, var(--o-bg, transparent) 85%, transparent);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
}

.project-carousel-btn:hover {
  border-color: color-mix(in srgb, currentColor 35%, transparent);
}

.project-card h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1rem;
}

.project-card h2 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.06rem;
}

.project-card p {
  margin: 0;
  font-size: 0.88rem;
}

/* ─── Blog cards ────────────────────────────────────────── */

.blogs-hero {
  padding-top: 0.45rem;
}

.blogs-hero-shell {
  padding: 1.2rem;
}

.blogs-search {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1rem;
  max-width: 560px;
}

.blogs-search-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.72;
}

.blogs-search input {
  width: 100%;
  border: 1px solid var(--o-border, color-mix(in srgb, currentColor 18%, transparent));
  border-radius: 12px;
  background: color-mix(in srgb, var(--o-bg, #fff) 96%, currentColor 4%);
  color: inherit;
  font: inherit;
  padding: 0.62rem 0.8rem;
  min-height: 2.4rem;
}

.blogs-search input:focus {
  outline: none;
  border-color: color-mix(in srgb, currentColor 34%, transparent);
}

.blogs-tag-filter {
  margin-top: 0.85rem;
}

.blog-tag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.blog-tag-option {
  border: 1px solid var(--o-border, color-mix(in srgb, currentColor 18%, transparent));
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.blog-tag-option:hover {
  border-color: color-mix(in srgb, currentColor 34%, transparent);
}

.blog-tag-option.is-selected {
  border-color: color-mix(in srgb, currentColor 44%, transparent);
  background: color-mix(in srgb, currentColor 11%, transparent);
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-decoration: none;
  padding: 1.05rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.blog-card:hover {
  border-color: color-mix(in srgb, currentColor 35%, transparent);
  transform: translateY(-1px);
  text-decoration: none;
}

.blog-card--featured {
  grid-column: 1 / -1;
  padding: 1.3rem;
}

.blog-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.79rem;
  opacity: 0.75;
}

.blog-card-dot {
  opacity: 0.5;
}

.blog-chip {
  border: 1px solid var(--o-border, color-mix(in srgb, currentColor 18%, transparent));
  border-radius: 999px;
  padding: 0.04rem 0.5rem;
  font-size: 0.73rem;
  opacity: 0.9;
}

.blog-card-title {
  margin: 0;
  line-height: 1.3;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
}

.blog-card-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.58;
  color: color-mix(in srgb, currentColor 86%, transparent);
}

.blog-card .actions-row {
  margin-top: auto;
  padding-top: 0.45rem;
}

.blog-card--loading {
  pointer-events: none;
}

.blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.blog-skeleton {
  display: block;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, currentColor 8%, transparent) 0%,
    color-mix(in srgb, currentColor 16%, transparent) 50%,
    color-mix(in srgb, currentColor 8%, transparent) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.3s linear infinite;
}

.blog-skeleton--meta {
  width: 34%;
  height: 0.8rem;
}

.blog-skeleton--title {
  width: 82%;
  height: 1.25rem;
  border-radius: 0.6rem;
}

.blog-skeleton--line {
  width: 100%;
  height: 0.92rem;
}

.blog-skeleton--line-short {
  width: 68%;
}

@keyframes skeleton-shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

.blog-tag {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
  color: color-mix(in srgb, currentColor 88%, transparent);
}

.blog-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 600;
}

.blog-read {
  font-size: 0.84rem;
  margin-top: auto;
}

.muted.blog-read {
  opacity: 0.9;
  color: color-mix(in srgb, currentColor 86%, transparent);
}

/* ─── Bottom CTA ────────────────────────────────────────── */

.bottom-cta {
  padding-bottom: 3rem;
}

.bottom-cta-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

/* ─── Responsive ────────────────────────────────────────── */

@media (max-width: 860px) {
  .brand-logo {
    width: 2.05rem;
    height: 2.05rem;
  }

  .header-row {
    align-items: center;
    row-gap: 0.7rem;
  }

  .brand {
    order: 1;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    order: 2;
  }

  nav {
    display: block;
    width: 100%;
    order: 3;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    overflow: hidden;
    transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease;
  }

  body.nav-open nav {
    max-height: 340px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  nav ul {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    border-radius: 12px;
    padding: 0.35rem;
    gap: 0.25rem;
    overflow: visible;
    scrollbar-width: auto;
  }

  nav ul li {
    width: 100%;
  }

  nav ul a {
    width: 100%;
    justify-content: flex-start;
    padding: 0.52rem 0.7rem;
  }

  .hero,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-stat-divider {
    display: none;
  }

  .contact-meta-row {
    gap: 0.35rem 0.5rem;
    font-size: 0.84rem;
  }

  .hero-stats-row {
    gap: 0.6rem 1.5rem;
  }

  .scheduler-iframe {
    min-height: 72vh;
  }

  .hero-image {
    aspect-ratio: auto;
    object-fit: contain;
    height: auto;
  }
}