:root {
  --bg: #0b0b0c;
  --bg-soft: #121215;
  --surface: #17171b;
  --line: #2a2a31;
  --text: #f5f5f7;
  --muted: #c2c2cb;
  --accent: #c1123d;
  --accent-soft: #ff2f61;
  --container: 1120px;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #09090a 0%, #0e0e10 100%);
  color: var(--text);
  line-height: 1.6;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  z-index: 999;
}

.skip-link:focus {
  left: 1rem;
}

.header {
  --header-height: 78px;
  --logo-size: 66px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(8, 8, 9, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    background 0.38s ease,
    border-color 0.38s ease,
    box-shadow 0.38s ease,
    backdrop-filter 0.38s ease;
}

.header.is-expanded {
  --header-height: 112px;
  --logo-size: 96px;
  background: rgba(8, 8, 10, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--header-height);
  transition: min-height 0.38s ease;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.logo-image {
  width: var(--logo-size);
  height: var(--logo-size);
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.35),
    0 0 0 6px rgba(0, 0, 0, 0.28);
  background: radial-gradient(circle at 50% 40%, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.7));
  filter: brightness(1.04) contrast(1.05);
  transition: width 0.38s ease, height 0.38s ease, box-shadow 0.38s ease, border-color 0.38s ease;
}

.logo-text {
  font-size: 1.06rem;
  font-weight: 700;
  transition: font-size 0.38s ease, letter-spacing 0.38s ease;
}

.header.is-expanded .logo-text {
  font-size: 1.14rem;
  letter-spacing: 0.45px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  transition: gap 0.38s ease;
}

.header.is-expanded .nav {
  gap: 1.45rem;
}

.nav a {
  position: relative;
  color: #e8e8ed;
  font-size: 0.95rem;
  transition: color 0.25s ease, font-size 0.38s ease;
}

.header.is-expanded .nav a {
  font-size: 0.99rem;
}

.nav a:hover {
  color: white;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.24rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(193, 18, 61, 0.9), rgba(255, 255, 255, 0));
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  opacity: 0.68;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  margin: 5px 0;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.82rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), #8f0f2d);
  color: white;
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease, filter 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(193, 18, 61, 0.22);
  filter: saturate(1.04);
}

.btn:active {
  transform: translateY(0);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -32%;
  width: 28%;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
  opacity: 0;
  transition: left 0.42s ease, opacity 0.26s ease;
}

.btn:hover::before {
  left: 112%;
  opacity: 1;
}

