/* ============================================
   CABINET AVOCADOS — Sailop Seed 2020
   Light mode · Vert 100° + Indigo · Archivo Black + Work Sans
   ============================================ */

@layer base, components, utilities;

/* --- Sailop Design System — Seed 2020 (refined) --- */
:root {
  --primary: hsl(160, 25%, 12%);
  --primary-light: hsl(160, 20%, 20%);
  --primary-dark: hsl(160, 30%, 6%);
  --accent: hsl(153, 40%, 24%);
  --accent-light: hsl(153, 35%, 32%);
  --accent-dark: hsl(153, 50%, 18%);
  --secondary: hsl(240, 18%, 38%);
  --text: hsl(30, 8%, 20%);
  --text-light: hsl(30, 5%, 38%);
  --text-muted: hsl(30, 4%, 55%);
  --bg: hsl(38, 20%, 96%);
  --bg-light: hsl(38, 15%, 97%);
  --bg-dark: hsl(38, 12%, 92%);
  --border: hsl(38, 10%, 84%);
  --white: hsl(40, 20%, 99%);
  --black: hsl(160, 15%, 10%);
  --surface: hsl(38, 15%, 97%);
  --surface-raised: hsl(38, 10%, 94%);
  --success: hsl(145, 40%, 38%);
  --error: hsl(0, 55%, 50%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
  --radius-sm: 4px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-main: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Archivo Black', 'Arial Black', sans-serif;
  --max-width: 1240px;
  --header-height: 88px;
  --s-unit: 5px;
  --s-gap-a: 108px;
  --s-gap-b: 120px;
}

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

html {
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Typography (craft: text-wrap, clamp) --- */
h1, h2 {
  font-family: var(--font-heading);
  color: var(--black);
  line-height: 1.15;
  font-weight: 400;
  text-wrap: balance;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--black);
  line-height: 1.25;
  font-weight: 600;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p, dd {
  margin-bottom: 1rem;
  text-wrap: pretty;
}

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

/* --- Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* craft: logical properties, scroll-margin, content-visibility */
section[id] {
  scroll-margin-top: 80px;
}

section:not(:first-of-type) {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.section {
  padding-block: var(--s-gap-a);
  margin-inline: auto;
}

.section:nth-of-type(even) {
  padding-block: var(--s-gap-b);
}

.section--gray {
  background: var(--bg-light);
}

.section--dark {
  background: var(--primary);
  color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--primary);
  margin: 1rem auto 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.97);
}

/* Buttons: conservative, not SaaS */
.btn--primary {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
  padding: 0.9rem 2rem;
}

.btn--primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
}

.btn--outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  padding: 0.9rem 2rem;
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--white {
  background: var(--surface);
  color: var(--primary);
}

.btn--white:hover {
  background: var(--bg-light);
}

.btn--dark {
  background: var(--primary);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--primary-light);
}

.btn--sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
/* Sailop Seed 2020 Nav: sticky top, border-bottom, brand left, links right */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

/* Scrolled compact state */
.header--scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  border-bottom-color: transparent;
}

/* Accent line that sweeps on load */
.header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.header--revealed::after {
  transform: scaleX(1);
}

