/* Synthetic Authenticity v21
   v20 spacing retained, v19 illustration-led hero restored.
   Original photographs remain unchanged. */

:root {
  --space-section: clamp(56px, 5.8vw, 84px);
  --space-content: clamp(24px, 3vw, 40px);
  --space-card: 24px;
  --space-grid: 24px;
}
body { line-height: 1.6; }
h1, h2, h3 { text-wrap: pretty; }
p { text-wrap: pretty; }
section.band { padding-block: var(--space-section); }
.page-head { padding-top: 138px !important; }
.page-hero { gap: 56px; margin-bottom: 48px; }
.page-hero > *, .section-head > * { min-width: 0; }
.eyebrow { display: block; line-height: 1.65; }
.page-hero .eyebrow { margin-bottom: 18px; }
.section-head { gap: 48px; margin-bottom: 36px; }
.section-head .section-note { max-width: 54ch; }
.routes, .link-row { gap: 12px; }
.btn, .routes a, .mentor-links a, .mentor-links span {
  min-height: 44px; align-items: center; justify-content: center;
  border-radius: 2px; line-height: 1.5;
}
.nav-link { min-height: 44px; display: inline-flex; align-items: center; }

.proof-band { padding-block: 16px; }
.creds-strip { gap: 24px; }
.creds-strip > * { padding: 16px 8px; gap: 14px; }

