/* =============================================
   Portfólio – Rúbia Raquel Dantas Roque
   Acessibilidade & Educação Especial
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
  --clr-primary:      #174a68;
  --clr-primary-dark: #10364d;
  --clr-secondary:    #2f6f68;
  --clr-accent:       #e4b85b;
  --clr-coral:        #e87472;
  --clr-sky:          #47a8d1;
  --clr-mint-soft:    #e6f5ef;
  --clr-rose-soft:    #fbe9ef;
  --clr-sky-soft:     #e3f2f8;
  --clr-gold-soft:    #fff3d8;
  --clr-bg:           #f7f9f8;
  --clr-surface:      #ffffff;
  --clr-text:         #17232d;
  --clr-text-muted:   #52616d;
  --clr-border:       #dbe3e7;
  --clr-focus:        #b42318;

  --radius:       8px;
  --radius-lg:    28px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.18);

  --font-sans:    'Source Sans 3', 'Segoe UI', sans-serif;
  --font-display: 'Manrope', 'Segoe UI', sans-serif;
  --font-mono:    'Courier New', monospace;
  --fs-sm:        0.875rem;
  --fs-base:      1rem;
  --fs-lg:        1.125rem;
  --fs-xl:        1.375rem;
  --fs-2xl:       1.75rem;
  --fs-3xl:       2.25rem;
  --fs-4xl:       3rem;

  --transition:   0.3s ease;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  background-image: none;
  transition: background-color var(--transition), color var(--transition);
}

img { display: block; max-width: 100%; height: auto; }
a  { color: var(--clr-primary); text-decoration: underline; }
a:hover { color: var(--clr-primary-dark); }
ul, ol { list-style: none; }

main {
  position: relative;
}

section[id] {
  scroll-margin-top: 92px;
}

main::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: none;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--clr-focus);
  color: #fff;
  padding: .5rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  font-size: var(--fs-lg);
  text-decoration: none;
  transition: top var(--transition);
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

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

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.navbar.navbar--scrolled {
  background: rgba(255,255,255,.985);
  border-bottom-color: rgba(23,74,104,.12);
  box-shadow: 0 10px 32px rgba(16,54,77,.12);
}
.navbar__inner {
  max-width: 1320px;
  margin: 0 auto;
  min-height: 74px;
  padding: .65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--clr-primary);
  text-decoration: none;
  flex-shrink: 0;
}
.navbar__brand:hover { color: var(--clr-primary-dark); }

.navbar__brand-logo {
  width: 50px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

.navbar__brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.navbar__brand-copy strong {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 800;
}

.navbar__brand-copy small {
  color: var(--clr-text-muted);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .03em;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.navbar__menu-contact {
  display: none;
}

.navbar__link {
  padding: .55rem .8rem;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-text);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.navbar__link:hover,
.navbar__link:focus-visible {
  background: var(--clr-sky-soft);
  color: var(--clr-primary);
}

.navbar__controls {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.navbar__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .65rem 1.45rem;
  border-radius: 999px;
  background: var(--clr-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition);
}

.navbar__contact:hover {
  transform: translateY(-2px);
  background: var(--clr-primary-dark);
  color: #fff;
}

.btn-icon {
  background: none;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: .4rem .65rem;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--clr-text);
  transition: background var(--transition), color var(--transition);
  line-height: 1;
}
.btn-icon:hover { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }

/* Hamburger */
.navbar__hamburger {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  background: #fff;
  padding: 7.5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  left: -6rem;
  bottom: 1rem;
  width: 12rem;
  height: 12rem;
  border: 28px solid var(--clr-gold-soft);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  right: -4rem;
  top: 7rem;
  width: 9rem;
  height: 18rem;
  border-radius: 80px 0 0 80px;
  background: var(--clr-rose-soft);
}