.btn-small {
  padding: 0.56rem 0.9rem;
  font-size: 0.9rem;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding-top: 78px;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img {
  width: 110%;
  height: 110%;
  object-fit: cover;
  transform: translate3d(-2%, 0, 0) scale(1.08);
  transform-origin: center center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 400px at 75% 2%, rgba(193, 18, 61, 0.2), transparent 60%),
    radial-gradient(700px 280px at 8% 85%, rgba(255, 255, 255, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(11, 11, 12, 0.35), rgba(11, 11, 12, 0.88));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-inline {
  display: grid;
  grid-template-columns: clamp(180px, 24vw, 340px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.8rem, 2.4vw, 2rem);
  max-width: 980px;
}

.hero-copy {
  max-width: 700px;
}

.hero-kicker {
  color: #f8d8de;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  line-height: 1.15;
  font-family: Manrope, Inter, sans-serif;
}

h1 {
  font-size: clamp(2rem, 5.3vw, 4rem);
}

.hero-title-line {
  display: block;
  white-space: nowrap;
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.hero-rotating-title.is-switching .hero-title-line {
  opacity: 0.08;
  transform: translateY(7px);
  filter: blur(1.5px);
}

h2 {
  font-size: clamp(1.55rem, 3.1vw, 2.5rem);
}

h3 {
  font-size: 1.27rem;
}

.hero p {
  max-width: 62ch;
  font-size: 1.08rem;
  color: #e0e0e5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.hero-watermark {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  opacity: 0.92;
  mix-blend-mode: normal;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.16));
  pointer-events: none;
}

.section {
  position: relative;
  padding: 5.6rem 0;
}

.section-dark {
  background: linear-gradient(180deg, var(--bg-soft), #131317);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kicker {
  color: #f5c5d1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clean-list li {
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.clean-list li:last-child {
  border-bottom: 0;
}

.section-head {
  margin-bottom: 1.7rem;
  position: relative;
}

.section-head::after {
  content: "";
  display: block;
  width: 88px;
  height: 2px;
  margin-top: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(193, 18, 61, 0.85), rgba(255, 255, 255, 0));
  background-size: 180% 100%;
  background-position: 120% 0;
  opacity: 0.28;
  transform: scaleX(0.65);
  transform-origin: left;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.section.is-active .section-head::after {
  opacity: 0.62;
  transform: scaleX(1);
  animation: sectionLineFlow 3.2s linear infinite;
}

@keyframes sectionLineFlow {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -60% 0;
  }
}

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

.subtitle-note {
  font-size: 0.9rem;
  opacity: 0.82;
  margin-top: 0.8rem;
}

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

.card {
  --card-tilt-x: 0deg;
  --card-tilt-y: 0deg;
  --card-glow-x: 50%;
  --card-glow-y: 50%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #16161a, #1a1a20);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.2rem;
  transform: perspective(900px) rotateX(var(--card-tilt-x)) rotateY(var(--card-tilt-y)) translateY(0);
  transition: transform 0.3s ease, border-color 0.25s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  will-change: transform;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--card-glow-x) var(--card-glow-y), rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 52%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  transform: perspective(900px) rotateX(var(--card-tilt-x)) rotateY(var(--card-tilt-y)) translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 11px 22px rgba(0, 0, 0, 0.22);
}

.card:hover::before {
  opacity: 0.48;
}

.achievement-list {
  margin: 0.7rem 0 0;
  padding-left: 1.05rem;
  color: #d9d9e1;
}

.achievement-list li {
  margin-bottom: 0.22rem;
}

.achievement-list li::marker {
  color: #f1c2cf;
}

.professor-card {
  display: flex;
  flex-direction: column;
}

.achievement-more {
  margin-top: auto;
  padding-top: 0.6rem;
  display: flex;
  flex-direction: column;
}

.achievement-more summary {
  cursor: pointer;
  color: #f5f5fa;
  font-size: 0.88rem;
  font-weight: 600;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(193, 18, 61, 0.5);
  background: linear-gradient(135deg, rgba(193, 18, 61, 0.28), rgba(193, 18, 61, 0.1));
  box-shadow: 0 6px 14px rgba(193, 18, 61, 0.16);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.achievement-more summary::marker,
.achievement-more summary::-webkit-details-marker {
  display: none;
}

.achievement-more summary::after {
  content: "+";
  color: #ffdce5;
  font-weight: 700;
}

.achievement-more[open] summary::after {
  content: "-";
}

.achievement-more summary .label-open {
  display: none;
}

.achievement-more[open] summary .label-closed {
  display: none;
}

.achievement-more[open] summary .label-open {
  display: inline;
}

.achievement-more summary:hover,
.achievement-more summary:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(193, 18, 61, 0.78);
  box-shadow: 0 10px 18px rgba(193, 18, 61, 0.22);
  filter: saturate(1.05);
}

.achievement-list-compact {
  order: 1;
  margin-top: 0.35rem;
  margin-bottom: 0.2rem;
}

.achievement-more summary {
  order: 2;
  align-self: flex-start;
}

.avatar {
  width: 100%;
  aspect-ratio: 6 / 5;
  border-radius: 12px;
  margin-bottom: 0.95rem;
  background-size: cover;
  background-position: center;
}

.avatar-marcio {
  background-image:
    linear-gradient(160deg, rgba(8, 8, 10, 0.12) 0%, rgba(8, 8, 10, 0.5) 100%),
    image-set(
      url("assets/professores/prof-marcio-ibjjf.webp") type("image/webp"),
      url("assets/professores/prof-marcio-ibjjf.png") type("image/png")
    );
  background-position: center, center 18%;
}

.avatar-gabi {
  background-image:
    linear-gradient(160deg, rgba(8, 8, 10, 0.12) 0%, rgba(8, 8, 10, 0.5) 100%),
    image-set(url("assets/professores/prof-gabi.webp") type("image/webp"), url("assets/professores/prof-gabi.png") type("image/png"));
  background-position: center, center 14%;
}

.table-wrap {
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 980px;
}

caption {
  text-align: left;
  padding: 1rem 1rem 0.2rem;
  color: var(--muted);
}

th,
td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

th {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #f8d9e1;
  text-transform: uppercase;
}

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

.gallery-item {
  background:
    radial-gradient(180px 85px at 18% 20%, rgba(193, 18, 61, 0.42), transparent 68%),
    linear-gradient(140deg, #1f1f24, #141418);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.8rem;
  color: #f7f7fb;
}

.chip {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.5rem;
}

.text-link {
  color: var(--accent-soft);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  transition: color 0.24s ease, gap 0.24s ease, transform 0.24s ease;
}

.text-link::after {
  content: "→";
  opacity: 0.85;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.text-link:hover,
.text-link:focus-visible {
  gap: 0.4rem;
  transform: translateX(1px);
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(1px);
  opacity: 1;
}

.contact-list .text-link::after {
  content: none;
}

.blog-card {
  display: grid;
  gap: 0.4rem;
}

.section-actions {
  margin-top: 1.15rem;
}

.article-main {
  padding-top: 98px;
}

.article-content {
  max-width: 780px;
}

.article-content h1 {
  margin-bottom: 0.6rem;
}

.article-content h2 {
  margin-top: 1.8rem;
  margin-bottom: 0.55rem;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}

.article-content p {
  color: #e2e2e9;
  margin: 0.55rem 0;
}

.article-meta {
  color: #b7b7c0;
  font-size: 0.9rem;
  margin-bottom: 1.3rem;
}

.article-cta {
  margin-top: 1.7rem !important;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
}

.section-contact {
  background:
    radial-gradient(800px 240px at 85% 10%, rgba(193, 18, 61, 0.16), transparent 70%),
    linear-gradient(180deg, #0f0f12, #0b0b0d);
}

.contact-list li {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.contact-form {
  background: #121217;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: grid;
  gap: 0.5rem;
}

label {
  font-size: 0.93rem;
  color: #e4e4ea;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #353541;
  background: #0f0f13;
  color: white;
  border-radius: 10px;
  padding: 0.72rem 0.75rem;
  font: inherit;
  margin-bottom: 0.6rem;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(193, 18, 61, 0.35);
  border-color: rgba(193, 18, 61, 0.55);
  box-shadow: 0 0 0 3px rgba(193, 18, 61, 0.1);
  transform: translateY(-1px);
}

.form-note {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

#form-feedback {
  min-height: 1.2rem;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.6rem 0;
  background: #09090b;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #d5d5de;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
}

.footer-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.1s;
}

@media (max-width: 920px) {
  .avatar {
    aspect-ratio: 4 / 3;
  }

  .header.is-expanded {
    --header-height: 98px;
    --logo-size: 78px;
  }

  .hero-inline {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    max-width: 700px;
  }

  .hero-watermark {
    width: min(34vw, 190px);
    min-width: 130px;
    justify-self: center;
  }

  .grid-two,
  .cards {
    grid-template-columns: 1fr;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    right: 4%;
    width: min(320px, 92%);
    background: rgba(18, 18, 23, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
  }

  .logo-text {
    font-size: 0.98rem;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 88vh;
  }

  h1 {
    font-size: clamp(1.62rem, 7.1vw, 2.35rem);
  }

  .header.is-expanded {
    --header-height: 92px;
    --logo-size: 72px;
  }

  .hero-watermark {
    width: min(44vw, 180px);
  }

  .section {
    padding: 4.4rem 0;
  }

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

@media (max-width: 760px) {
  .table-wrap {
    overflow: hidden;
    background: transparent;
    border: 0;
  }

  table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
  }

  caption {
    padding: 0.2rem 0 0.5rem;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 0.78rem;
  }

  tbody tr {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: #15151a;
    overflow: hidden;
  }

  tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.78rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
  }

  tbody td:first-child {
    display: block;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
  }

  tbody td:first-child::before {
    content: "Turma";
    display: block;
    margin-bottom: 0.22rem;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #f1c2cf;
    font-weight: 600;
  }

  tbody td:last-child {
    border-bottom: 0;
  }

  tbody td:not(:first-child)::before {
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #f1c2cf;
    font-weight: 600;
    flex-shrink: 0;
  }

  tbody td:nth-child(2)::before {
    content: "Segunda";
  }

  tbody td:nth-child(3)::before {
    content: "Terça";
  }

  tbody td:nth-child(4)::before {
    content: "Quarta";
  }

  tbody td:nth-child(5)::before {
    content: "Quinta";
  }

  tbody td:nth-child(6)::before {
    content: "Sexta";
  }

  tbody td:nth-child(7)::before {
    content: "Sábado";
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img {
    transform: translate3d(0, 0, 0) scale(1.02) !important;
    will-change: auto;
  }

  .header,
  .nav-wrap,
  .logo-image,
  .logo-text,
  .nav,
  .nav a,
  .btn,
  .card,
  .card::before,
  .text-link,
  input,
  textarea,
  select {
    transition: none !important;
  }

  .hero-title-line {
    transition: none !important;
  }

  .section-head::after {
    animation: none !important;
    transition: none !important;
  }
}