/* Hide accent line when scrolled (shadow takes over) */
.header--scrolled::after {
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.header__top {
  background: var(--primary);
  color: var(--white);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  max-height: 40px;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              padding 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s ease;
}

.header--scrolled .header__top {
  max-height: 0;
  padding: 0;
  opacity: 0;
}

.header__top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__top a {
  color: rgba(255, 255, 255, 0.8);
}

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

.header__top-contact {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.header__top-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.header__main {
  padding: 0;
  border-bottom: none;
}

.header__main-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 88px;
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.header--scrolled .header__main-inner {
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo__name {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: font-size 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              letter-spacing 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.header--scrolled .logo__name {
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__list {
  display: flex;
  gap: 0;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.3s ease, opacity 0.3s ease;
}

.nav__link:hover,
.nav__link--active {
  color: var(--accent);
}

.nav__link svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition);
}

.nav__item:hover .nav__link svg {
  transform: rotate(180deg);
}

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--surface-raised);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s ease;
  border-top: none;
  border-bottom: 2px solid var(--accent);
}

.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.nav__dropdown-link:hover {
  background: var(--primary);
  color: var(--accent);
  padding-left: 1.75rem;
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.header__cta {
  margin-left: 1.5rem;
}

/* Scrolled CTA compact */
.header--scrolled .header__cta {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
/* Hero: text left, photo right */
.hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  padding-block: 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 75vh;
  align-items: center;
}

.hero__content {
  padding-block: 100px 80px;
  padding-right: 4rem;
}

.hero__image {
  position: relative;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero__text {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Three.js Liquid Glass canvas */
.hero--webgl .hero__img {
  opacity: 0;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ============================================
   VALUES / PILLARS SECTION
   Seed 1513: single column, thick border-left per item (color varies)
   ============================================ */
.values {
  padding-block: var(--s-gap-b);
  background: var(--bg-light);
}

/* Values: simple list with left border */
.values__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
}

.value-item {
  padding: 1.75rem 2rem;
  position: relative;
  border-left: 3px solid var(--border);
  transition: border-color 0.3s ease;
}

.value-item:hover {
  border-left-color: var(--accent);
}

.value-item__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.value-item__text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================
   KEY FIGURES
   ============================================ */
.keyfigures {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}

.keyfigure {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.keyfigure__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--black);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.keyfigure__label {
  font-size: 0.9rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .keyfigures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* ============================================
   PRACTICE AREAS / SERVICES
   ============================================ */
/* Services grid: 2 columns */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  padding: 2rem;
  background: var(--white);
  border-radius: 0;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--accent);
}

.service-card__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
}

.service-card:hover .service-card__number {
  color: var(--accent);
}

.service-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.service-card__text {
  color: var(--text-light);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 1rem;
}

.service-card__count {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  transition: all var(--transition);
}

.service-card__link:hover {
  color: var(--accent);
  gap: 0.75rem;
}

/* ============================================
   TEAM / PEOPLE
   ============================================ */
.team__filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  align-items: center;
}

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

.team__filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-light);
  transition: all var(--transition);
  cursor: pointer;
}

.team__filter-btn:hover,
.team__filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.team__search {
  position: relative;
  margin-left: auto;
  min-width: 280px;
}

.team__search input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
}

.team__search input:focus {
  border-color: var(--accent);
}

.team__search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-card {
  text-align: center;
  transition: all var(--transition);
}

.team-card:hover {
  /* no movement */
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-light) 100%);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
}

.team-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
  opacity: 0.3;
}

.team-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(20, 16, 12, 0.9));
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.team-card:hover .team-card__overlay {
  opacity: 1;
}

.team-card__overlay a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.8rem;
  transition: background var(--transition);
}

.team-card__overlay a:hover {
  background: var(--accent);
}

.team-card__name {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

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

.team-card__role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.team-card__specialty {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 0.3rem;
}

/* ============================================
   EXPERIENCE / CASE STUDIES
   ============================================ */
.experience__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.experience-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: none;
  border-bottom: 2px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.experience-card:hover {
  border-color: var(--accent);
}

.experience-card__header {
  padding: 1.5rem 2rem;
  background: var(--primary);
  color: var(--white);
}

.experience-card__tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.experience-card__amount {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
}

.experience-card__body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.experience-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.experience-card__text {
  color: var(--text-light);
  font-size: 0.9rem;
  flex: 1;
}

/* ============================================
   NEWS / INSIGHTS
   ============================================ */
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: none;
  border-bottom: 2px solid var(--border);
  transition: all 0.3s ease;
}

.news-card:hover {
  border-color: var(--accent);
}

.news-card__image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__image-placeholder {
  color: rgba(255, 255, 255, 0.2);
  font-size: 3rem;
}

.news-card__body {
  padding: 1.5rem;
}