.hero__panel {
  min-height: 610px;
  padding: clamp(2rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 2;
  border-radius: 36px;
  background: #e7f4f4;
}

.hero__content {
  position: relative;
  z-index: 4;
  color: var(--clr-text);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(23,74,104,.12);
  border-radius: 9999px;
  padding: .35rem 1rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hero__name {
  max-width: 720px;
  font-size: clamp(2.55rem, 5.2vw, 4.8rem);
  font-weight: 800;
  line-height: 1.06;
  margin-bottom: 1.25rem;
  color: var(--clr-primary);
  font-family: var(--font-display);
  letter-spacing: -.055em;
}

.hero__summary {
  max-width: 55ch;
  margin-bottom: 2.25rem;
  color: #31566d;
  font-size: clamp(var(--fs-base), 1.5vw, var(--fs-lg));
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 52px;
  padding: .8rem 1.65rem;
  border-radius: 999px;
  font-size: var(--fs-base);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), transform .15s, box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

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

.btn--text:hover {
  color: var(--clr-primary-dark);
  background: rgba(255,255,255,.72);
  box-shadow: none;
}

.hero__photo {
  position: absolute;
  right: -2%;
  bottom: -4%;
  z-index: 2;
  width: min(88%, 450px);
  max-height: 108%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 18px 24px rgba(16,54,77,.2));
}

.hero__visual {
  align-self: stretch;
  min-height: 470px;
  position: relative;
}

.hero__shape {
  position: absolute;
  display: block;
  z-index: 1;
}

.hero__shape--teal {
  left: 2%;
  bottom: 0;
  width: 42%;
  height: 66%;
  border-radius: 140px 140px 20px 20px;
  background: #69c5ba;
}

.hero__shape--gold {
  right: -16%;
  top: 5%;
  width: 66%;
  height: 90%;
  background: var(--clr-accent);
  clip-path: polygon(8% 0, 100% 22%, 100% 100%, 0 100%, 0 24%);
}

.hero__shape--coral {
  left: 38%;
  top: 0;
  width: 22%;
  height: 54%;
  border-radius: 0 0 18px 18px;
  background: var(--clr-coral);
  transform: rotate(-8deg);
}

.hero__caption {
  position: absolute;
  left: -2%;
  bottom: 10%;
  z-index: 3;
  min-width: 190px;
  padding: 1rem 1.25rem;
  border-radius: 18px 18px 18px 4px;
  background: #fff;
  color: var(--clr-primary);
  box-shadow: var(--shadow-md);
}

.hero__caption::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: -14px;
  border-width: 14px 0 0 18px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}

.hero__caption strong,
.hero__caption span {
  display: block;
}

.hero__caption strong {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 800;
}

.hero__caption span {
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.hero__credentials {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1120px;
  margin: -1px auto 0;
  overflow: hidden;
  border: 1px solid var(--clr-border);
  border-radius: 0 0 28px 28px;
  background: var(--clr-border);
  box-shadow: var(--shadow-sm);
}

.hero__credential {
  min-height: 112px;
  padding: 1.35rem;
  background: #fff;
}

.hero__credential strong,
.hero__credential span {
  display: block;
}

.hero__credential strong {
  margin-bottom: .25rem;
  color: var(--clr-primary);
  font-family: var(--font-display);
  font-size: var(--fs-base);
}

.hero__credential span {
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.4;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4rem, 7vw, 6rem) 1.5rem;
  position: relative;
  z-index: 1;
}

.section--alt {
  background: #fff;
}

.section--accent {
  background: #f7fbfb;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
}

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

.section__eyebrow {
  display: inline-block;
  color: var(--clr-secondary);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .5rem;
}

.section__title {
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-3xl));
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--clr-text);
  margin-bottom: .75rem;
  letter-spacing: -.02em;
}

.section__desc {
  color: var(--clr-text-muted);
  max-width: 60ch;
  margin: 0 auto;
  font-size: var(--fs-lg);
}

.section__header--left {
  text-align: left;
}

.section__header--left .section__desc {
  margin-left: 0;
}

