/* Identity page — advanced */

.page-identity .page-main {
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 42%, var(--bg-subtle) 100%);
}

/* —— Hero —— */
.page-hero-identity .page-hero-bg {
  background:
    radial-gradient(ellipse 75% 60% at 50% 0%, rgba(187, 152, 93, 0.2), transparent 58%),
    radial-gradient(ellipse 35% 40% at 88% 75%, rgba(70, 72, 73, 0.4), transparent 50%),
    linear-gradient(165deg, #0a0b0c 0%, #161718 48%, #1e1f21 100%);
}

.page-hero-identity--center .page-hero-inner {
  max-width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-hero-identity--center .page-hero-lead {
  margin-inline: auto;
  max-width: 56ch;
  line-height: 1.85;
}

.id-hero-stroke {
  position: absolute;
  pointer-events: none;
  color: rgba(187, 152, 93, 0.08);
}

.id-hero-stroke--column {
  width: min(100px, 14vw);
  height: min(280px, 40vh);
  bottom: 8%;
  inset-inline-start: 6%;
  opacity: 0.7;
}

.id-hero-stroke--ring {
  width: min(320px, 45vw);
  height: min(320px, 45vw);
  top: -12%;
  inset-inline-end: -8%;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.35;
}

/* —— Sections shell —— */
.identity-page {
  position: relative;
}

.identity-block {
  position: relative;
  padding: clamp(2.75rem, 6vw, 4.25rem) 0;
}

.identity-block--about {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.identity-block--certs {
  background: var(--bg);
}

.identity-block--timeline {
  background: var(--bg-subtle);
}

.identity-block--founder {
  background: var(--bg);
}

.identity-block--values {
  background: var(--bg-subtle);
  padding-bottom: clamp(3.5rem, 7vw, 5rem);
}

.identity-panel {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 244, 240, 0.9) 100%);
  border: 1px solid rgba(187, 152, 93, 0.2);
  box-shadow: 0 20px 48px rgba(70, 72, 73, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .identity-panel {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.06) 0%, rgba(22, 23, 24, 0.95) 100%);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.identity-panel::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0.65;
}

/* —— Section headers —— */
.identity-sec {
  margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
}

.identity-sec__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.identity-sec__index {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(187, 152, 93, 0.55);
}

.identity-sec__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.identity-sec__title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  text-align: start;
}

.identity-sec__desc {
  margin: 0.65rem 0 0;
  max-width: 58ch;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-2);
  text-align: start;
}

/* —— About content —— */
.identity-about__lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.75;
  color: var(--text);
  text-align: start;
  max-width: 52ch;
}

.identity-about__prose {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 72ch;
}

.identity-about__prose p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-2);
  text-align: start;
}

.identity-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.85rem, 2vw, 1.15rem);
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.identity-pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border-radius: 16px;
  background: rgba(187, 152, 93, 0.06);
  border: 1px solid rgba(187, 152, 93, 0.18);
  text-align: start;
}

.identity-pillar strong {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: var(--gold-d, var(--gold));
  line-height: 1.2;
}

.identity-pillar span {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-3);
}

.identity-quote {
  margin: clamp(1.75rem, 4vw, 2.25rem) 0 0;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.35rem, 3vw, 2rem);
  border-radius: 18px;
  border-inline-start: 4px solid var(--gold);
  background: rgba(187, 152, 93, 0.08);
  text-align: start;
}

.identity-quote p {
  margin: 0 0 0.65rem;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  font-weight: 600;
  line-height: 1.75;
  color: var(--text);
}

.identity-quote cite {
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
}

/* —— Certifications —— */
.identity-certs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.35rem);
  margin-top: 0.5rem;
}

.identity-certs .cert-card {
  padding: clamp(1.35rem, 3vw, 1.75rem);
  border-radius: 18px;
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.identity-certs .cert-card:hover {
  transform: translateY(-3px);
  border-color: rgba(187, 152, 93, 0.35);
  box-shadow: 0 16px 40px rgba(70, 72, 73, 0.08);
}

.identity-certs .cert-card__img {
  height: 52px;
  width: auto;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.identity-certs h3 {
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.identity-certs p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-3);
}

/* —— Timeline —— */
.identity-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 1.25rem);
  position: relative;
}

