/* Neumorphic redesign for the first About page section only.
   All copy, links, image source, image proportions and later sections stay untouched. */
.about-profile-page > .about-hero{
  background:var(--neo-surface,#edf2f5);
  color:var(--neo-ink,#203b48);
  padding:clamp(38px,5.5vw,76px) 0;
}
.about-profile-page > .about-hero::before{
  content:"";
  z-index:-2;
  background:
    radial-gradient(ellipse at 12% 82%,rgba(242,173,102,.12),transparent 34%),
    radial-gradient(ellipse at 86% 18%,rgba(67,151,174,.11),transparent 38%),
    var(--neo-surface,#edf2f5);
}
.about-profile-page > .about-hero .about-hero-grid{
  align-items:center;
  gap:clamp(24px,4vw,56px);
}
.about-profile-page > .about-hero .about-intro{
  min-width:0;
  padding:clamp(24px,3.2vw,42px);
  border:1px solid var(--neo-line,rgba(255,255,255,.78));
  border-radius:28px;
  background:linear-gradient(145deg,var(--neo-surface-hi,#f5f8fa),var(--neo-surface-low,#e4ebf0));
  box-shadow:
    15px 15px 34px var(--neo-shadow-dark,rgba(159,175,187,.56)),
    -15px -15px 34px var(--neo-shadow-light,rgba(255,255,255,.96));
}
.about-profile-page > .about-hero .about-kicker{
  color:var(--neo-link,#286f83);
}
.about-profile-page > .about-hero .about-kicker::before{
  background:var(--neo-accent,#bd7b3e);
  border-radius:2px;
}
.about-profile-page > .about-hero .about-heading{
  color:var(--neo-ink,#203b48);
  text-shadow:none;
}
.about-profile-page > .about-hero .about-heading span{
  color:var(--neo-accent,#bd7b3e);
}
.about-profile-page > .about-hero .about-lead{
  color:var(--neo-muted,#536b77);
}
.about-profile-page > .about-hero .about-lead a{
  color:var(--neo-link,#286f83);
  font-weight:800;
  text-decoration-color:rgba(40,111,131,.35);
  text-underline-offset:3px;
}
.about-profile-page > .about-hero .about-lead a:hover{
  text-decoration-color:currentColor;
}
.about-profile-page > .about-hero .about-hero-actions .button{
  border-radius:13px;
  box-shadow:5px 5px 12px rgba(116,139,151,.17),-4px -4px 11px rgba(255,255,255,.58);
}
.about-profile-page > .about-hero .about-visual{
  min-width:0;
  padding:11px;
  border:1px solid var(--neo-line,rgba(255,255,255,.78));
  border-radius:31px;
  background:linear-gradient(145deg,var(--neo-surface-hi,#f5f8fa),var(--neo-surface-low,#e4ebf0));
  box-shadow:
    15px 15px 34px var(--neo-shadow-dark,rgba(159,175,187,.56)),
    -15px -15px 34px var(--neo-shadow-light,rgba(255,255,255,.96));
}
.about-profile-page > .about-hero .about-model-frame{
  min-height:0;
  border:0;
  border-radius:21px;
  background:var(--neo-surface-low,#e4ebf0);
  box-shadow:inset 5px 5px 12px rgba(8,27,38,.17),inset -3px -3px 9px rgba(255,255,255,.12);
}
.about-profile-page > .about-hero .about-model-image{
  border-radius:21px;
}
.about-profile-page > .about-hero .about-model-frame::before{
  inset:10px;
  border:1px solid rgba(229,245,248,.34);
  border-radius:13px;
  box-shadow:none;
}
.about-profile-page > .about-hero .about-model-frame::after{
  border-radius:21px;
}
.about-profile-page > .about-hero .about-model-caption{
  right:20px;
  left:20px;
  bottom:18px;
}
.about-profile-page > .about-hero .about-education-float{
  border:1px solid var(--neo-line,rgba(255,255,255,.78));
  border-right:3px solid var(--neo-accent,#bd7b3e);
  border-radius:17px;
  background:linear-gradient(145deg,var(--neo-surface-hi,#f5f8fa),var(--neo-surface-low,#e4ebf0));
  color:var(--neo-ink,#203b48);
  box-shadow:
    9px 9px 19px var(--neo-shadow-dark,rgba(159,175,187,.42)),
    -8px -8px 18px var(--neo-shadow-light,rgba(255,255,255,.9));
}
.about-profile-page > .about-hero .about-education-icon{
  border:0;
  border-radius:13px;
  background:var(--neo-surface);
  color:var(--neo-link);
  box-shadow:inset 4px 4px 8px var(--neo-shadow-dark),inset -4px -4px 8px var(--neo-shadow-light);
}
.about-profile-page > .about-hero .about-education-float small,
.about-profile-page > .about-hero .about-education-float span{
  color:var(--neo-muted,#536b77);
}
.about-profile-page > .about-hero .about-education-float strong{
  color:var(--neo-ink,#203b48);
}
.about-profile-page > .about-hero .about-trustline{
  color:var(--neo-muted,#536b77);
}
.about-profile-page > .about-hero .about-trustline .signal{
  background:var(--neo-link,#286f83);
  box-shadow:0 0 0 5px rgba(40,111,131,.12);
}
@media(max-width:900px){
  .about-profile-page > .about-hero .about-intro{
    padding:clamp(23px,4vw,34px);
  }
}
@media(max-width:600px){
  .about-profile-page > .about-hero{
    padding:36px 0 42px;
  }
  .about-profile-page > .about-hero .about-intro{
    padding:22px 19px;
    border-radius:22px;
  }
  .about-profile-page > .about-hero .about-visual{
    padding:8px;
    border-radius:24px;
  }
  .about-profile-page > .about-hero .about-model-frame,
  .about-profile-page > .about-hero .about-model-image,
  .about-profile-page > .about-hero .about-model-frame::after{
    border-radius:17px;
  }
  .about-profile-page > .about-hero .about-model-frame::before{
    inset:8px;
    border-radius:11px;
  }
  .about-profile-page > .about-hero .about-education-float{
    max-width:100%;
    margin-top:12px;
    padding:11px 12px;
  }
}


/* Contrast refinement: remove bright rims/halos and strengthen text contrast.
   Scoped to the first About hero only; includes overrides for global glass !important rules. */
.about-profile-page > .about-hero,
html:not(.dark-mode) body .about-profile-page > .about-hero,
html.dark-mode body .about-profile-page > .about-hero{
  background:var(--neo-surface,#edf2f5)!important;
  background-image:none!important;
}
.about-profile-page > .about-hero::before{
  background:var(--neo-surface,#edf2f5)!important;
  opacity:1!important;
}
.about-profile-page > .about-hero .about-intro,
.about-profile-page > .about-hero .about-visual,
.about-profile-page > .about-hero .about-education-float{
  border:0!important;
  box-shadow:8px 9px 20px rgba(42,62,73,.13)!important;
  background:var(--neo-surface-hi,#f1f5f7)!important;
}
.about-profile-page > .about-hero .about-model-frame,
html:not(.dark-mode) body .about-profile-page .about-model-frame,
html.dark-mode body .about-profile-page .about-model-frame{
  border:0!important;
  outline:0!important;
  background:#102b38!important;
  box-shadow:0 5px 15px rgba(12,28,37,.18)!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
.about-profile-page > .about-hero .about-model-frame::before{
  content:none!important;
  display:none!important;
}
.about-profile-page > .about-hero .about-model-frame::after{
  background:linear-gradient(180deg,transparent 53%,rgba(3,15,22,.78) 100%)!important;
  border:0!important;
  box-shadow:none!important;
}
.about-profile-page > .about-hero .about-photo-scanline{
  display:none!important;
  animation:none!important;
}
.about-profile-page > .about-hero .about-model-caption{
  border:0!important;
  padding-top:0!important;
}
.about-profile-page > .about-hero .about-intro{
  color:#183541!important;
}
.about-profile-page > .about-hero .about-kicker{
  color:#245d72!important;
  font-size:11px!important;
  font-weight:800!important;
}
.about-profile-page > .about-hero .about-heading{
  color:#17313d!important;
  font-size:clamp(36px,4.3vw,56px)!important;
  line-height:1.5!important;
}
.about-profile-page > .about-hero .about-heading span{
  color:#98551f!important;
  font-size:.68em!important;
  line-height:1.8!important;
}
.about-profile-page > .about-hero .about-lead{
  color:#344f5c!important;
  font-size:15px!important;
  font-weight:500!important;
  line-height:2.35!important;
}
.about-profile-page > .about-hero .about-lead a{
  color:#155c73!important;
  font-weight:800!important;
}
.about-profile-page > .about-hero .about-trustline{
  color:#405b67!important;
  font-size:12px!important;
  font-weight:600!important;
  line-height:2!important;
}
.about-profile-page > .about-hero .about-trustline .signal{
  background:#286f83!important;
  box-shadow:none!important;
}
.about-profile-page > .about-hero .about-education-float{
  color:#183541!important;
}
.about-profile-page > .about-hero .about-education-float small{
  color:#405b67!important;
  font-size:10px!important;
}
.about-profile-page > .about-hero .about-education-float strong{
  color:#183541!important;
  font-size:13px!important;
  line-height:1.9!important;
}
.about-profile-page > .about-hero .about-education-float span{
  color:#405b67!important;
  font-size:11px!important;
}
.about-profile-page > .about-hero .about-education-icon{
  color:#205d73!important;
  background:#e4ebef!important;
  box-shadow:inset 3px 3px 7px rgba(42,62,73,.12)!important;
}
.about-profile-page > .about-hero .about-hero-actions .button{
  box-shadow:3px 4px 9px rgba(42,62,73,.12)!important;
}
@media(max-width:600px){
  .about-profile-page > .about-hero .about-lead{
    font-size:14px!important;
    line-height:2.3!important;
  }
  .about-profile-page > .about-hero .about-heading{
    font-size:clamp(31px,8vw,38px)!important;
  }
}

/* Dark-mode text and surfaces remain high-contrast without a light halo. */
html.dark-mode .about-profile-page > .about-hero{
  background:#172d37!important;
}
html.dark-mode .about-profile-page > .about-hero::before{
  background:#172d37!important;
}
html.dark-mode .about-profile-page > .about-hero .about-intro,
html.dark-mode .about-profile-page > .about-hero .about-visual,
html.dark-mode .about-profile-page > .about-hero .about-education-float{
  background:#1b3540!important;
  box-shadow:7px 8px 18px rgba(3,13,18,.32)!important;
}
html.dark-mode .about-profile-page > .about-hero .about-heading{
  color:#f0f5f7!important;
}
html.dark-mode .about-profile-page > .about-hero .about-heading span{
  color:#f0b36f!important;
}
html.dark-mode .about-profile-page > .about-hero .about-lead,
html.dark-mode .about-profile-page > .about-hero .about-trustline,
html.dark-mode .about-profile-page > .about-hero .about-education-float small,
html.dark-mode .about-profile-page > .about-hero .about-education-float span{
  color:#d1e0e5!important;
}
html.dark-mode .about-profile-page > .about-hero .about-lead a{
  color:#a8dfeb!important;
}
html.dark-mode .about-profile-page > .about-hero .about-education-float strong,
html.dark-mode .about-profile-page > .about-hero .about-intro{
  color:#edf5f8!important;
}
html.dark-mode .about-profile-page > .about-hero .about-education-icon{
  color:#a8dfeb!important;
  background:#172d37!important;
  box-shadow:inset 3px 3px 7px rgba(3,13,18,.35)!important;
}


/* Final theme visibility fixes for About intro and membership number.
   The global dark-mode typography rules target every strong element inside
   proof cards; this restores a high-contrast chip specifically for the ID. */

/* Light mode: keep the hero copy dark and fully readable on the light surface. */
html:not(.dark-mode) body .about-profile-page > .about-hero .about-intro,
html:not(.dark-mode) body .about-profile-page > .about-hero .about-intro p{
  color:#344f5c!important;
}
html:not(.dark-mode) body .about-profile-page > .about-hero .about-kicker{
  color:#245d72!important;
}
html:not(.dark-mode) body .about-profile-page > .about-hero .about-heading{
  color:#17313d!important;
}
html:not(.dark-mode) body .about-profile-page > .about-hero .about-heading span{
  color:#8a4b1e!important;
}
html:not(.dark-mode) body .about-profile-page > .about-hero .about-lead{
  color:#344f5c!important;
}
html:not(.dark-mode) body .about-profile-page > .about-hero .about-lead a{
  color:#155c73!important;
}
html:not(.dark-mode) body .about-profile-page > .about-hero .about-trustline{
  color:#405b67!important;
}
html:not(.dark-mode) body .about-profile-page > .about-hero .about-education-float strong{
  color:#183541!important;
}

/* Dark mode: retain the light foreground on the dark hero surface. */
html.dark-mode body .about-profile-page > .about-hero .about-intro{
  color:#edf5f8!important;
}
html.dark-mode body .about-profile-page > .about-hero .about-kicker{
  color:#a8dfeb!important;
}
html.dark-mode body .about-profile-page > .about-hero .about-heading{
  color:#f0f5f7!important;
}
html.dark-mode body .about-profile-page > .about-hero .about-heading span{
  color:#f0b36f!important;
}
html.dark-mode body .about-profile-page > .about-hero .about-lead,
html.dark-mode body .about-profile-page > .about-hero .about-intro p{
  color:#d1e0e5!important;
}
html.dark-mode body .about-profile-page > .about-hero .about-lead a{
  color:#a8dfeb!important;
}
html.dark-mode body .about-profile-page > .about-hero .about-trustline{
  color:#d1e0e5!important;
}
html.dark-mode body .about-profile-page > .about-hero .about-education-float strong{
  color:#edf5f8!important;
}

/* Membership number 146028866: .about-proof-number is a <strong>, and the
   site's global dark-mode rule turns all proof-card strong text white. */
html.dark-mode body main.about-profile-page .about-proof-card--membership strong.about-proof-number{
  color:#75471f!important;
  -webkit-text-fill-color:#75471f!important;
  background:#fff7ee!important;
  border:1px solid #e9c49c!important;
  opacity:1!important;
  text-shadow:none!important;
  visibility:visible!important;
}
