/* =============================================
   PROLES CONSULTING — P5 DESIGN SYSTEM
   ============================================= */

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

:root {
  --bg:       #0A0A0A;
  --surface:  #1A1A1A;
  --gold:     #C9A84C;
  --red:      #CC0000;
  --white:    #F5F5F5;
  --muted:    #888888;
  --gold-glow: 0 0 18px rgba(201,168,76,0.45);
  --red-glow:  0 0 18px rgba(204,0,0,0.45);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 {
  font-family: 'Bebas Neue', 'Montserrat', sans-serif;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.2s;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn--gold {
  background: var(--gold);
  color: var(--red);
}
.btn--gold:hover {
  background: var(--red);
  color: var(--gold);
  box-shadow: var(--red-glow);
  transform: translateY(-2px);
}

.btn--outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  clip-path: none;
  padding: 10px 24px;
  font-size: 0.8rem;
  margin-top: 16px;
}
.btn--outline-gold:hover {
  background: var(--gold);
  color: #0A0A0A;
  box-shadow: var(--gold-glow);
  transform: translateY(-2px);
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.97);
  border-bottom: 1px solid #1f1f1f;
  backdrop-filter: blur(8px);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav__logo:hover { opacity: 0.8; }
.nav__logo-accent { color: var(--red); }

.nav__links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav__links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s;
}
.nav__links a:hover { color: var(--gold); }
.nav__links a:hover::after { width: 100%; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 32px;
}

.hero__bg-stripes {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -55deg,
      transparent,
      transparent 60px,
      rgba(201,168,76,0.025) 60px,
      rgba(201,168,76,0.025) 61px
    );
  pointer-events: none;
}

.hero__crimson-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(204,0,0,0.12) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.hero-logo-bg {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  max-width: 960px;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-logo-bg img {
  width: 100%;
  height: auto;
  display: block;
  filter: invert(1) sepia(1) saturate(3) hue-rotate(5deg);
}

.hero-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: var(--red);
  letter-spacing: 0.12em;
  line-height: 1;
}
.brand-divider {
  color: var(--gold);
  font-size: 1.8rem;
  line-height: 1;
  opacity: 0.7;
}
.brand-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  color: var(--gold);
  font-style: italic;
  letter-spacing: 0.04em;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero__eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--red);
}

.hero__headline {
  font-size: clamp(4rem, 12vw, 9rem);
  color: var(--white);
  line-height: 0.9;
  margin-bottom: 28px;
  position: relative;
}
.hero__headline::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 120px;
  height: 4px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0% 100%);
}

.hero__sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--gold);
  margin-top: 28px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero__body {
  font-size: 1.05rem;
  color: rgba(245,245,245,0.75);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.75;
}

/* diamond decoration */
.hero__diamond-grid {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.diamond {
  background: transparent;
  border: 2px solid rgba(201,168,76,0.15);
  transform: rotate(45deg);
  position: absolute;
}
.diamond--lg { width: 400px; height: 400px; top: -200px; right: 40px; }
.diamond--md { width: 240px; height: 240px; top: -120px; right: 140px; border-color: rgba(204,0,0,0.12); }
.diamond--sm { width: 120px; height: 120px; top: -60px; right: 200px; border-color: rgba(201,168,76,0.25); }

/* =============================================
   SECTION BASE
   ============================================= */
.section {
  padding: 100px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.section__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
}

.section__stripe {
  width: 6px;
  height: 52px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0% 100%);
  flex-shrink: 0;
}

.section__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  letter-spacing: 0.06em;
}

/* =============================================
   SERVICES
   ============================================= */
.section--services {
  border-top: 1px solid #1f1f1f;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--surface);
  border-left: 4px solid var(--red);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.25s;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 28px 28px 0;
  border-color: transparent var(--bg) transparent transparent;
}

.card:hover {
  box-shadow: 0 0 20px rgba(204,0,0,0.4);
  transform: translateY(-4px);
}

.card__icon {
  margin-bottom: 24px;
}