.identity-timeline::before {
  content: "";
  position: absolute;
  top: 2.75rem;
  inset-inline: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.45;
  pointer-events: none;
}

.identity-tl {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: clamp(1.15rem, 2.5vw, 1.45rem);
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(187, 152, 93, 0.16);
  box-shadow: 0 12px 32px rgba(70, 72, 73, 0.05);
  text-align: start;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.identity-tl:hover {
  border-color: rgba(187, 152, 93, 0.38);
  transform: translateY(-2px);
}

.identity-tl__year {
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: rgba(187, 152, 93, 0.12);
  border: 1px solid rgba(187, 152, 93, 0.25);
  border-radius: 999px;
}

.identity-tl h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

.identity-tl p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--text-3);
}

/* —— Founder (no image box) —— */
.founder-panel {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 22px;
  background: linear-gradient(
    155deg,
    rgba(255, 251, 245, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 55%,
    rgba(246, 244, 240, 0.92) 100%
  );
  border: 1px solid rgba(187, 152, 93, 0.28);
  box-shadow: 0 24px 56px rgba(187, 152, 93, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .founder-panel {
  background: linear-gradient(155deg, rgba(187, 152, 93, 0.1) 0%, rgba(24, 25, 26, 0.98) 100%);
}

.founder-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(187, 152, 93, 0.16);
}

.founder-since {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-d, #9a7a4a);
  background: rgba(187, 152, 93, 0.14);
  border: 1px solid rgba(187, 152, 93, 0.32);
  border-radius: 999px;
  white-space: nowrap;
}

.founder-name {
  margin: 0 0 1.25rem;
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  text-align: start;
}

.founder-name em {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
}

.founder-prose {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 78ch;
}

.founder-prose p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-2);
  text-align: start;
}

.founder-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  padding: 0;
  list-style: none;
}

.founder-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(187, 152, 93, 0.14);
  border-radius: 14px;
  text-align: start;
}

[data-theme="dark"] .founder-highlights li {
  background: rgba(255, 255, 255, 0.04);
}

.founder-highlights li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
}

/* —— Values —— */
.identity-values {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.5vw, 1.25rem);
}

.identity-val {
  position: relative;
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(187, 152, 93, 0.16);
  box-shadow: 0 12px 32px rgba(70, 72, 73, 0.05);
  text-align: start;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.identity-val:hover {
  transform: translateY(-3px);
  border-color: rgba(187, 152, 93, 0.35);
}

.identity-val--featured {
  grid-column: span 6;
  background: linear-gradient(
    155deg,
    rgba(255, 251, 245, 0.98) 0%,
    rgba(248, 238, 220, 0.5) 100%
  );
  border-color: rgba(187, 152, 93, 0.32);
}

[data-theme="dark"] .identity-val--featured {
  background: linear-gradient(155deg, rgba(187, 152, 93, 0.12) 0%, rgba(28, 29, 30, 0.95) 100%);
}

.identity-val--wide {
  grid-column: span 12;
}

.identity-val__n {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(187, 152, 93, 0.55);
}

.identity-val h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.identity-val p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-2);
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .identity-pillars {
    grid-template-columns: 1fr;
  }

  .identity-certs {
    grid-template-columns: 1fr;
  }

  .identity-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .identity-timeline::before {
    display: none;
  }

  .founder-highlights {
    grid-template-columns: 1fr;
  }

  .identity-val,
  .identity-val--featured,
  .identity-val--wide {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .identity-panel::before {
    top: 0;
    bottom: auto;
    inset-inline: 1.25rem;
    width: auto;
    height: 3px;
  }

  .identity-timeline {
    grid-template-columns: 1fr;
  }

  .founder-panel__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .identity-sec__title,
  .identity-sec__desc {
    text-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .identity-tl:hover,
  .identity-val:hover,
  .identity-certs .cert-card:hover {
    transform: none;
  }
}
