/* Digby Kerr: Full Profile
   This page builds on the shared Command Room chrome in command-room.css. */

.cr-profile {
  background:
    radial-gradient(circle at 77% 3%, rgba(205, 210, 218, 0.055), transparent 28rem),
    radial-gradient(circle at 15% 46%, rgba(255, 255, 255, 0.024), transparent 35rem),
    var(--cr-ink);
}

.cr-profile .cr-nav__link[aria-current='page'] { color: var(--cr-white); }

.cr-profile-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(45rem, 84svh);
  padding-top: 5.1rem;
  border-bottom: 1px solid var(--cr-line);
  background:
    radial-gradient(circle at 78% 37%, rgba(255, 255, 255, 0.13), transparent 0 13rem),
    radial-gradient(circle at 78% 37%, rgba(255, 255, 255, 0.042), transparent 0 29rem),
    radial-gradient(circle at 18% 93%, rgba(199, 171, 123, 0.052), transparent 25rem),
    #060606;
}

.cr-profile-hero::before,
.cr-profile-hero::after {
  position: absolute;
  z-index: -2;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.cr-profile-hero::before {
  top: -36rem;
  right: -9rem;
  width: 69rem;
  aspect-ratio: 1;
  box-shadow: inset 0 0 10rem rgba(255, 255, 255, 0.024);
}

.cr-profile-hero::after {
  top: -16rem;
  right: 15vw;
  width: 40rem;
  aspect-ratio: 1;
}

.cr-profile-hero__seal {
  position: absolute;
  z-index: -1;
  right: clamp(-8rem, 2vw, 2rem);
  bottom: clamp(-17rem, -16vw, -9rem);
  width: min(47vw, 37rem);
  opacity: 0.19;
  filter: grayscale(1) contrast(1.16) brightness(1.34);
  mix-blend-mode: screen;
  pointer-events: none;
  transform: rotate(-10deg);
}

.cr-profile-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.58fr);
  gap: clamp(2.5rem, 7vw, 9rem);
  align-items: end;
  min-height: inherit;
  padding-block: clamp(7.4rem, 15vh, 11.5rem) clamp(4.25rem, 8vh, 6.5rem);
}

.cr-profile-hero__copy { max-width: 45rem; }

.cr-profile-hero h1 {
  max-width: 9.3ch;
  margin: 1rem 0 1.45rem;
  color: var(--cr-white);
  font-family: var(--cr-display);
  font-size: clamp(3.95rem, 8.2vw, 8.7rem);
  font-weight: 500;
  letter-spacing: -0.078em;
  line-height: 0.86;
}

.cr-profile-hero__lede {
  max-width: 40rem;
  margin: 0;
  color: var(--cr-silver);
  font-size: clamp(1rem, 1.48vw, 1.2rem);
  line-height: 1.75;
}

.cr-profile-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.74rem;
  margin-top: 2.1rem;
}

.cr-profile-hero__signal {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(9, 9, 10, 0.48));
  box-shadow: 0 1.75rem 4rem rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px) saturate(140%);
}

