/* Content refinements use the approved site palette, spacing and motion. */
.personal-section .about-copy {max-width:650px;min-width:0}
.personal-section .about-copy p {
  max-width:61ch;
  font-size:clamp(16px,1.37vw,21px);
  line-height:1.58;
  letter-spacing:-.015em;
  margin-bottom:clamp(16px,2svh,24px);
}
.personal-section .about-copy p:last-child {margin-bottom:0}
.skills-section .skills-list {
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:clamp(24px,4.4vw,80px);
  row-gap:clamp(16px,2.8svh,33px);
}
.skills-section .skills-list li {
  min-width:0;
  border-top:1px solid rgba(255,255,255,.23);
  padding-top:clamp(13px,1.8svh,21px);
}
.skills-section .skills-list li p {max-width:44ch}
.company-showcase__origin a {
  display:inline-block;
  color:inherit;
  text-decoration:none;
  border-bottom:1px solid currentColor;
  padding:0 0 4px;
  transition:border-color .2s ease,opacity .2s ease;
}
.company-showcase__origin a:hover {opacity:.7}
.company-showcase__origin a:focus-visible {
  outline:2px solid currentColor;
  outline-offset:5px;
}
@media (min-width:1051px) {
  .personal-section .about-grid {
    align-items:center;
    margin-bottom:clamp(24px,4svh,50px);
  }
}
@media (max-width:850px) {
  .personal-section .about-copy p {
    font-size:clamp(16px,2.2vw,19px);
    max-width:67ch;
  }
  .skills-section .skills-list {column-gap:clamp(19px,3.2vw,42px)}
}
@media (max-width:600px) {
  .personal-section .about-copy p {font-size:17px;line-height:1.57}
  .skills-section .skills-list {
    grid-template-columns:minmax(0,1fr);
    row-gap:clamp(13px,2svh,19px);
  }
  .skills-section .skills-list li {
    gap:7px;
    padding-top:clamp(12px,2svh,18px);
    padding-bottom:clamp(2px,.5svh,6px);
  }
  .skills-section .skills-list li strong {font-size:clamp(22px,5.5vw,28px)}
  .skills-section .skills-list li p {font-size:15px;max-width:48ch}
}
@media (max-width:360px) {
  .personal-section .about-copy p {font-size:16px}
}

/* Scoped usability improvements. The approved kinetic display and product palettes stay intact. */
:root {
  --type-caption: 12px;
  --type-small: 14px;
  --type-body: 16px;
  --type-lead: clamp(17px, 1.55vw, 25px);
  --text-secondary: var(--mid);
  --radius-control: 8px;
  --radius-panel: 12px;
  --target-primary: 44px;
  --target-demo: 28px;
}

/* Shared reading scale and existing site colour tokens. */
.chapter-description { font-size: var(--type-lead); }
.company-showcase__secondary {
  font-size: var(--type-body);
  color: var(--text-secondary);
}

/* Preserve distinct project themes while harmonising comparable corners. */
.portfolio-scene :is(.trade-steps button, .ops-controls button) {
  border-radius: var(--radius-control);
}
.portfolio-scene :is(.ac-paper, .ac-evidence) {
  border-radius: var(--radius-panel);
}

/* Major actions remain visually distinct, with reliable pointer targets. */
:is(.chapter-open, .project-deep-link, .message-submit,
    .dialog-back, .dialog-case-link, .dialog-close, .menu-toggle) {
  min-height: var(--target-primary);
  touch-action: manipulation;
}
.portfolio-scene :is(.ac-nav button, .trade-steps button, .ops-controls button) {
  min-height: var(--target-demo);
  touch-action: manipulation;
}

/* Short editorial labels may remain uppercase but must remain readable. */
.hero .hero-overline { font-size: var(--type-caption); }
.manifesto .manifesto-foot > span {
  font-size: var(--type-caption);
  line-height: 1.5;
  letter-spacing: .07em;
}
.chapter .chapter-kicker {
  font-size: var(--type-caption);
  line-height: 1.4;
}
.portfolio-scene .studio-label > :is(span, em) {
  font-size: var(--type-caption);
  line-height: 1.35;
  letter-spacing: .06em;
  overflow-wrap: break-word;
}
.portfolio-scene .ac-proof-caption {
  font-size: var(--type-caption);
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* A genuine external link, not a tiny decorative badge. */
.company-showcase__origin {
  font-size: var(--type-small);
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-secondary);
}
.company-showcase__origin a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-primary);
  max-width: 100%;
  white-space: normal;
}

/* Keep the miniature accounting screen, but make its review status legible. */
.company-showcase__visual .trenic-preview__bottom {
  box-sizing: border-box;
  min-height: 28px;
  font-size: var(--type-caption);
  line-height: 1.25;
  color: #354249;
}
.company-showcase__visual .trenic-preview__bottom > strong,
.company-showcase__visual .trenic-preview__bottom-indicator {
  flex-shrink: 0;
}
.company-showcase__visual .trenic-preview__bottom > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
@container (max-width: 520px) {
  .company-showcase__visual .trenic-preview__bottom > span:last-child {
    display: none;
  }
}

/* Site-wide reading and control pass across Home, Work, Company and Contact. */
.hero .hero-person span,
.hero .scroll-hint,
.manifesto .manifesto-topline,
.work-introduction .tiny-line,
.work-introduction .work-indicator,
.chapter .chapter-trackside,
.chapter .chapter-bottom,
.work-theatre .work-words,
.personal-section .section-kicker,
.skills-section .section-mini-label,
.approach-reimagined__kicker,
.company-showcase__eyebrow,
.contact-section .contact-overline,
.contact-section .footerline :is(span, a) {
  font-size: var(--type-caption);
  line-height: 1.4;
}
.hero .scroll-hint {
  min-height: var(--target-primary);
  touch-action: manipulation;
}
.contact-section .footerline a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-primary);
}
.work-introduction .tiny-line,
.chapter .chapter-bottom {
  flex-wrap: wrap;
  row-gap: 7px;
}

/* Demo controls should be usable without replacing any product's styling. */
.portfolio-scene .ac-nav button,
.chapter-jewellery .trade-steps button,
.chapter .operations-board .ops-controls button {
  font-size: var(--type-caption);
  line-height: 1.3;
  min-height: 40px;
}
.chapter .operations-board .ops-document p {
  font-size: var(--type-caption);
  line-height: 1.45;
}
.chapter-jewellery .jewel-video-control {
  min-width: 44px;
  min-height: 44px;
  font-size: var(--type-caption);
  touch-action: manipulation;
}
@media (max-width: 480px) {
  .manifesto .manifesto-topline { flex-wrap: wrap; row-gap: 6px; }
  .work-introduction .tiny-line { align-items: flex-start; }
  .work-introduction .tiny-line > span:last-child { text-align: left; }
  .contact-section .footerline { row-gap: 6px; }
}