/* ---------- Soluções profissionais ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card {
  position: relative;
  min-height: 240px;
  padding: 2rem;
  overflow: hidden;
  background: var(--clr-sky-soft);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: #fff;
  font-size: var(--fs-base);
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: 2rem;
}

.service-card__title {
  color: var(--clr-primary-dark);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  margin-bottom: .75rem;
}

.service-card p {
  color: var(--clr-text-muted);
  max-width: 52ch;
}

.service-card::after {
  content: '';
  position: absolute;
  right: -3rem;
  top: -3rem;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: rgba(255,255,255,.42);
}

.service-card:nth-child(2) { background: var(--clr-mint-soft); }
.service-card:nth-child(3) { background: var(--clr-gold-soft); }
.service-card:nth-child(4) { background: var(--clr-rose-soft); }

.section-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--clr-primary-dark);
  border-radius: var(--radius-lg);
  color: #fff;
}

.section-cta p {
  font-size: var(--fs-lg);
  font-weight: 700;
}

.section-cta .btn--primary {
  flex-shrink: 0;
  background: #fff;
  border-color: #fff;
  color: var(--clr-primary-dark);
}

.section-cta .btn--primary:hover {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: var(--clr-primary-dark);
}

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.differential-card {
  min-height: 260px;
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.differential-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.differential-card--mint { background: var(--clr-mint-soft); }
.differential-card--rose { background: var(--clr-rose-soft); }
.differential-card--sky  { background: var(--clr-sky-soft); }
.differential-card--gold { background: var(--clr-gold-soft); }

.differential-card__number {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  border-radius: 50%;
  background: var(--clr-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
}

.differential-card--rose .differential-card__number { background: #b43b5f; }
.differential-card--sky .differential-card__number { background: #176f92; }
.differential-card--gold .differential-card__number { background: #855600; }

.differential-card__title {
  font-size: var(--fs-xl);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: .75rem;
  color: var(--clr-primary);
}

.differential-card__text {
  color: var(--clr-text-muted);
  font-size: var(--fs-base);
}

.differentials-quote {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  border-left: 6px solid var(--clr-accent);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.differentials-quote p {
  color: var(--clr-text);
  font-size: var(--fs-lg);
}

.contact-callout {
  margin: 0 auto 2rem;
  max-width: 860px;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(26, 82, 118, .08), rgba(243, 156, 18, .08));
  border: 1px solid rgba(26, 82, 118, .14);
  color: var(--clr-text-muted);
  box-shadow: var(--shadow-sm);
}

.contact-callout p {
  font-size: var(--fs-lg);
}

/* ---------- Sobre / About ---------- */
.story-split {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.story-split__visual {
  min-height: 470px;
  padding: 1.25rem 0 2rem 1.25rem;
  position: relative;
}

.story-split__photo {
  width: 100%;
  height: 440px;
  position: relative;
  overflow: hidden;
  border-radius: 34px 34px 34px 34px;
  background: none;
}

.story-split__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mask-repeat: no-repeat;
  mask-composite: intersect;
}

.story-split__photo::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 84px;
  height: 84px;
  border-radius: 26px 26px 6px 26px;
  background: var(--clr-accent);
  box-shadow: var(--shadow-md);
}