.news-card__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.news-card__category {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-card__title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

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

.news-card__excerpt {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  padding: 5rem 0;
  background: var(--primary);
  text-align: center;
  position: relative;
}

.cta__content {
  max-width: 600px;
  margin: 0 auto;
}

.cta__title {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta__text {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta__count {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.cta__count-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 4rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

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

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  margin-bottom: 1.25rem;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer__description {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links a {
  font-size: 0.9rem;
}

.footer__contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  align-items: flex-start;
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0.15rem;
}

.footer__newsletter {
  margin-top: 1.5rem;
}

.footer__newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.footer__newsletter-form input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 0.85rem;
  outline: none;
}

.footer__newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer__newsletter-form input:focus {
  border-color: var(--accent);
}

.footer__newsletter-form button {
  padding: 0.65rem 1.25rem;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background var(--transition);
}

.footer__newsletter-form button:hover {
  background: var(--accent-light);
}

.footer__bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer__bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

/* ============================================
   PAGE BANNERS
   ============================================ */
.page-banner {
  padding: 6rem 0 3rem;
  background: var(--primary-dark);
  text-align: center;
}

.page-banner__title {
  font-size: 2.75rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.page-banner__breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

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

.page-banner__breadcrumb span {
  color: var(--accent);
}

/* ============================================
   ABOUT / CABINET PAGE
   ============================================ */
.about__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__image-placeholder {
  color: rgba(255, 255, 255, 0.15);
  font-size: 4rem;
  font-family: var(--font-heading);
}

.about__text h3 {
  margin-bottom: 1rem;
}

.about__text p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline__item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
}

.timeline__item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline__content {
  width: 45%;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: none;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.timeline__item:nth-child(odd) .timeline__content {
  margin-right: auto;
  margin-left: 5%;
}

.timeline__item:nth-child(even) .timeline__content {
  margin-left: auto;
  margin-right: 5%;
}

.timeline__dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.timeline__year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline__text {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact__form {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: none;
  border-bottom: 2px solid var(--border);
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.3s ease;
  outline: none;
  background: var(--white);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: var(--accent);
}

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

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

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact__info-card {
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact__info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__info-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.contact__info-title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.contact__info-text {
  color: var(--text-light);
  font-size: 0.9rem;
}

.contact__map {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-dark);
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* ============================================
   CAREERS PAGE
   ============================================ */
.careers__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.job-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: none;
  border-bottom: 2px solid var(--border);
  padding: 2rem;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.job-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.job-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.job-card__title {
  font-size: 1.2rem;
}

.job-card__type {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(27, 67, 50, 0.1);
  color: var(--accent-dark);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.job-card__meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.job-card__description {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* ============================================
   NEWS/INSIGHTS PAGE
   ============================================ */
.news-page__filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.news-page__filter {
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
}

.news-page__filter:hover,
.news-page__filter.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.news-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.news-featured-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  min-height: 350px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: flex-end;
  transition: all var(--transition);
}

.news-featured-card:hover {
  box-shadow: var(--shadow-md);
}

.news-featured-card__content {
  padding: 2rem;
  color: var(--white);
  position: relative;
  z-index: 2;
  background: linear-gradient(transparent, rgba(12, 10, 8, 0.9));
  width: 100%;
  padding-top: 6rem;
}

.news-featured-card__category {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.news-featured-card__title {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.news-featured-card__date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   SERVICES PAGE (FULL)
   ============================================ */
.services-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--border);
}

.services-tab {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}

.services-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.services-tab:hover,
.services-tab.active {
  color: var(--primary);
}

.services-tab.active::after {
  transform: scaleX(1);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.services-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--surface);
  border: none;
  border-bottom: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.services-list-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.services-list-item__left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.services-list-item__number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 40px;
}

.services-list-item__title {
  font-size: 1.1rem;
  font-weight: 600;
}

.services-list-item__count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.services-list-item__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.services-list-item__arrow {
  color: var(--text-muted);
  transition: all var(--transition);
}

.services-list-item:hover .services-list-item__arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .hero__title { font-size: 2.25rem; }
  .hero__content { padding-right: 2rem; }

  .team__grid { grid-template-columns: repeat(3, 1fr); }
  .news__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .section { padding: 3.5rem 0; }
  .container { padding: 0 1.25rem; }

  /* Header mobile */
  .header__top { display: none; }

  .hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__content {
    padding-block: 60px 40px;
    padding-right: 0;
  }

  .hero__image {
    min-height: 300px;
  }

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

  .page-banner {
    padding: 4rem 0 2rem;
  }

  .logo__name {
    font-size: 1.4rem;
    letter-spacing: 0.08em;
  }

  .nav__toggle { display: flex; }

  .nav__list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .nav__list.active {
    transform: translateX(0);
  }

  .nav__link {
    padding: 0.85rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    padding-left: 1rem;
    display: none;
  }

  .nav__item.open .nav__dropdown {
    display: block;
  }

  .header__cta { display: none; }

  /* Hero mobile */
  .hero__title { font-size: 2.25rem; }
  .hero__text { font-size: 1rem; }

  /* Grids mobile */
  /* values: already single column */
  .services__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .experience__grid { grid-template-columns: 1fr; }
  .news__grid { grid-template-columns: 1fr; }
  .news-featured { grid-template-columns: 1fr; }
  .about__intro { grid-template-columns: 1fr; gap: 2rem; }
  .contact__grid { grid-template-columns: 1fr; gap: 2rem; }
  .careers__intro { grid-template-columns: 1fr; gap: 2rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }

  .team__filters {
    flex-direction: column;
    align-items: stretch;
  }

  .team__search {
    margin-left: 0;
    min-width: auto;
  }

  /* Timeline mobile */
  .timeline::before { left: 20px; }
  .timeline__item,
  .timeline__item:nth-child(odd) { flex-direction: column; }
  .timeline__content,
  .timeline__item:nth-child(odd) .timeline__content,
  .timeline__item:nth-child(even) .timeline__content {
    width: 100%;
    margin-left: 50px;
    margin-right: 0;
  }
  .timeline__dot { left: 20px; }

  /* Footer mobile */
  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

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

  .page-banner__title { font-size: 2rem; }
  .cta__title { font-size: 2rem; }
  .cta__count { font-size: 3rem; }

  .services-tabs { overflow-x: auto; }
  .services-tab { padding: 0.75rem 1.25rem; font-size: 0.9rem; white-space: nowrap; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 1.6rem; }
  .hero__buttons { flex-direction: column; }
  .hero__image { min-height: 220px; }
  .team__grid { grid-template-columns: 1fr; }
}

/* ============================================
   MICRO ANIMATIONS & INTERACTIONS
   ============================================ */

.btn {
  position: relative;
  overflow: hidden;
}

/* Link underline animation */
.animated-link {
  position: relative;
  display: inline-block;
}

.animated-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.animated-link:hover::after {
  width: 100%;
}

/* Nav link hover micro-animation */
.nav__link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav__link:hover::before,
.nav__link--active::before {
  width: 80%;
  left: 10%;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--primary);
  z-index: 10001;
  width: 0%;
  transition: width 0.1s linear;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--white);
}

/* ============================================
   ARTICLE / SINGLE POST PAGE
   ============================================ */
.article {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.article__meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.article__category {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(27, 67, 50, 0.1);
  color: var(--accent-dark);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article__date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.article__author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
}

.article__reading-time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article__hero-image {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.article__hero-placeholder {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.15);
  font-family: var(--font-heading);
}

.article__content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
}

.article__content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
}

.article__content h3 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.article__content p {
  margin-bottom: 1.5rem;
}

.article__content ul,
.article__content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article__content ul { list-style: disc; }
.article__content ol { list-style: decimal; }

.article__content li {
  margin-bottom: 0.5rem;
}

.article__content blockquote {
  border-left: 4px solid var(--accent);
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--bg-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-light);
}

.article__content blockquote p {
  margin-bottom: 0;
}

.article__content a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.article__content .highlight-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

.article__content .highlight-box h3 {
  color: var(--accent);
  margin-top: 0;
}

.article__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.article__tag {
  padding: 0.3rem 0.8rem;
  background: var(--bg-light);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-light);
  transition: all var(--transition);
}

