:root {
  color-scheme: dark;
  --bg: #080b10;
  --panel: #10151b;
  --bg-alt: #10151b;
  --text: #f1f4f8;
  --muted: #a7b1c0;
  --line: #293543;
  --blue: #718eff;
  --yellow: #ffc247;
  --green: #68b779;
  --red: #e87979;
  --gray: #9aa8b4;
  --ink: #dfe6ec;
  --shadow: rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-soft: 12px;
  --max-width: 1320px;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.section-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 1.5rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: relative;
  isolation: isolate;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.site-header::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 700px;
  content: "";
  transform: translateX(-50%);
  background-image:
    linear-gradient(90deg, #080b10 0%, rgba(8, 11, 16, 0.97) 29%, rgba(8, 11, 16, 0.82) 48%, rgba(8, 11, 16, 0.18) 83%),
    linear-gradient(0deg, #080b10 0%, rgba(8, 11, 16, 0) 34%),
    url("../img/hero-background.jpg"),
    radial-gradient(ellipse at 78% 18%, rgba(46, 76, 153, 0.19), transparent 45%),
    linear-gradient(rgba(117, 145, 194, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 145, 194, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, #080e1a, #09111f 58%, #080c15);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat;
  background-position: center, center, right center, center, center, center, center;
  background-size: cover, cover, auto 100%, auto, 40px 40px, 40px 40px, cover;
}

.site-header::after {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 700px;
  content: "";
  transform: translateX(-50%);
  opacity: 0.28;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, transparent 0 20%, rgba(136, 162, 211, 0.13) 20.08%, transparent 20.16% 100%),
    linear-gradient(45deg, transparent 0 74%, rgba(136, 162, 211, 0.1) 74.08%, transparent 74.16% 100%),
    radial-gradient(circle at 20% 35%, transparent 0 34px, rgba(136, 162, 211, 0.12) 35px 36px, transparent 37px),
    radial-gradient(circle at 75% 52%, transparent 0 54px, rgba(136, 162, 211, 0.1) 55px 56px, transparent 57px);
}

.topbar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.9rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0 1rem;
  border-bottom: 1px solid rgba(219, 228, 241, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  letter-spacing: -0.04em;
}

.brand-mark {
  position: relative;
  display: block;
  flex: 0 0 2.6rem;
  width: 2.6rem;
  height: 1.75rem;
  overflow: hidden;
}

.brand-slash {
  transform-box: fill-box;
  transform-origin: center;
}

.brand-slash-rise {
  animation: brand-rise 6.4s linear infinite;
  filter: drop-shadow(0 0 4px rgba(90, 125, 255, 0.65));
}

.brand-slash-fall {
  animation: brand-fall 6.4s linear infinite;
  filter: drop-shadow(0 0 4px rgba(90, 125, 255, 0.65));
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 1.8rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: #e3e8f0;
}

.nav-links a {
  position: relative;
}

.nav-links a span {
  margin-left: 0.12rem;
  color: #c4ceda;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  min-height: 525px;
  padding: 2.7rem 0 4.2rem;
}

.eyebrow,
.kicker {
  margin: 0 0 0.9rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.eyebrow-label {
  position: relative;
  padding-bottom: 0.55rem;
}

.eyebrow-label::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.35rem;
  height: 2px;
  content: "";
}

.eyebrow-blue::after {
  width: 4.2rem;
  background: linear-gradient(90deg, #537cff 0 54%, #64b785 54% 82%, #ffc247 82%);
}

.eyebrow-green::after {
  width: 1.35rem;
  background: var(--yellow);
}

.eyebrow-yellow::after {
  width: 1.7rem;
  background: var(--green);
}

.hero-title {
  position: relative;
  display: grid;
  gap: 0.03em;
  width: fit-content;
  max-width: min(100%, 12.5ch);
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.065em;
  font-size: clamp(2rem, 3.35vw, 3.15rem);
  text-shadow: 0 5px 24px rgba(0, 0, 0, 0.18);
}

.hero-title-line {
  display: block;
}

.hero-title-line:first-child {
  white-space: nowrap;
}

.hero-title-blue {
  color: #7299ff;
}

.hero-process-word {
  color: transparent;
  background-image:
    repeating-linear-gradient(90deg, rgba(215, 229, 255, 0.52) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(0deg, rgba(215, 229, 255, 0.34) 0 1px, transparent 1px 8px),
    linear-gradient(110deg, #8eafff, #5278f5);
  background-color: #6f96ff;
  background-blend-mode: screen, screen, normal;
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-title-gold {
  color: var(--yellow);
}

.hero-signature-mark {
  display: block;
  width: 2.1rem;
  height: 1.4rem;
  margin-top: 1.2rem;
}

.hero-tagline {
  margin: 0.65rem 0 0;
  max-width: 29rem;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.42;
  color: #c5cfdd;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #aabbe0;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 500;
}

.hero-explore::before {
  content: "↓";
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
}

.hero-explore:hover,
.hero-explore:focus-visible {
  gap: 1rem;
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-family: var(--sans);
  border: 1px solid var(--line);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.section-spacing {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.section-heading {
  margin-bottom: 1.35rem;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.bancadas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.bench-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(13, 19, 26, 0.96);
  border: 1px solid rgba(160, 177, 198, 0.2);
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow);
  overflow: hidden;
  min-height: 100%;
}

.bench-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
}

.tag {
  position: relative;
  top: auto;
  left: auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  order: 0;
  min-height: 2.2rem;
  padding: 0.65rem 0.85rem 0.1rem;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.035em;
}

.bench-image {
  position: relative;
  order: 2;
  overflow: hidden;
  height: 9rem;
  margin-top: auto;
}

.bench-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  transform: scale(1.18);
  transform-origin: left top;
}

.bench-copy {
  display: flex;
  order: 1;
  flex: 1;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.1rem 0.85rem 0.9rem;
}

.bench-copy h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.bench-icon {
  display: block;
  width: 1.45rem;
  height: 1.45rem;
  margin-bottom: 0.05rem;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.bench-card.blue .bench-icon,
.bench-card.green .bench-icon {
  fill: var(--accent);
  stroke: var(--accent);
}

.bench-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.bench-copy a {
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text);
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

.stats-panel {
  display: flex;
  flex-direction: row;
  gap: 0.65rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  align-items: stretch;
}

.stat-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.8rem 1rem;
  min-height: 5.75rem;
  border-radius: 14px;
}

.stat-item strong {
  font-family: var(--sans);
  font-size: clamp(1.75rem, 3.5vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 800;
  color: var(--text);
}

.stat-item span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.about-copy {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.about-copy p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.about-copy a {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.about-copy .ti-specialistas-link {
  text-decoration: none;
}

.about-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(10rem, 1fr);
  grid-template-rows: repeat(2, minmax(8rem, 1fr));
  gap: 0.8rem;
  min-height: 20rem;
}

.about-photo {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px 22px 4px 22px;
  background: var(--panel);
  box-shadow: 0 12px 30px var(--shadow);
}

.about-photo::after {
  position: absolute;
  inset: 35% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(8, 11, 14, 0.76));
  pointer-events: none;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo figcaption {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 0.8rem;
  left: 1rem;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.workbench-photo {
  grid-row: 1 / span 2;
}

.aquarium-photo {
  grid-column: 2;
  grid-row: 1;
}

.newspaper-photo {
  grid-column: 2;
  grid-row: 2;
  transform: scale(0.9);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 0.75rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(128, 150, 181, 0.65), rgba(128, 150, 181, 0.14));
}

.timeline-item {
  --timeline-color: var(--blue);
  position: relative;
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.9rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.9rem 1rem;
}

.timeline-item.highlight {
  border-color: rgba(43, 75, 255, 0.28);
}

.timeline-item.creation {
  --timeline-color: var(--green);
}

.timeline-item.hobby {
  --timeline-color: var(--red);
}

.timeline-item.sustainability {
  --timeline-color: var(--yellow);
}

.timeline-item.sustainability .timeline-dot {
  box-shadow: 0 0 0 4px rgba(255, 194, 71, 0.14);
}

.timeline-item.creation.hobby .timeline-dot {
  background: linear-gradient(135deg, var(--green) 0 50%, var(--red) 50%);
  box-shadow: 0 0 0 4px rgba(104, 183, 121, 0.12);
}

.timeline-item.origin {
  --timeline-color: var(--blue);
}

.timeline-item.origin .timeline-dot {
  background: linear-gradient(135deg, var(--blue) 0 34%, var(--green) 34% 67%, var(--yellow) 67%);
  box-shadow: 0 0 0 4px rgba(125, 146, 255, 0.12);
}

.timeline-item.education {
  border-style: dashed;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 1rem;
  height: 1rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--timeline-color);
  box-shadow: 0 0 0 4px rgba(113, 142, 255, 0.12);
}

.timeline-item.creation:not(.hobby) .timeline-dot {
  box-shadow: 0 0 0 4px rgba(104, 183, 121, 0.12);
}

.timeline-item.hobby:not(.creation) .timeline-dot {
  box-shadow: 0 0 0 4px rgba(232, 121, 121, 0.12);
}

.timeline-content {
  min-width: 0;
}

.period {
  display: inline-block;
  margin-bottom: 0.3rem;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.timeline-content p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.timeline-content p:last-child {
  margin-bottom: 0;
}

.timeline-content h3,
.trajectory-closing h3 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.trajectory-heading h2 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1;
}

.trajectory-intro {
  max-width: 58rem;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.15rem);
}

.trajectory-intro p {
  margin: 0 0 0.7rem;
}

.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.88rem;
}

.timeline-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-dot {
  display: inline-block;
  flex: 0 0 0.72rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
}

.legend-professional {
  background: var(--blue);
}

.legend-technology {
  background: var(--green);
}

.legend-education {
  background: linear-gradient(135deg, var(--blue) 0 34%, var(--green) 34% 67%, var(--yellow) 67%);
}

.legend-hobby {
  background: var(--red);
}

.legend-sustainability {
  background: var(--yellow);
}

.trajectory-closing {
  max-width: 58rem;
  margin-top: 2.5rem;
  padding: 1.4rem 1.5rem;
  border-left: 3px solid var(--green);
  background: linear-gradient(90deg, rgba(104, 183, 121, 0.09), transparent);
}

.trajectory-closing h3 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.trajectory-closing > p:last-child {
  margin: 0;
  color: var(--muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.project-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  background: #0a0f13;
}

.project-image img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-image-pending {
  background:
    radial-gradient(ellipse at 50% 85%, rgba(125, 146, 255, 0.12), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255, 255, 255, 0.035) 31px 32px),
    #0c1217;
}

.project-image-pending span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.project-header h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(62, 125, 79, 0.12);
  color: var(--green);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
}

.project-details p {
  margin: 0;
  color: var(--muted);
}

.project-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.2rem;
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.now-panel {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.2rem 1.1rem;
}

.now-panel p {
  margin: 0;
  font-size: 1.06rem;
}

.blog-list {
  display: grid;
  gap: 1rem;
}

.blog-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1rem 1.1rem;
}

.blog-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.04em;
}

.blog-item time {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.blog-item a {
  display: block;
  width: fit-content;
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cert-heading {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.carousel-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  transform: translateY(-1px);
  border-color: var(--text);
}

.cert-counter {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--sans);
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.cert-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thick;
  scrollbar-color: rgba(100, 115, 130, 0.7) transparent;
  padding-bottom: 0.5rem;
}

.cert-item {
  scroll-snap-align: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.cert-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: var(--category-color, var(--blue));
}

.cert-item-inner {
  display: grid;
  gap: 0.34rem;
  padding-left: 0.3rem;
}

.cert-header {
  display: flex;
  align-items: center;
}

.cert-header h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
}

.cert-item .issuer,
.cert-item .meta {
  color: var(--muted);
}

.cert-item .issuer {
  font-family: var(--sans);
  font-weight: 500;
}

.cert-item .note {
  font-size: 0.94rem;
  color: var(--muted);
}

.site-footer {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

@media (min-width: 721px) {
  .topbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .bancadas-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .stats-panel {
    position: static;
    top: auto;
    align-self: stretch;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cert-heading {
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
  }

  .cert-carousel {
    grid-auto-columns: calc(50% - 0.5rem);
  }
}

@media (min-width: 1360px) {
  .bancadas-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .bench-image {
    height: 8.5rem;
  }

  .bench-copy h3 {
    font-size: 1.05rem;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .stats-panel {
    gap: 0.4rem;
  }

  .stat-item {
    padding: 0.65rem 0.5rem;
    min-height: 5rem;
  }

  .stat-item strong {
    font-size: 1.7rem;
  }

  .stat-item span {
    font-size: 0.74rem;
  }
}

@media (max-width: 560px) {
  .about-gallery {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    grid-template-rows: repeat(2, minmax(7rem, 1fr));
    min-height: 16rem;
    gap: 0.55rem;
  }

  .about-photo figcaption {
    right: 0.55rem;
    bottom: 0.55rem;
    left: 0.55rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 720px) {
  .site-header::before {
    height: 760px;
    background-image:
      linear-gradient(90deg, rgba(8, 11, 16, 0.97), rgba(8, 11, 16, 0.83) 52%, rgba(8, 11, 16, 0.36)),
      linear-gradient(0deg, #080b10 0%, rgba(8, 11, 16, 0) 43%),
      url("../img/hero-background.jpg"),
      radial-gradient(ellipse at 80% 35%, rgba(46, 76, 153, 0.17), transparent 55%),
      linear-gradient(rgba(117, 145, 194, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(117, 145, 194, 0.05) 1px, transparent 1px),
      linear-gradient(135deg, #080e1a, #09111f 58%, #080c15);
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat;
    background-position: center, center, right bottom, center, center, center, center;
    background-size: cover, cover, auto 58%, auto, 32px 32px, 32px 32px, cover;
  }

  .site-header::after {
    height: 760px;
  }

  .topbar {
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 0.45rem 1.15rem;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 540px;
    padding-top: 2.3rem;
    padding-bottom: 3.7rem;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(1.8rem, 6vw, 2.55rem);
  }

  .timeline-legend {
    gap: 0.65rem 1rem;
    font-size: 0.82rem;
  }
}

@media (min-width: 980px) {
  .cert-carousel {
    grid-auto-columns: calc(33.333% - 0.7rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-slash-rise,
  .brand-slash-fall {
    animation: none;
  }
}

@keyframes brand-rise {
  0%, 5% {
    transform: translateY(0);
    opacity: 0;
  }
  12% {
    transform: translateY(0);
    opacity: 1;
  }
  17%, 58% {
    transform: translateY(0);
    opacity: 1;
  }
  68% {
    transform: translateY(-125%);
    opacity: 0;
  }
  100% {
    transform: translateY(-125%);
    opacity: 0;
  }
}

@keyframes brand-fall {
  0%, 5% {
    transform: translateY(-125%);
    opacity: 0;
  }
  12% {
    transform: translateY(0);
    opacity: 1;
  }
  17%, 58% {
    transform: translateY(0);
    opacity: 1;
  }
  68% {
    transform: translateY(125%);
    opacity: 0;
  }
  100% {
    transform: translateY(125%);
    opacity: 0;
  }
}
