/* Founder profile (/company/ife-ugbebor/). Loaded after styles.css and built
   from its tokens: ink hero, paper and white bands, mono labels, the
   green-to-blue thread. The CSP is style-src 'self', so every rule for this
   page lives here; an inline style attribute would be dropped in production.

   Long-form detail sits in native <details> folds so the page reads in a
   minute on any screen. Folded content never carries data-reveal: the reveal
   styles would keep it invisible after the fold opened. */

/* ---------- Hero ---------- */
.profile-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(46% 72% at 86% 42%, rgba(23, 129, 188, 0.15) 0%, rgba(23, 129, 188, 0) 100%),
    var(--ink);
}
.profile-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 64px;
  padding-top: 76px;
  padding-bottom: 84px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.crumbs::before { content: ""; flex: none; width: 28px; height: 3px; background: var(--thread); }
.crumbs a { color: var(--muted-dark); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs [aria-current] { color: var(--white); }
.profile-hero h1 {
  margin: 0;
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.profile-role {
  margin: 18px 0 0;
  color: var(--blue-bright);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
}
.profile-role span { color: var(--muted-dark); }
.profile-lead { max-width: 660px; margin: 24px 0 0; color: #dbe6f0; font-size: 20px; line-height: 1.55; }
.profile-portrait { justify-self: end; width: min(340px, 100%); margin: 0; }
.profile-portrait img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.profile-portrait::after { content: ""; display: block; width: 72px; height: 3px; margin-top: 16px; background: var(--thread); }

/* Four facts instead of the home page's three. */
.ledger-grid.ledger-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Folds ---------- */
.fold > summary, .area > summary { list-style: none; cursor: pointer; }
.fold > summary::-webkit-details-marker, .area > summary::-webkit-details-marker { display: none; }
.fold > summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 8px 0;
  color: var(--blue-deep);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fold > summary::after, .area > summary::after {
  content: "+";
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--blue-deep);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
}
.fold[open] > summary::after, .area[open] > summary::after { content: "\2212"; }
.fold > summary:hover { color: var(--ink); }
.fold > summary:hover::after, .area > summary:hover::after { border-color: var(--blue); }
.fold-opened { display: none; }
.fold[open] > summary .fold-closed { display: none; }
.fold[open] > summary .fold-opened { display: inline; }
.fold-block[open] > summary { margin-bottom: 6px; }
.fold-body { padding-top: 8px; }
.fold-heading { margin: 30px 0 4px; font-size: 22px; font-weight: 750; letter-spacing: -0.01em; }

/* The approach, folded inside the profile. */
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.approach { padding: 18px 0 4px; border-top: 1px solid var(--line); }
.approach strong { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 750; letter-spacing: -0.005em; }
.content-grid .approach p { margin: 0 0 14px; font-size: 16px; }

/* ---------- Practice areas: one line each, detail on demand ---------- */
.area-list { border-bottom: 1px solid var(--line); }
.area { border-top: 1px solid var(--line); }
.area > summary {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 28px;
  align-items: start;
  gap: 28px;
  padding: 26px 0;
}
.area > summary .sector-index { margin: 5px 0 0; }
.area h3 { margin: 0; font-size: 24px; font-weight: 750; line-height: 1.2; letter-spacing: -0.01em; }
.area > summary:hover h3 { color: var(--blue-deep); }
.area-line { display: block; margin-top: 6px; color: var(--muted); font-size: 17px; }
.area-body { max-width: 780px; margin-left: 198px; padding: 0 0 30px; }
.area-body p { margin: 0; color: var(--muted); font-size: 17px; }
.area-body .text-link { margin-top: 18px; }

/* ---------- Selected work ---------- */
.work-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.work-item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.work-list-more { border-top: 0; }
.work-list-more .work-item:first-child { border-top: 0; }
.work-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--blue-deep);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.work-meta span + span { color: var(--muted); font-weight: 600; }
.work-item h3 { margin: 0 0 8px; font-size: 23px; font-weight: 750; letter-spacing: -0.01em; }
.work-item p { margin: 0; color: var(--muted); font-size: 17px; }
.work-links { display: flex; flex-wrap: wrap; gap: 0 26px; }
.work-links .text-link { margin-top: 14px; }
.work-status { margin-left: 8px; color: var(--green-deep); font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Career timeline ---------- */
.timeline { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.timeline li {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 40px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.timeline-more li:first-child { border-top: 0; }
.tl-years { color: var(--blue-deep); font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.timeline h3 { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -0.005em; }
.tl-org { display: block; margin-top: 2px; color: var(--muted); font-size: 15.5px; }
.timeline p { margin: 8px 0 0; color: var(--muted); }
.tl-now { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; color: var(--green-deep); font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; vertical-align: 2px; }
.tl-now::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); }

/* ---------- Credentials ---------- */
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 72px; padding-top: 10px; }
.cred-group h3 {
  margin: 0 0 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cred-list { margin: 0; padding: 0; list-style: none; }
.cred-list-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; }
.cred-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cred-name { font-size: 17.5px; font-weight: 700; letter-spacing: -0.005em; }
.cred-issuer { grid-column: 1; color: var(--muted); font-size: 15.5px; }
.cred-year { grid-column: 2; grid-row: 1; color: var(--blue-deep); font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; }
.cred-note { max-width: 760px; margin: 34px 0 0; color: var(--muted); font-size: 16px; }
.cred-note a { color: var(--blue-deep); font-weight: 700; }

/* ---------- Closing call to action ---------- */
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .profile-hero-inner { grid-template-columns: 1fr; gap: 34px; padding-top: 52px; padding-bottom: 64px; }
  .profile-portrait { order: -1; justify-self: start; width: min(232px, 64%); }
  .profile-portrait::after { margin-top: 14px; }
  /* Facts sit two by two instead of stacking four deep. */
  .ledger-grid.ledger-4 { grid-template-columns: 1fr 1fr; }
  .ledger-4 .ledger-item:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line-dark); }
  .ledger-4 .ledger-item:nth-child(even) { padding-left: 16px; }
  .ledger-4 .ledger-item:nth-child(n + 3) { border-bottom: 0; }
  .ledger-4 .ledger-item strong { font-size: 22px; }
  .ledger-4 .ledger-item p { font-size: 14px; }
  .area > summary { grid-template-columns: minmax(0, 1fr) 28px; gap: 8px 16px; padding: 22px 0; }
  .area > summary .sector-index { grid-column: 1 / -1; margin: 0; }
  .area-body { margin-left: 0; padding-bottom: 26px; }
  .work-item, .timeline li { grid-template-columns: 1fr; gap: 10px; }
  .work-item { padding: 26px 0; }
  .cred-grid, .cred-list-grid { grid-template-columns: 1fr; }
  .cred-grid { gap: 36px; }
}

@media (max-width: 600px) {
  .profile-hero-inner { padding-top: 40px; padding-bottom: 56px; }
  .profile-lead { font-size: 18.5px; }
  .profile-role { font-size: 13px; }
  .area h3 { font-size: 21px; }
  .area-line { font-size: 16px; }
  .work-item h3 { font-size: 21px; }
  .approach-grid { grid-template-columns: 1fr; }
  .cta-actions { display: grid; }
}

/* ---------- Print: one complete document ---------- */
/* app.js opens every fold before printing and restores them afterwards. */
@media print {
  .site-header, .site-footer, .skip-link, .section-cta, .profile-actions { display: none !important; }
  body, .profile-hero, .ledger, .section-white { color: #000; background: #fff !important; }
  .profile-hero-inner { padding: 0 0 16px; }
  .profile-lead, .ledger-item p, .ledger-item .mono { color: #333; }
  .profile-portrait img { box-shadow: none; }
  .fold > summary, .area > summary::after { display: none; }
  .section { padding: 22px 0; }
  .work-item, .timeline li, .cred-list li, .area { break-inside: avoid; }
  a { text-decoration: none; }
}