.article__tag:hover {
  background: var(--primary);
  color: var(--white);
}

.article__share {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.article__share-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.article__share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-light);
  transition: all var(--transition);
}

.article__share-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* Author bio card */
.article__author-bio {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  margin: 2rem 0;
  align-items: flex-start;
}

.article__author-bio-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
}

.article__author-bio-name {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.article__author-bio-role {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.article__author-bio-text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Related articles */
.related-articles {
  padding: 3rem 0;
}

.related-articles__title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

/* ============================================
   ADA / ACCESSIBILITY
   ============================================ */

/* Focus visible styles */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip to content link */
.skip-link {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 2rem;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  z-index: 99999;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-progress { display: none; }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --bg: #000000;
    --white: #ffffff;
    --accent: #ffcc00;
    --text: #ffffff;
    --border: #444444;
  }

  .btn--primary {
    border: 2px solid currentColor;
  }
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Ensure text remains visible during font load */
.font-loading body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   PROGRAMS GRID (Careers)
   ============================================ */
.programs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.program-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border: none;
  border-bottom: 2px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}

.program-card:hover {
  border-color: var(--accent);
}

.program-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.program-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.program-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.program-card__text {
  color: var(--text-light);
  font-size: 0.9rem;
}

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

  .article__hero-image { height: 250px; }
  .article { padding: 2rem 1.25rem 3rem; }

  .article__author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ============================================
   LENIS SMOOTH SCROLL
   ============================================ */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* ============================================
   COLOR-AWARE HEADER
   ============================================ */
.header--inverted .header__main {
  background: var(--primary-dark);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.header--inverted .logo__name {
  color: var(--white);
}

/* tagline removed */

.header--inverted .nav__link {
  color: rgba(255, 255, 255, 0.85);
}

.header--inverted .nav__link:hover,
.header--inverted .nav__link--active {
  color: var(--accent);
}

.header--inverted .header__cta {
  border-color: var(--accent);
}

.header--inverted .nav__toggle span {
  background: var(--surface);
}

/* ============================================
   HORIZONTAL SCROLL SECTION
   ============================================ */
.horizontal-scroll {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.horizontal-scroll__track {
  display: flex;
  gap: 2rem;
  padding: 0 4vw;
  width: max-content;
  will-change: transform;
}

.horizontal-scroll__header {
  min-width: 35vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 4rem;
  flex-shrink: 0;
}

.horizontal-scroll__header h2 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.horizontal-scroll__header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  max-width: 400px;
}

.horizontal-scroll .experience-card {
  min-width: 380px;
  max-width: 420px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .horizontal-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .horizontal-scroll__track {
    padding: 0 1.25rem;
    gap: 1rem;
  }
  .horizontal-scroll__header {
    min-width: 80vw;
    padding-right: 1rem;
  }
  .horizontal-scroll .experience-card {
    min-width: 280px;
    max-width: 320px;
  }
}

/* ============================================
   MARQUEE / TICKER
   ============================================ */
.marquee {
  overflow: hidden;
  padding: 1.5rem 0;
  background: var(--primary);
  position: relative;
}

.marquee--accent {
  background: var(--accent);
}

.marquee__track {
  display: flex;
  gap: 3rem;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 3rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.marquee--accent .marquee__item {
  color: rgba(20, 16, 12, 0.2);
}

.marquee__separator {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.3;
}

.marquee--accent .marquee__separator {
  background: var(--primary);
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent) 20%,
    var(--accent) 80%,
    transparent 100%
  );
  opacity: 0.3;
  transform-origin: left center;
}

/* ============================================
   REVEAL IMAGE
   ============================================ */
.reveal-image {
  clip-path: inset(0);
  will-change: clip-path;
}

/* ============================================
   ENHANCED HERO STYLES
   ============================================ */
.hero__title span {
  color: var(--accent);
  position: relative;
  display: inline;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-light) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta {
  position: relative;
}

/* ============================================
   RESPONSIVE: DISABLE HEAVY EFFECTS ON MOBILE
   ============================================ */
@media (max-width: 768px) {
  .marquee__item { font-size: 1rem; }
  .marquee__track { gap: 2rem; }

  .horizontal-scroll__header h2 { font-size: 1.75rem; }
}

/* ============================================
   ENHANCED NEWS CARD IMAGE HOVER
   ============================================ */
.news-card__image {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.news-card:hover .news-card__image {
  transform: scale(1.02);
}

.news-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(191,155,64,0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.news-card:hover .news-card__image::after {
  opacity: 1;
}

/* ============================================
   ANIMATED UNDERLINES ON FOOTER LINKS
   ============================================ */
.footer__links a {
  position: relative;
  display: inline-block;
}

.footer__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer__links a:hover::after {
  width: 100%;
}

/* ============================================
   EXPERIENCE CARD AMOUNT GRADIENT TEXT
   ============================================ */
.experience-card__amount {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================
   SMOOTH IMAGE CLIP REVEALS
   ============================================ */
.about__image,
.article__hero-image {
  will-change: clip-path;
}

/* ============================================
   ENHANCED TEAM CARD HOVER
   ============================================ */
.team-card__photo-placeholder {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s ease;
}

.team-card:hover .team-card__photo-placeholder {
  filter: brightness(1.05);
}

.team-card__overlay {
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(10px);
}

.team-card:hover .team-card__overlay {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   IMAGE INTEGRATIONS
   ============================================ */

/* --- Hero Background Image --- */
.hero__bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: grayscale(40%) brightness(0.8);
  transform: scale(1.05);
  transition: transform 8s ease-out, opacity 2s ease;
}

.hero:hover .hero__bg-img {
  transform: scale(1.0);
}

/* --- Page Banner Background Image --- */
.page-banner {
  position: relative;
  overflow: hidden;
}

.page-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: grayscale(30%);
  z-index: 0;
}

.page-banner .container {
  position: relative;
  z-index: 2;
}

/* --- Featured News Card Image --- */
.news-featured-card {
  position: relative;
}

.news-featured-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.35;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.news-featured-card:hover .news-featured-card__img {
  transform: scale(1.05);
  opacity: 0.45;
}

.news-featured-card__content {
  position: relative;
  z-index: 2;
}

/* --- Contact Map Image --- */
.contact__map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.4s ease;
}

.contact__map:hover .contact__map-img {
  filter: grayscale(0%);
}

/* --- Article Author Bio Photo (as img) --- */
img.article__author-bio-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img.article__author-bio-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.2);
}

