/* Institutional & Founder Profile page only. */
.if-profile {
  --if-black: #080705;
  --if-panel: #15110c;
  --if-panel-deep: #0e0b08;
  --if-gold: #d8ad51;
  --if-gold-light: #f0d28d;
  --if-gold-dark: #79581f;
  --if-cream: #ead9b5;
  --if-muted: #b9a987;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 72px;
  color: var(--if-cream);
}

.if-profile,
.if-profile * { box-sizing: border-box; }

.if-profile__return {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 18px;
}
.if-profile__return a,
.if-profile__footer a { color: var(--if-gold-light); font-size: 1.3rem; font-weight: 700; text-decoration: none; }
.if-profile__return a:hover { color: #fff0bd; text-decoration: underline; text-underline-offset: .24em; }

.if-profile__hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px,8vw,102px) clamp(24px,8vw,98px);
  border: 1px solid var(--if-gold-dark);
  background:
    linear-gradient(90deg,transparent 0 6%,rgba(216,173,81,.08) 6% 6.15%,transparent 6.15% 93.85%,rgba(216,173,81,.08) 93.85% 94%,transparent 94%),
    radial-gradient(ellipse at 50% -8%,rgba(216,173,81,.19),transparent 52%),
    linear-gradient(145deg,#1a140d,var(--if-black) 62%,#130f0a);
  text-align: center;
  box-shadow: 0 28px 65px rgba(0,0,0,.42);
}
.if-profile__hero::before,
.if-profile__hero::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(18px,4vw,46px);
  border-right: 1px solid rgba(216,173,81,.14);
  border-left: 1px solid rgba(216,173,81,.14);
  background: linear-gradient(90deg,rgba(216,173,81,.035),transparent,rgba(216,173,81,.035));
  content: "";
}
.if-profile__hero::before { left: clamp(12px,3vw,38px); }
.if-profile__hero::after { right: clamp(12px,3vw,38px); }

.if-profile__rule { display: flex; align-items: center; gap: 14px; width: min(390px,70%); margin: 0 auto 26px; }
.if-profile__rule::before,
.if-profile__rule::after { height: 1px; flex: 1; background: linear-gradient(90deg,transparent,var(--if-gold-dark)); content: ""; }
.if-profile__rule::after { background: linear-gradient(90deg,var(--if-gold-dark),transparent); }
.if-profile__rule span { width: 9px; height: 9px; border: 1px solid var(--if-gold); transform: rotate(45deg); }
.if-profile__rule--lower { margin: 34px auto 0; transform: rotate(180deg); }

.if-profile__brand-mark { display: flex; min-height: 52px; align-items: center; justify-content: center; margin-bottom: 25px; }
.if-profile__brand-mark img { display: block; width: auto; max-width: min(320px,72vw); height: auto; max-height: 82px; object-fit: contain; }
.if-profile__brand-mark span { color: var(--if-gold-light); font: 600 clamp(2.4rem,5vw,4.4rem)/1 Georgia,"Times New Roman",serif; letter-spacing: .18em; }

.if-profile__kicker { margin: 0 0 12px; color: var(--if-gold); font-size: 1.02rem; font-weight: 800; letter-spacing: .23em; text-transform: uppercase; }
.if-profile__hero h1 { margin: 0; color: var(--if-gold-light); font-family: Georgia,"Times New Roman",serif; font-size: clamp(4.1rem,8vw,8rem); font-weight: 600; letter-spacing: -.035em; line-height: .94; }
.if-profile__motto { margin: 26px 0 0; color: var(--if-gold); font: italic clamp(2rem,3vw,3rem)/1.2 Georgia,"Times New Roman",serif; }
.if-profile__hero-copy { max-width: 790px; margin: 22px auto 0; color: var(--if-cream); font-size: clamp(1.35rem,2vw,1.75rem); line-height: 1.6; }