.cr-profile-hero__signal > p {
  margin: 0;
  padding: 1.25rem 1.35rem;
  color: var(--cr-quiet);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cr-profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.cr-profile-metric {
  display: grid;
  align-content: space-between;
  min-height: 11.5rem;
  gap: 1rem;
  padding: 1.35rem 1.1rem;
}

.cr-profile-metric + .cr-profile-metric { border-left: 1px solid rgba(255, 255, 255, 0.14); }

.cr-profile-metric strong {
  display: block;
  background: linear-gradient(165deg, #fff 0%, #d9dcde 25%, #777c83 52%, #f4f4f0 72%, #8b8f95 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0.08em 0 rgba(0, 0, 0, 0.8)) drop-shadow(0 0.16em 0.25em rgba(0, 0, 0, 0.32));
  font-family: var(--cr-display);
  font-size: clamp(2rem, 3.3vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.8;
}

.cr-profile-metric span {
  color: var(--cr-muted);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-transform: uppercase;
}

.cr-profile-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.81fr) minmax(0, 1.19fr);
  gap: clamp(2.3rem, 8vw, 10rem);
  align-items: start;
  padding-block: clamp(5.25rem, 10vw, 10rem);
  border-bottom: 1px solid var(--cr-line);
}

.cr-profile-intro h2,
.cr-profile-section__heading h2,
.cr-profile-education h2,
.cr-profile-author h2 {
  max-width: 10.5ch;
  margin: 0.95rem 0 0;
  color: var(--cr-white);
  font-family: var(--cr-display);
  font-size: clamp(2.55rem, 5vw, 5.7rem);
  font-weight: 500;
  letter-spacing: -0.066em;
  line-height: 0.94;
}

.cr-profile-intro__copy {
  max-width: 47rem;
  margin: 0.35rem 0 0;
  color: var(--cr-muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.78;
}

.cr-profile-section {
  padding-block: clamp(5rem, 9.5vw, 9.5rem);
  border-bottom: 1px solid var(--cr-line);
}

.cr-profile-section__heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2.8rem, 5vw, 4.4rem);
}