/* icon shapes — CSS only */
.icon-diamond {
  width: 36px;
  height: 36px;
  background: var(--gold);
  transform: rotate(45deg);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.icon-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 36px;
}
.icon-chart span {
  display: block;
  width: 8px;
  background: var(--gold);
  border-radius: 1px 1px 0 0;
}
.icon-chart span:nth-child(1) { height: 50%; }
.icon-chart span:nth-child(2) { height: 80%; }
.icon-chart span:nth-child(3) { height: 65%; }
.icon-chart span:nth-child(4) { height: 100%; }

.icon-hex {
  width: 38px;
  height: 38px;
  background: var(--gold);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.card__title {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.card__body {
  font-size: 0.92rem;
  color: rgba(245,245,245,0.7);
  line-height: 1.7;
}

/* =============================================
   TEAM
   ============================================= */
.section--team {
  border-top: 1px solid #1f1f1f;
}

.team__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.card--team {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: visible;
  clip-path: none;
}
.card--team::before { display: none; }

.card--team .card__avatar {
  width: 72px;
  height: 72px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: #0A0A0A;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  flex-shrink: 0;
  margin-bottom: 0;
}

.card--team .card__avatar--red {
  background: var(--red);
  color: var(--white);
}

.card--team .card__info {
  background: var(--surface);
  border-left: 4px solid var(--red);
  padding: 28px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  position: relative;
  margin-top: -20px;
  padding-top: 36px;
  transition: box-shadow 0.3s;
  flex: 1;
}
.card--team .card__info::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 28px 28px 0;
  border-color: transparent var(--bg) transparent transparent;
}

.card--team:hover .card__info {
  box-shadow: var(--gold-glow);
}

.card__name {
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 6px;
}

.card__role {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ---- Team Avatar Photo ---- */
.team-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  margin: 0 auto 1.5rem;
}

/* ---- Academic Profile ---- */
.academic-profile {
  margin-top: 24px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 18px 20px;
  position: relative;
}
.academic-profile::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
}

.academic-profile__label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.academic-profile__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201,168,76,0.3);
}

.academic-profile__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.academic-profile__list li {
  display: flex;
  gap: 12px;
  font-size: 0.84rem;
  line-height: 1.5;
}

.ap-key {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  min-width: 72px;
  text-transform: uppercase;
  flex-shrink: 0;
  padding-top: 1px;
}

.ap-val {
  color: rgba(245,245,245,0.78);
}

/* =============================================
   CONTACT
   ============================================= */
.section--contact {
  border-top: 1px solid #1f1f1f;
  text-align: center;
}

.section--contact .section__header {
  justify-content: center;
}

.contact__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact__tagline {
  font-size: 1.1rem;
  color: rgba(245,245,245,0.7);
  max-width: 480px;
  line-height: 1.7;
}

.contact__email {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}
.contact__email:hover {
  opacity: 0.75;
  text-shadow: var(--gold-glow);
}

.contact__btn {
  margin-top: 8px;
  background: var(--red);
  color: var(--gold);
}
.contact__btn:hover {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: var(--gold-glow);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid #1a1a1a;
  padding: 28px 32px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* =============================================
   P5 REVEAL ANIMATIONS
   ============================================= */
.p5-reveal {
  opacity: 0;
  transform: translateX(-40px) skewX(-3deg);
  transition: opacity 0.35s cubic-bezier(0.22,1,0.36,1), transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.p5-reveal.from-right {
  transform: translateX(40px) skewX(3deg);
}
.p5-reveal.from-bottom {
  transform: translateY(30px) skewY(-1deg);
}
.p5-reveal.visible {
  opacity: 1;
  transform: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .team__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .hero__diamond-grid { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 100px 20px 60px; }
  .section { padding: 60px 20px; }

  .nav__inner { padding: 0 20px; }
  .nav__links { gap: 20px; }
  .nav__links a { font-size: 0.7rem; }

  .section__title { font-size: 2rem; }

  .ap-key { min-width: 60px; font-size: 0.62rem; }
  .academic-profile__list li { font-size: 0.8rem; }
}
