:root {
  --bg: #ffffff;
  --text: #1e293b;
  /* slate-800 */
  --muted: #64748b;
  /* slate-500 */
  /* terracotta brand color */
  --primary: #c05a2a;
  /* darker terracotta for hover/active */
  --primary-700: #9a3f1e;
  --border: #e2e8f0;
  /* slate-200 */
  --surface: #f8fafc;
  /* slate-50 */
  --surface-alt: #f1f5f9;
  /* slate-100 */
  --shadow: 0 2px 10px rgba(30, 41, 59, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Ubuntu,
    Cantarell,
    Noto Sans,
    sans-serif,
    Apple Color Emoji,
    Segoe UI Emoji;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

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

ul {
  padding-left: 1.2rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

h1 {
  font-size: clamp(1.6rem, 2.2vw+1rem, 2.4rem);
}

h2 {
  font-size: clamp(1.3rem, 1.4vw+1rem, 1.8rem);
}

h3 {
  font-size: clamp(1.1rem, 1vw+1rem, 1.3rem);
}

p {
  margin: 0.2rem 0 0.8rem;
  color: var(--muted);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
  box-shadow: var(--shadow);
}

/* Top scroll progress bar */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--primary);
  z-index: 1;
  transition: width 0.1s linear;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  border-radius: 0.4rem;
}

.brand-name {
  font-weight: 700;
}

.brand-role {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav ul {
  display: flex;
  gap: 1rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  padding: 0.4rem 0.6rem;
  border-radius: 0.4rem;
  line-height: 1;
}

.site-nav a:hover {
  background: var(--surface);
}

/* Current page link highlight without changing layout */
.site-nav a[aria-current="page"] {
  background: var(--surface);
  font-weight: 600;
}

.site-nav .btn.primary {
  padding: 0.45rem 0.7rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 11;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
}

@media (max-width: 1024px) {
  .site-nav {
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    margin: 0.6rem;
    box-shadow: var(--shadow);
    display: none;
    min-width: 220px;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0.6rem;
  }

  .nav-toggle {
    display: flex;
  }
}

.hero {
  background: linear-gradient(180deg, var(--surface), #fff);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  min-height: calc(100vh - 64px);
}

.hero-text {
  max-width: 60ch;
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 1.5rem 0;
  }

  .hero-text {
    margin: 0 auto;
    text-align: center;
  }

  .hero .hero-text p:last-of-type {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
  }
}

.hero-media {
  position: relative;
}

.hero-media:before {
  content: "";
  position: absolute;
  inset: -6%;
  background: radial-gradient(50% 50% at 50% 50%,
      color-mix(in oklab, var(--primary), white 75%) 0%,
      transparent 70%);
  filter: blur(18px);
  z-index: 0;
}

.hero-media img {
  position: relative;
  z-index: 1;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  transition:
    0.2s background,
    0.2s box-shadow;
}

.btn:hover {
  background: var(--surface);
}

.btn.primary {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-700);
  box-shadow: var(--shadow);
}

.accent {
  color: var(--primary);
  font-weight: 700;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-style: italic;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--primary);
  transition:
    0.2s background,
    0.2s box-shadow,
    0.2s transform;
}

.icon-btn:hover {
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

/* LinkedIn button */
.btn.linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0a66c2;
  color: #fff;
  border-color: transparent;
}

.btn.linkedin:hover {
  background: #004182;
}

/* Subtle social row under hero */
.social-row {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.muted {
  color: var(--muted);
}

.linkedin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  background: #0a66c2;
  color: #fff;
  border: 1px solid transparent;
  font-weight: 600;
}

.linkedin-badge:hover {
  background: #004182;
}

.section {
  padding: 2rem 0;
}

.section.alt {
  background: var(--surface);
}

/* Section styling enhancements */
.section[id] {
  scroll-margin-top: 72px;
}

.section h2 {
  font-size: clamp(1.4rem, 1.2vw + 1.1rem, 2rem);
  margin-bottom: 0.3rem;
}

.section h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: var(--primary);
  border-radius: 9999px;
  margin-top: 0.4rem;
}

.section h3 {
  margin-top: 1rem;
}

.section p:first-of-type {
  color: var(--text);
}

/* Nicer lists with accent markers */
.section .list {
  list-style: none;
  padding-left: 0;
}