.if-profile__directory { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 20px; }
.if-profile__directory a { display: grid; min-height: 150px; grid-template-rows: auto 1fr auto; padding: 20px; border: 1px solid rgba(216,173,81,.34); background: linear-gradient(150deg,#15110c,#0d0b08); color: inherit; text-decoration: none; transition: border-color .18s ease,transform .18s ease,background-color .18s ease; }
.if-profile__directory a:hover { border-color: var(--if-gold); background-color: rgba(216,173,81,.05); transform: translateY(-2px); }
.if-profile__directory a:focus-visible { outline: 3px solid var(--if-gold-light); outline-offset: 3px; }
.if-profile__directory span { color: var(--if-gold); font: 1.3rem Georgia,"Times New Roman",serif; }
.if-profile__directory strong { align-self: end; margin-top: 24px; color: var(--if-gold-light); font: 600 1.72rem/1.16 Georgia,"Times New Roman",serif; }
.if-profile__directory small { margin-top: 8px; color: var(--if-muted); font-size: 1.08rem; line-height: 1.35; }

.if-profile__section { margin-top: 28px; padding: clamp(30px,5vw,58px); border: 1px solid rgba(216,173,81,.36); background: linear-gradient(150deg,var(--if-panel),var(--if-panel-deep)); box-shadow: 0 20px 48px rgba(0,0,0,.28); scroll-margin-top: 24px; }
.if-profile__section--institution { border-top-color: var(--if-gold); }
.if-profile__section--standards { background: radial-gradient(circle at 100% 0,rgba(216,173,81,.09),transparent 34%),linear-gradient(150deg,var(--if-panel),var(--if-panel-deep)); }
.if-profile__section--founder { background: radial-gradient(circle at 0 0,rgba(216,173,81,.1),transparent 35%),linear-gradient(150deg,#17120d,#0d0b08); }
.if-profile__section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 26px; padding-bottom: 25px; border-bottom: 1px solid rgba(216,173,81,.28); }
.if-profile__section-heading h2,
.if-profile__founder-header h2,
.if-profile__contact h2 { margin: 0; color: var(--if-gold-light); font: 600 clamp(3rem,5vw,5.5rem)/1.02 Georgia,"Times New Roman",serif; }
.if-profile__record-label { display: grid; min-width: 108px; min-height: 60px; place-items: center; padding: 10px; border: 1px solid var(--if-gold-dark); color: var(--if-gold); font-size: .82rem; font-weight: 900; letter-spacing: .13em; }
.if-profile__lead { color: var(--if-cream); font: 1.62rem/1.62 Georgia,"Times New Roman",serif; }

.if-profile__institution-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(290px,.8fr); gap: clamp(28px,5vw,60px); margin-top: 34px; }
.if-profile__statement > p:not(.if-profile__lead) { color: var(--if-muted); font-size: 1.22rem; line-height: 1.72; }
.if-profile__statement blockquote { margin: 30px 0 0; padding: 18px 0 18px 24px; border-left: 3px solid var(--if-gold); color: var(--if-gold-light); font: italic 2rem/1.35 Georgia,"Times New Roman",serif; }
.if-profile__facts { margin: 0; border-top: 1px solid rgba(216,173,81,.3); }
.if-profile__facts div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(216,173,81,.2); }
.if-profile__facts dt { color: var(--if-gold); font-size: .92rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.if-profile__facts dd { margin: 0; color: var(--if-cream); line-height: 1.45; }
.if-profile__facts a { color: var(--if-gold-light); font-weight: 800; text-decoration: none; }
.if-profile__facts a:hover { text-decoration: underline; text-underline-offset: .2em; }

.if-profile__divisions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 38px; }
.if-profile__divisions article { display: flex; min-height: 265px; flex-direction: column; padding: 27px; border: 1px solid rgba(216,173,81,.28); background: #0c0a08; }
.if-profile__divisions article > span { color: var(--if-gold); font-size: .88rem; font-weight: 900; letter-spacing: .15em; }
.if-profile__divisions h3 { margin: 12px 0 0; color: var(--if-gold-light); font: 600 2rem/1.15 Georgia,"Times New Roman",serif; }
.if-profile__divisions p { color: var(--if-muted); font-size: 1.12rem; line-height: 1.6; }
.if-profile__divisions a { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(216,173,81,.2); color: var(--if-gold); font-weight: 800; text-decoration: none; }
.if-profile__divisions a:hover { color: var(--if-gold-light); text-decoration: underline; text-underline-offset: .2em; }

.if-profile__standards-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 30px; }
.if-profile__standards-grid article { display: grid; grid-template-columns: 50px 1fr; gap: 16px; min-height: 160px; padding: 23px; border: 1px solid rgba(216,173,81,.25); background: #0c0a08; }
.if-profile__standards-grid article > span { color: var(--if-gold-dark); font: 1.6rem Georgia,"Times New Roman",serif; }
.if-profile__standards-grid h3 { margin: 0; color: var(--if-gold-light); font: 600 1.65rem/1.18 Georgia,"Times New Roman",serif; }
.if-profile__standards-grid p { margin: 10px 0 0; color: var(--if-muted); line-height: 1.58; }
.if-profile__scope { margin-top: 28px; padding: clamp(28px,4vw,44px); border: 1px solid var(--if-gold-dark); background: #090806; }
.if-profile__scope-heading { max-width: 820px; }
.if-profile__scope h3 { margin: 0; color: var(--if-gold-light); font: 600 2.35rem/1.1 Georgia,"Times New Roman",serif; }
.if-profile__scope-heading > p:last-child { margin: 16px 0 0; color: var(--if-muted); font-size: 1.08rem; line-height: 1.65; }
.if-profile__scope-records { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid rgba(216,173,81,.28); }
.if-profile__scope-records article { min-width: 0; padding: 22px 0 22px 24px; border-bottom: 1px solid rgba(216,173,81,.2); border-left: 3px solid rgba(216,173,81,.58); }
.if-profile__scope-records article > p:not(.if-profile__scope-label) { max-width: 980px; margin: 8px 0 0; color: var(--if-muted); font-size: 1.13rem; line-height: 1.7; overflow-wrap: break-word; }
.if-profile__scope-label { margin: 0; color: var(--if-gold); font-size: .86rem; font-weight: 900; letter-spacing: .14em; }
.if-profile__scope strong { color: var(--if-cream); }

.if-profile__founder-header { display: grid; grid-template-columns: 138px 1fr; gap: 28px; align-items: center; padding-bottom: 30px; border-bottom: 1px solid rgba(216,173,81,.28); }
.if-profile__founder-monogram { display: grid; width: 138px; height: 138px; place-items: center; border: 1px solid var(--if-gold-dark); border-radius: 50%; background: radial-gradient(circle,#21180d,#0b0907 70%); box-shadow: inset 0 0 0 8px #0b0907,inset 0 0 0 9px rgba(216,173,81,.35); }
.if-profile__founder-monogram span { color: var(--if-gold-light); font: 600 2.15rem Georgia,"Times New Roman",serif; letter-spacing: .12em; }
.if-profile__founder-role { margin: 12px 0 0; color: var(--if-gold); font-size: 1.2rem; letter-spacing: .08em; }
.if-profile__founder-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(360px,.9fr); gap: clamp(30px,4vw,48px); margin-top: 34px; }
.if-profile__founder-bio p:not(.if-profile__lead) { color: var(--if-muted); font-size: 1.18rem; line-height: 1.72; }
.if-profile__founder-principles { min-width: 0; padding: 28px; border: 1px solid var(--if-gold-dark); background: #090806; }
.if-profile__founder-principles h3 { margin: 0; color: var(--if-gold-light); font: italic 2rem/1.3 Georgia,"Times New Roman",serif; }
.if-profile__founder-principles ul { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.if-profile__founder-principles li { position: relative; min-width: 0; padding: 0 0 12px 22px; border-bottom: 1px solid rgba(216,173,81,.18); color: var(--if-cream); line-height: 1.48; overflow-wrap: break-word; }
.if-profile__founder-principles li::before { position: absolute; left: 0; color: var(--if-gold); content: "✦"; }
.if-profile__approved-intro { margin-top: 34px; padding: 26px 30px; border-top: 1px solid var(--if-gold-dark); border-bottom: 1px solid var(--if-gold-dark); background: rgba(216,173,81,.035); }
.if-profile__approved-intro > p:last-child { margin: 0; color: var(--if-cream); font: 1.42rem/1.65 Georgia,"Times New Roman",serif; }

.if-profile__contact { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(270px,.65fr); gap: clamp(30px,5vw,64px); align-items: center; margin-top: 28px; padding: clamp(34px,5vw,58px); border: 1px solid var(--if-gold-dark); background: radial-gradient(circle at 100% 50%,rgba(216,173,81,.1),transparent 38%),#0b0907; }
.if-profile__contact h2 { font-size: clamp(2.7rem,4.8vw,5rem); }
.if-profile__contact p:not(.if-profile__kicker) { color: var(--if-muted); font-size: 1.2rem; line-height: 1.65; }
.if-profile__contact-actions { display: grid; gap: 10px; }
.if-profile__contact-actions a { padding: 15px 18px; border: 1px solid rgba(216,173,81,.36); color: var(--if-gold-light); font-weight: 800; text-align: center; text-decoration: none; }
.if-profile__contact-actions a:hover { border-color: var(--if-gold); background: rgba(216,173,81,.07); }

.if-profile__footer { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-top: 28px; padding: 26px 4px; border-top: 1px solid rgba(216,173,81,.28); }
.if-profile__footer div { display: grid; gap: 5px; }
.if-profile__footer strong { color: var(--if-gold-light); font: 600 1.7rem Georgia,"Times New Roman",serif; letter-spacing: .13em; }
.if-profile__footer span,
.if-profile__footer p { margin: 0; color: var(--if-muted); }
.if-profile__footer p { text-align: right; }

@media (max-width: 920px) {
  .if-profile__institution-grid,
  .if-profile__founder-grid,
  .if-profile__contact { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .if-profile__directory,
  .if-profile__divisions,
  .if-profile__standards-grid { grid-template-columns: 1fr 1fr; }
  .if-profile__section-heading { flex-direction: column; }
  .if-profile__founder-header { grid-template-columns: 108px 1fr; }
  .if-profile__founder-monogram { width: 108px; height: 108px; }
}

@media (max-width: 520px) {
  .if-profile { width: min(100% - 20px,1180px); }
  .if-profile__return,
  .if-profile__footer { align-items: flex-start; flex-direction: column; }
  .if-profile__return { gap: 8px; }
  .if-profile__directory,
  .if-profile__divisions,
  .if-profile__standards-grid { grid-template-columns: 1fr; }
  .if-profile__directory a { min-height: 130px; }
  .if-profile__facts div { grid-template-columns: 1fr; gap: 5px; }
  .if-profile__founder-header { grid-template-columns: 1fr; }
  .if-profile__standards-grid article { grid-template-columns: 38px 1fr; }
  .if-profile__footer p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .if-profile__directory a { transition: none; }
}

@media print {
  .if-profile { width: 100%; margin: 0; color: #111; }
  .if-profile__return,
  .if-profile__directory,
  .if-profile__contact-actions { display: none; }
  .if-profile__hero,
  .if-profile__section,
  .if-profile__contact { break-inside: avoid; box-shadow: none; }
}