/* Original robot photographs and original AI persona/interface assets. */
.persona-grid { gap: 18px; margin-top: 34px; }
.persona .frame { border: 0; border-radius: 2px; aspect-ratio: 3 / 4; overflow: hidden; }
.persona img, .persona .generated-frame img { object-fit: cover; object-position: center; filter: none; padding: 0; }
.sa-persona-1 img { object-fit: contain; object-position: center bottom; }
.sa-persona-2 img { object-fit: cover; object-position: 49% center; }
.sa-persona-3 img { object-position: 50% 30%; }
.sa-persona-5 img { object-fit: contain; }
.persona b { margin-top: 18px; font-size: .82rem; line-height: 1.35; }
.persona span { margin-top: 7px; line-height: 1.6; font-size: .57rem; letter-spacing: .07em; }
.persona:hover img { transform: none; }
.persona:focus-visible { outline-color: #fff; outline-offset: 7px; }

/* Shared grid rhythm and comfortable editorial card interiors. */
.big-grid, .questions, .press-grid, .concept-grid { gap: var(--space-grid); }
.big-card, .question-link, .press-link, .concept { padding: 28px; border-top-width: 2px; }
.big-card { min-height: 250px; }
.big-card.proof-photo { padding: 0; }
.big-card .k, .question-link .k, .press-link .k { line-height: 1.6; }
.questions.deep .question-link h3 { line-height: 1.3; margin-top: 14px; }
.questions.deep .question-link p { line-height: 1.65; margin-top: 16px; }
.concept { gap: 14px; }
.concept .src { padding-top: 16px; line-height: 1.7; }
.concept p.body, .concept .gloss { line-height: 1.6; }
.paper-card { padding: 32px; gap: 36px; border-top-width: 2px; }
.paper-figure { aspect-ratio: auto; }
.paper-figure figcaption, .page-figure figcaption { padding: 16px 18px; line-height: 1.6; }
.paper-creds { gap: 8px; margin-top: 18px; }
.cred { padding: 8px 10px; line-height: 1.5; }
.cred-note { line-height: 1.7; }
.program-side { padding: 32px; gap: 30px; }
.usecase-card { padding: 24px; }
.usecase-card p { margin-top: 12px; }
.facts, .stat-row { margin-top: 32px; }
.fact, .stat { padding: 28px; }
.fact p, .stat span { line-height: 1.6; }
h2.sub { margin-top: 56px; margin-bottom: 18px; }
h2.sub + .prose, h2.sub + .disc-table { margin-top: 0; }
.prose { margin-top: 28px; max-width: 76ch; }
.prose p + p { margin-top: 20px; }
.prose h2 { margin-top: 48px; margin-bottom: 20px; }
.prose h3 { margin-top: 32px; margin-bottom: 14px; }
.prose ul { margin-top: 18px; }
.prose li { margin-top: 12px; padding-left: 22px; }
.prose > p:first-child { margin-top: 0; }
.callout, .cite-box, .standards, .mentor-strip, .isentia-band { padding: 26px 28px; }
.callout p { line-height: 1.45; }
.cite-box, .standards p, .mentor-strip p, .isentia-band p { line-height: 1.65; }
.disc-table th, .disc-table td { padding: 18px 20px; line-height: 1.65; }
.disc-list li { margin-bottom: 14px; line-height: 1.65; }
.faq-item summary { padding: 24px 0; line-height: 1.3; }
.faq-answer { padding: 0 36px 26px 0; }

/* The actual photo-cap element previously had no side or bottom padding. */
.photo-grid { gap: 28px; align-items: stretch; }
.photo-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.photo-card .frame { flex: 0 0 auto; }
.photo-card .frame::before { display: none; }
.photo-card .photo-cap { padding: 22px 24px 26px; flex: 1; background: #fff; }
.photo-venue { font-size: .65rem; line-height: 1.6; letter-spacing: .1em; }
.photo-context { font-size: .92rem; line-height: 1.6; margin-top: 10px; }
.photo-card:hover img { transform: none; filter: none; }
.cluster-label { margin-top: 56px; margin-bottom: 14px; }
.cluster-note { margin-top: 0; margin-bottom: 28px; line-height: 1.6; }
.mentor-strip { margin-bottom: 28px; }
.mentor-links { margin-top: 20px; gap: 12px; }

/* Workshop pages receive the same caption and card spacing. */
.ws-hero { gap: 52px; }
.ws-hero-card figcaption, .ws-photo figcaption { padding: 22px 24px 26px; }
.ws-hero-card b { line-height: 1.3; }
.ws-hero-card em { line-height: 1.6; }
.ws-photos-grid { gap: 24px; border: 0; background: transparent; margin-top: 28px; }
.ws-photo { border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.ws-proof > div, .ws-spec, .ws-diff, .ws-step, .ws-fmt { padding: 26px; }
.ws-proof p, .ws-spec p, .ws-diff p, .ws-step p, .ws-recv p { line-height: 1.65; }
.ws-qs { gap: 12px; }
.ws-recv { padding: 22px 26px; gap: 20px; }
.ws-tabs { margin-top: 28px; }
.ws-prog { padding: 32px; }
.ws-tb { padding: 22px; min-width: 0; }
.ws-tb b { line-height: 1.3; }
.ws-tb em { line-height: 1.6; }
.ws-faculty { padding: 32px; gap: 36px; margin-top: 28px; }
.ws-quote { padding: 28px 32px; }
.ws-cta { padding: 40px; margin-top: 56px; }
.ws-cta h2 { line-height: 1.15; }

@media (max-width:1100px) {

  .photo-grid { gap: 24px; }
  .persona-grid { gap: 14px; }
  .persona b { font-size: .74rem; }
  .persona span { font-size: .51rem; }
  
}
@media (max-width:900px) {
  .page-hero { gap: 32px; }

  .persona-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 22px; }
  .persona b { font-size: .9rem; }
  .persona span { font-size: .6rem; }
  .photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .big-grid, .questions, .press-grid { grid-template-columns: 1fr; }
  .paper-card { grid-template-columns: 1fr; padding: 28px; }
  .ws-hero { gap: 32px; grid-template-columns: minmax(0,1fr) 270px; }
  .ws-hero h1 { font-size: 2.65rem; }
  .ws-hero-card figcaption, .ws-photo figcaption { padding: 20px; }
  .ws-prog { padding: 26px; }

}
@media (max-width:640px) {
  :root { --space-section: 52px; --space-card: 22px; --space-grid: 20px; }
  .wrap { padding-inline: 22px; }
  .nav, .nav-inner { height: 96px; }
  .nav-inner { gap: 1px; }
  .nav-links { gap: 10px; }
  .nav-link { padding: 9px 8px; min-height: 40px; }

  .creds-strip { gap: 8px 24px; }
  .creds-strip > * { padding: 16px 0; gap: 13px; }
  .proof-band { padding-block: 14px; }
  .page-head { padding-top: 132px !important; }
  .page-hero, .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
  .page-hero .eyebrow { margin-bottom: 16px; }
  .page-hero h1, .page-hero .as-h1 { font-size: clamp(2.35rem,9.6vw,3.05rem); line-height: 1.12; }
  .page-hero p { line-height: 1.65; }
  .sa-header-doodle { margin-top: 20px; }
  .persona-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 18px; margin-top: 30px; }
  .persona b { font-size: .82rem; margin-top: 15px; }
  .persona span { font-size: .54rem; }
  .photo-grid { grid-template-columns: 1fr; gap: 26px; }
  .photo-card .photo-cap { padding: 22px; }
  .photo-venue { font-size: .65rem; }
  .photo-context { font-size: .94rem; line-height: 1.6; }
  .big-card, .question-link, .press-link, .concept { padding: 24px; }
  .big-card.proof-photo { padding: 0; }
  .paper-card { padding: 24px 20px; gap: 24px; }
  .paper-figure figcaption, .page-figure figcaption { padding: 14px; }
  .callout, .cite-box, .standards, .mentor-strip, .isentia-band { padding: 24px 22px; }
  .program-side { padding: 26px; }
  .usecase-card, .fact, .stat { padding: 24px; }
  .cluster-label, h2.sub { margin-top: 44px; }
  .cluster-label { margin-bottom: 12px; line-height: 1.65; }
  .cluster-note { margin-bottom: 24px; }
  h2.sub { margin-bottom: 18px; }
  .prose { margin-top: 24px; }
  .prose h2 { margin-top: 38px; }
  .disc-table th { padding: 20px 0 0; }
  .disc-table td { padding: 10px 0 20px; }
  .faq-answer { padding: 0 18px 24px 0; }
  .ws-hero { grid-template-columns: 1fr; }
  .ws-hero-card { max-width: 340px; }
  .ws-proof > div, .ws-spec, .ws-diff, .ws-step, .ws-fmt { padding: 24px; }
  .ws-faculty { padding: 24px; gap: 24px; }
  .ws-prog { padding: 24px 20px; }
  .ws-tb { padding: 16px 20px; }
  .ws-recv { padding: 22px; gap: 10px; }
  .ws-quote, .ws-cta { padding: 28px 24px; }

}
@media (max-width:360px) {
  .wrap { padding-inline: 18px; }

  .persona b { font-size: .76rem; }
  .persona span { font-size: .5rem; }
}
@media print {
  .page-head { padding-top: 20px !important; }
  
}

/* Long citations must wrap inside their cards on narrow screens. */
.paper-card > *, .paper-figure { min-width: 0; }
.paper-apa, .paper-apa a, .paper-page-apa, .cite-box { overflow-wrap: anywhere; }
@media (max-width:900px) {
  .paper-card { grid-template-columns: minmax(0,1fr); }
}

/* Illustration-led cover from v19, without a personal photograph. */
.hero { padding-bottom: 46px; }
.hero-copy { display: block; }
.hero-visual { background: #fff; }

/* A single cobalt footer. The original portrait is blended with CSS edge gradients;
   there is no recolouring, retouching, border, shadow or image-card background. */
.footer {
  --footer-blue: #2746e6;
  background: var(--footer-blue);
  color: #fff;
  padding: 64px 0 32px;
  overflow: hidden;
}
.sa-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 72px;
  align-items: center;
  max-width: 1100px;
  scroll-margin-top: 110px;
}
.sa-footer-author { min-width: 0; padding-bottom: 16px; }
.footer .sa-footer-kicker {
  font-family: var(--mono);
  font-size: .65rem;
  line-height: 1.6;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #e3e8ff;
  margin: 0 0 17px;
}
.footer h2.sa-footer-name {
  font-family: var(--display);
  font-size: clamp(2.1rem, 3.8vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 22px;
  max-width: none;
}
.footer .footer-bio {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 60ch !important;
  color: #f2f4ff;
  text-align: left;
}
.footer .footer-bio strong { font-weight: 500; }
.footer a { color: inherit; text-underline-offset: 4px; }
.footer .footer-links { gap: 24px; margin-top: 24px; justify-content: flex-start; }
.footer .footer-links a {
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .58);
  padding: 10px 0;
  min-height: 44px;
  font-size: .7rem;
  color: #fff;
}
.footer .footer-links a:hover { border-color: #fff; }
.sa-footer-portrait {
  margin: 0;
  width: 100%;
  align-self: center;
  position: relative;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.sa-footer-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 925;
  object-fit: contain;
  object-position: center;
  filter: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
/* Transparent through the face and body, opaque blue at the photograph edges.
   This avoids multi-mask compositing differences across browser engines. */
.sa-footer-portrait::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 72% 75% at 58% 33%, rgba(39,70,230,0) 44%, rgba(39,70,230,.08) 60%, rgba(39,70,230,.6) 80%, #2746e6 100%),
    linear-gradient(to right, #2746e6 0%, rgba(39,70,230,.6) 7%, rgba(39,70,230,0) 22%, rgba(39,70,230,0) 80%, rgba(39,70,230,.4) 92%, #2746e6 100%),
    linear-gradient(to bottom, #2746e6 0%, rgba(39,70,230,0) 7%, rgba(39,70,230,0) 75%, rgba(39,70,230,.35) 88%, #2746e6 100%);
}
.sa-footer-programme {
  border-top: 1px solid rgba(255,255,255,.24);
  padding-top: 30px;
  margin-top: 28px;
}
.footer .footer-summary {
  max-width: 1000px !important;
  font-size: .92rem;
  line-height: 1.7;
  color: #edf0ff;
  columns: auto;
}
.footer-nav {
  column-gap: 24px;
  row-gap: 6px;
  margin-top: 26px;
  padding-top: 20px;
  border-color: rgba(255,255,255,.24);
}
.footer-nav a {
  padding-block: 9px;
  min-height: 36px;
  line-height: 1.6;
  font-size: .61rem;
  color: #edf0ff;
}
.footer .footer-disclosure {
  margin-top: 20px;
  padding-top: 22px;
  max-width: 100%;
  font-size: .8rem;
  line-height: 1.7;
  color: #e3e8ff;
  border-color: rgba(255,255,255,.24);
}
.footer .credits {
  margin-top: 18px;
  padding-top: 0;
  border: 0;
  font-size: .66rem;
  line-height: 1.75;
  letter-spacing: 0;
  text-transform: none;
  color: #dce2ff;
  max-width: 112ch;
}
.footer a:focus-visible { outline-color: #fff; }

@media (max-width: 1100px) {
  .sa-footer-top { gap: 44px; grid-template-columns: minmax(0,1fr) 310px; }
}
@media (max-width: 900px) {
  .sa-footer-top { gap: 28px; grid-template-columns: minmax(0,1fr) 245px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 128px; padding-bottom: 34px; }
  .hero-grid { row-gap: 30px; }
  .hero-copy { display: block; }
  .footer { padding: 46px 0 28px; }
  .sa-footer-top { grid-template-columns: minmax(0,1fr); gap: 0; }
  .sa-footer-author { padding-bottom: 0; }
  .footer .sa-footer-kicker { font-size: .61rem; margin-bottom: 15px; }
  .footer h2.sa-footer-name { font-size: 2.4rem; margin-bottom: 20px; }
  .footer .footer-bio { font-size: .96rem; line-height: 1.7; }
  .sa-footer-portrait {
    width: min(290px, 92%);
    justify-self: center;
    margin-top: 24px;
  }
  .sa-footer-programme { margin-top: 16px; padding-top: 26px; }
  .footer .footer-summary { font-size: .89rem; line-height: 1.75; }
  .footer-nav { column-gap: 20px; row-gap: 5px; margin-top: 24px; }
  .footer-nav a { font-size: .59rem; min-height: 40px; }
  .footer .footer-disclosure { margin-top: 18px; padding-top: 22px; font-size: .77rem; }
}
@media print {
  .hero { padding-top: 20px !important; }
  .sa-footer-portrait::after { display: none; }
}