.cr-profile-section__heading > p:not(.cr-overline) {
  max-width: 31rem;
  margin: 0;
  color: var(--cr-muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.cr-profile-role-list { border-top: 1px solid var(--cr-line); }

.cr-profile-role {
  display: grid;
  grid-template-columns: minmax(7rem, 0.34fr) minmax(0, 1.66fr);
  gap: clamp(1.5rem, 6vw, 7.5rem);
  padding-block: clamp(2.35rem, 4.6vw, 4.15rem);
  border-bottom: 1px solid var(--cr-line);
}

.cr-profile-role__meta {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.cr-profile-role__number {
  color: var(--cr-quiet);
  font-family: var(--cr-display);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  letter-spacing: -0.05em;
}

.cr-profile-role__date {
  color: var(--cr-quiet);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.52;
  text-transform: uppercase;
}

.cr-profile-role__body h3 {
  max-width: 20ch;
  margin: 0;
  color: var(--cr-silver);
  font-family: var(--cr-display);
  font-size: clamp(1.72rem, 3.1vw, 3.15rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.cr-profile-role__body p {
  max-width: 46rem;
  margin: 1.05rem 0 0;
  color: var(--cr-muted);
  font-size: clamp(0.96rem, 1.22vw, 1.08rem);
  line-height: 1.76;
}

.cr-profile-foundation { background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 46%), var(--cr-ink-raised); }

.cr-profile-foundation__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--cr-line);
}

.cr-profile-foundation__item {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 1rem;
  min-height: 8rem;
  padding: clamp(1.15rem, 2.1vw, 1.65rem);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 70%);
}

.cr-profile-foundation__item:nth-child(even) { border-left: 1px solid var(--cr-line); }
.cr-profile-foundation__item:nth-child(n + 3) { border-top: 1px solid var(--cr-line); }

.cr-profile-foundation__item > span {
  color: var(--cr-quiet);
  font-family: var(--cr-display);
  font-size: 1.08rem;
}

.cr-profile-foundation__item h3 {
  margin: 0;
  color: var(--cr-silver);
  font-family: var(--cr-display);
  font-size: clamp(1.05rem, 1.7vw, 1.42rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.cr-profile-foundation__item p {
  margin: 0.5rem 0 0;
  color: var(--cr-quiet);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
}

.cr-profile-credentials {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(2.5rem, 8vw, 10rem);
  padding-block: clamp(5rem, 9.5vw, 9.25rem);
  border-bottom: 1px solid var(--cr-line);
}

.cr-profile-education { display: grid; align-content: start; }

.cr-profile-education__list {
  display: grid;
  gap: 0;
  margin-top: 2.3rem;
  border-top: 1px solid var(--cr-line);
}

.cr-profile-education__item {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--cr-line);
}

.cr-profile-education__item strong {
  display: block;
  color: var(--cr-silver);
  font-family: var(--cr-display);
  font-size: clamp(1.28rem, 2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.cr-profile-education__item span {
  display: block;
  margin-top: 0.45rem;
  color: var(--cr-quiet);
  font-size: 0.77rem;
  line-height: 1.58;
}

.cr-profile-certifications {
  align-self: end;
  padding: clamp(1.5rem, 2.7vw, 2.35rem);
  border: 1px solid var(--cr-line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.11);
}

.cr-profile-certifications > p { margin: 0; }

.cr-profile-certifications__intro {
  max-width: 29rem;
  margin-top: 0.85rem !important;
  color: var(--cr-muted);
  font-size: 0.92rem;
  line-height: 1.68;
}

.cr-profile-certifications__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.cr-profile-certifications__tags li {
  padding: 0.56rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  color: var(--cr-silver);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
}

.cr-profile-author {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--cr-line);
}

.cr-profile-author::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(76vw, 72rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 8rem rgba(255, 255, 255, 0.025);
  content: '';
  transform: translate(-50%, -53%);
}

.cr-profile-author__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(2.5rem, 8vw, 10rem);
  align-items: center;
  padding-block: clamp(5.25rem, 10vw, 9.75rem);
}

.cr-profile-author__copy {
  max-width: 43rem;
  margin: 0.3rem 0 0;
  color: var(--cr-muted);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.78;
}

.cr-profile-author__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.cr-profile-callout {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--cr-line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 56%);
}

.cr-profile-callout::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(76vw, 75rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: '';
  transform: translate(-50%, -54%);
}

.cr-profile-callout__inner {
  position: relative;
  display: grid;
  justify-items: center;
  max-width: 56rem;
  margin: 0 auto;
  padding-block: clamp(6rem, 11vw, 10rem);
  text-align: center;
}

.cr-profile-callout h2 {
  max-width: 11.5ch;
  margin: 1rem 0 1.7rem;
  color: var(--cr-white);
  font-family: var(--cr-display);
  font-size: clamp(2.85rem, 6.1vw, 6.35rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.cr-profile-callout p:not(.cr-overline) {
  max-width: 39rem;
  margin: 0 0 1.9rem;
  color: var(--cr-muted);
  font-size: 1rem;
  line-height: 1.74;
}

@media (max-width: 800px) {
  .cr-profile-hero { min-height: 0; }
  .cr-profile-hero__inner,
  .cr-profile-intro,
  .cr-profile-credentials,
  .cr-profile-author__inner { grid-template-columns: 1fr; }
  .cr-profile-hero__inner { padding-bottom: 4rem; }
  .cr-profile-hero__signal { max-width: 34rem; }
  .cr-profile-section__heading { align-items: start; flex-direction: column; }
  .cr-profile-section__heading > p:not(.cr-overline) { max-width: 38rem; }
  .cr-profile-foundation__grid { grid-template-columns: 1fr; }
  .cr-profile-foundation__item:nth-child(even) { border-left: 0; }
  .cr-profile-foundation__item:nth-child(n + 2) { border-top: 1px solid var(--cr-line); }
  .cr-profile-author__inner { gap: 1.2rem; }
}

@media (max-width: 560px) {
  .cr-profile-hero h1 { font-size: clamp(3.2rem, 16.5vw, 5rem); }
  .cr-profile-hero__seal { right: -6rem; bottom: -6rem; width: min(89vw, 28rem); opacity: 0.13; }
  .cr-profile-metrics { grid-template-columns: 1fr; }
  .cr-profile-metric { min-height: 5.8rem; grid-template-columns: 5rem minmax(0, 1fr); align-items: center; }
  .cr-profile-metric + .cr-profile-metric { border-top: 1px solid rgba(255, 255, 255, 0.14); border-left: 0; }
  .cr-profile-role { grid-template-columns: 1fr; gap: 1rem; }
  .cr-profile-role__meta { grid-template-columns: auto 1fr; align-items: baseline; }
}