.section .list li {
  position: relative;
  padding-left: 1.2rem;
}

.section .list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--primary);
  font-weight: 800;
}

/* Two-column lists on wider screens for dense sections */
@media (min-width: 900px) {
  #expertises .list {
    columns: 2;
    column-gap: 2rem;
  }

  #expertises .list li {
    break-inside: avoid;
  }
}

/* Styled quote */
blockquote {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--primary);
  background: var(--surface);
  border-radius: 0.6rem;
  color: var(--text);
  font-style: italic;
}

/* Alternate background rhythm */
main .section:nth-of-type(even) {
  background: var(--surface);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.card:hover {
  box-shadow: 0 6px 20px rgba(30, 41, 59, 0.1);
}

.list {
  margin: 0;
  padding-left: 1.1rem;
}

/* Loosen spacing for training/formation lists */
.list li {
  margin: 0.35rem 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.footer-inner nav {
  display: flex;
  gap: 1rem;
}

/* Contact form */
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.6rem 0.7rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
}

/* Ensure textarea text is normal weight */
.contact-form textarea,
.contact-form input,
.contact-form textarea::placeholder,
.contact-form input::placeholder {
  font-weight: 400;
}

/* Add space above submit button */
.contact-form button[type="submit"] {
  margin-top: 0.6rem;
}

/* Page hero and breadcrumbs */
.page-hero {
  background: linear-gradient(180deg, var(--surface), #fff);
  border-bottom: 1px solid var(--border);
}

.page-hero .inner {
  padding: 1.2rem 0;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.breadcrumbs a {
  text-decoration: underline;
}

/* CTA banner */
.cta-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

/* Generic image placeholder */
.img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--border);
  border-radius: 0.8rem;
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Logo badges */
.logo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: #fff;
}

.logo-badge img {
  height: 20px;
  width: auto;
  display: block;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat .num {
  font-size: 1.6rem;
  font-weight: 800;
}

.stat .label {
  color: var(--muted);
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* Timeline */
.timeline {
  border-left: 2px solid var(--border);
  margin: 1rem 0;
  padding-left: 1rem;
}

.timeline .item {
  margin: 0.6rem 0;
}

.timeline .item h4 {
  margin: 0 0 0.2rem;
}

/* Brand carousel */
.brand-carousel {
  position: relative;
}

.brand-track {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.6rem 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.brand-track::-webkit-scrollbar {
  display: none;
}

.brand-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 600;
}

.brand-nav {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.brand-btn {
  pointer-events: auto;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 0.6rem;
  padding: 0.3rem 0.6rem;
}

/* Brand cards */
.brand-card {
  width: 140px;
  text-align: center;
}

.brand-card .brand-logo {
  height: 44px;
  width: auto;
  display: inline-block;
}

.brand-card figcaption {
  margin-top: 0.3rem;
  font-size: 0.9rem;
}

/* Liquid glass layout for Expertises */
#expertises {
  position: relative;
  background: linear-gradient(180deg, var(--surface), #fff);
}

#expertises::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 10% 10%,
      color-mix(in oklab, var(--primary), white 80%) 0%,
      transparent 60%),
    radial-gradient(50% 50% at 90% 20%,
      color-mix(in oklab, var(--primary), white 85%) 0%,
      transparent 60%),
    radial-gradient(50% 50% at 20% 90%,
      color-mix(in oklab, var(--primary), white 90%) 0%,
      transparent 60%);
  opacity: 0.35;
  pointer-events: none;
}

#expertises .container {
  position: relative;
}

.glass-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .glass-grid {
    grid-template-columns: 1fr;
  }
}

.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 1rem;
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0));
  pointer-events: none;
}

.glass-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.glass-card .list li::before {
  color: color-mix(in oklab, var(--primary), black 10%);
}

/* Interventions blocks styling */
.interventions {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 1rem;
  box-shadow: var(--shadow);
  margin-top: 0.6rem;
}

.interventions h3 {
  margin-top: 0;
}

.interventions .list {
  margin: 0.4rem 0;
}

.interventions .list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 800;
}

@media (min-width: 900px) {
  .interventions .list {
    columns: 2;
    column-gap: 2rem;
  }

  .interventions .list li {
    break-inside: avoid;
  }
}