/* --- Article Author Avatar (as img in meta) --- */
img.article__author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  vertical-align: middle;
}

/* --- Team Card Photo (real images) --- */
.team-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.team-card:hover .team-card__img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* --- News Card Image hover enhance --- */
.news-card__img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-card__img {
  transform: scale(1.08);
}

/* --- About Image enhance --- */
.about__img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about__image:hover .about__img {
  transform: scale(1.03);
}

/* --- Mobile responsive for images --- */
@media (max-width: 768px) {
  .hero__bg-img {
    opacity: 0.08;
  }

  .page-banner__bg {
    opacity: 0.07;
  }

  img.article__author-bio-photo {
    width: 60px;
    height: 60px;
  }
}

/* ============================================
   SAILOP CRAFT SIGNALS
   ============================================ */

/* craft: :has() for parent-aware styling */
.service-card:has(:hover) {
  border-bottom-color: var(--accent);
}

.news-card:has(:hover) {
  border-bottom-color: var(--accent);
}

.value-item:has(:hover) {
  border-left-color: var(--accent);
}

/* craft: interactive element hover/active */
a:hover, button:hover {
  transform: translateY(-2px);
}

a:active, button:active {
  transform: scale(0.97);
}

/* Seed 2020 background effect 4: mix-blend-mode accent on dividers */
.sailop-dots {
  display: none;
}

.section-divider {
  position: relative;
}

.section-divider::after {
  content: '';
  position: absolute;
  inset: -2px 0;
  background: var(--accent);
  mix-blend-mode: overlay;
  opacity: 0.15;
  pointer-events: none;
}

/* ============================================
   SAILOP: SECONDARY COLOR ACCENTS
   ============================================ */
.section-header .section-title::after {
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}

.experience-card__amount {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
}

.scroll-progress {
  background: linear-gradient(90deg, var(--accent), var(--secondary), var(--accent));
}