.story-split__tag {
  position: absolute;
  right: -1rem;
  bottom: 1rem;
  padding: .8rem 1.15rem;
  border-radius: 16px 16px 16px 4px;
  background: #fff;
  color: var(--clr-primary);
  font-size: var(--fs-sm);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.story-split__content .section__title {
  color: var(--clr-primary);
  max-width: 18ch;
}

.story-split__content p {
  color: var(--clr-text-muted);
  margin-bottom: 1.25rem;
  font-size: var(--fs-lg);
}

.story-split__content .story-split__lead {
  color: var(--clr-text);
  font-weight: 600;
}

.story-split__content .btn {
  margin-top: .5rem;
}

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

.stat-card {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-top: 4px solid var(--clr-secondary);
  border-radius: 20px;
  padding: 1.5rem 1rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.stat-card__number {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--clr-primary);
  line-height: 1;
  margin-bottom: .25rem;
}

.stat-card__label {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  font-weight: 600;
}

/* ---------- Cards grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.card__icon--blue   { background: #dbeafe; color: #1e40af; }
.card__icon--green  { background: #dcfce7; color: #15803d; }
.card__icon--purple { background: #ede9fe; color: #7c3aed; }
.card__icon--orange { background: #fef3c7; color: #b45309; }
.card__icon--red    { background: #fee2e2; color: #b91c1c; }
.card__icon--teal   { background: #ccfbf1; color: #0f766e; }

.card__label {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--clr-text-muted);
  margin-bottom: .25rem;
}

.card__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .5rem;
}

.card__body {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.6;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 9999px;
  padding: .2rem .75rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--clr-text-muted);
}
/* ---------- Education ---------- */
.education__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.edu-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-top: 4px solid var(--clr-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.edu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.edu-card--green  { border-top-color: var(--clr-secondary); }
.edu-card--orange { border-top-color: var(--clr-accent); }

.edu-card__period {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: .25rem;
}
.edu-card--green  .edu-card__period { color: var(--clr-secondary); }
.edu-card--orange .edu-card__period { color: #b45309; }

.edu-card__type {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--clr-text-muted);
  margin-bottom: .5rem;
}

.edu-card__title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .4rem;
}

.edu-card__inst {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

/* ---------- Publications ---------- */
.pub-list { display: flex; flex-direction: column; gap: 1.25rem; }

.pub-item {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--clr-primary);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.pub-item:hover { box-shadow: var(--shadow-md); }
.pub-item--book    { border-left-color: var(--clr-secondary); }
.pub-item--chapter { border-left-color: var(--clr-accent); }
.pub-item--conf    { border-left-color: #8b5cf6; }

.pub-item__type {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-primary);
  margin-bottom: .35rem;
}
.pub-item--book    .pub-item__type { color: var(--clr-secondary); }
.pub-item--chapter .pub-item__type { color: #b45309; }
.pub-item--conf    .pub-item__type { color: #7c3aed; }

.pub-item__title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .35rem;
}

.pub-item__details {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.5;
}

/* ---------- Research ---------- */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.research-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.research-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.research-card__badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 9999px;
  padding: .3rem .9rem;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.research-card__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .75rem;
}

.research-card__desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.research-card__keywords { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- Keywords / Tags ---------- */
.tags-cloud { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }

.tag--primary {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}
.tag--secondary {
  background: var(--clr-secondary);
  color: #fff;
  border-color: var(--clr-secondary);
}

/* ---------- Accessibility Highlights ---------- */
.a11y-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.a11y-item {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.a11y-item__icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.a11y-item__title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .2rem;
}

.a11y-item__desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
}

/* ---------- Contact ---------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.contact__info-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.contact__info-label {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--clr-text-muted);
  margin-bottom: .1rem;
}

.contact__info-value {
  font-size: var(--fs-base);
  color: var(--clr-text);
  word-break: break-word;
}
.contact__info-value a { color: var(--clr-primary); }

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

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-decoration: none;
  color: var(--clr-text);
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
  text-decoration: none;
}
.link-card__icon { font-size: 2rem; }
.link-card__label { font-size: var(--fs-sm); }

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(135deg, var(--clr-primary-dark), #10293d 72%);
  color: rgba(255,255,255,.9);
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.footer__logo {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: .5rem;
}

.footer__tagline {
  font-size: var(--fs-sm);
  opacity: .7;
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.footer__link {
  color: rgba(255,255,255,.75);
  text-decoration: underline;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.footer__link:hover { color: #fff; }

.footer__copy {
  font-size: .75rem;
  opacity: .5;
}

/* ---------- Back-to-top ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  background: var(--clr-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover   { transform: scale(1.1); }

/* ---------- Motion ---------- */
.motion-ready .hero__badge,
.motion-ready .hero__name,
.motion-ready .hero__summary,
.motion-ready .hero__actions {
  animation: hero-content-in .72s cubic-bezier(.2,.75,.25,1) both;
}

.motion-ready .hero__name    { animation-delay: .08s; }
.motion-ready .hero__summary { animation-delay: .16s; }
.motion-ready .hero__actions { animation-delay: .24s; }

.motion-ready .hero__visual {
  animation: hero-visual-in .9s .18s cubic-bezier(.2,.75,.25,1) both;
}

.motion-ready .hero__shape--teal {
  animation: shape-float 6s 1.1s ease-in-out infinite alternate;
}

.motion-ready .hero__shape--gold {
  animation: shape-float 7s 1.45s ease-in-out infinite alternate-reverse;
}

.motion-ready .hero__shape--coral {
  animation: shape-float 5.5s 1.25s ease-in-out infinite alternate;
}

.motion-ready .motion-reveal {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity .7s cubic-bezier(.2,.75,.25,1),
    translate .7s cubic-bezier(.2,.75,.25,1);
  transition-delay: var(--motion-delay, 0ms);
  will-change: opacity, translate;
}

.motion-ready .motion-reveal.is-visible {
  opacity: 1;
  translate: 0 0;
  will-change: auto;
}

@keyframes hero-content-in {
  from { opacity: 0; translate: 0 22px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes hero-visual-in {
  from { opacity: 0; translate: 32px 12px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes shape-float {
  from { translate: 0 0; }
  to   { translate: 0 -10px; }
}
/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__panel       { grid-template-columns: 1fr; padding: 3rem; }
  .hero__content     { text-align: center; }
  .hero__summary     { margin: 0 auto 2rem; }
  .hero__actions     { justify-content: center; }
  .hero__visual      { width: min(100%, 580px); min-height: 440px; margin: 1rem auto 0; }
  .hero__credentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-split       { grid-template-columns: 1fr; }
  .story-split__visual { width: min(100%, 680px); margin: 0 auto; }
  .story-split__content { text-align: center; }
  .story-split__content .section__title { max-width: 22ch; margin-left: auto; margin-right: auto; }
  .about__stats      { grid-template-columns: repeat(2, 1fr); }
  .contact-wrapper   { grid-template-columns: 1fr; }
  .links-grid        { grid-template-columns: repeat(2, 1fr); }
  .services-grid     { grid-template-columns: 1fr; }
}

@media (max-width: 1050px) {
  .navbar__menu {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: .25rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    pointer-events: none;
  }
  .navbar__menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .navbar__link { width: 100%; padding: .65rem 1rem; }
  .navbar__hamburger { display: flex; }
  .navbar__menu-contact { display: block; width: 100%; }

  .education__grid   { grid-template-columns: 1fr; }
  .research-grid     { grid-template-columns: 1fr; }
  .a11y-grid         { grid-template-columns: 1fr; }
  .links-grid        { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .section { padding: 3rem 1rem; }
  .hero    { padding: 6rem .75rem 2.5rem; }
  .hero__panel { min-height: auto; padding: 2rem 1.25rem 0; border-radius: 24px; }
  .hero__name { font-size: 2.45rem; }
  .hero__visual { min-height: 340px; }
  .hero__photo {
    right: 0;
    bottom: -2%;
    width: min(92%, 390px);
    max-height: 104%;
  }
  .hero__caption { left: 0; min-width: 165px; }
  .hero__credentials { grid-template-columns: 1fr; border-radius: 0 0 22px 22px; }
  .hero__credential { min-height: auto; padding: 1rem 1.25rem; }
  .navbar__brand-copy small { display: none; }
  .navbar__contact { display: none; }
  .story-split__visual { min-height: 330px; padding-left: 0; }
  .story-split__photo { height: 320px; }
  .story-split__tag { right: 0; }
  .about__stats { grid-template-columns: 1fr 1fr; margin-top: 2.5rem; }
  .differentials-grid { grid-template-columns: 1fr; }
  .section-cta { align-items: stretch; flex-direction: column; text-align: center; }
  .section-cta .btn { justify-content: center; }
  .service-card { min-height: auto; padding: 1.5rem; }
}

/* ---------- Print ---------- */
@media print {
  .navbar, .back-to-top, .hero__actions, .navbar__controls { display: none; }
  .hero  { min-height: auto; padding: 2rem 0; break-inside: avoid; }
  .section { padding: 2rem 0; }
  a::after  { content: " (" attr(href) ")"; font-size: .8em; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .motion-ready .motion-reveal {
    opacity: 1;
    translate: none;
  }
}
