/* Portfolio & founder pages. Uses core design tokens from styles.css.
   These layouts work without JavaScript; the portfolio catalogue is enhanced
   separately from a single data source. */
:root { --content-measure: 68ch; }
.accent { color: var(--orange); }
.eyebrow {
  margin-bottom: 1.25rem; color: var(--orange-hi); text-transform: uppercase;
  font-size: .8rem; font-weight: 800; letter-spacing: .16em;
}
.case-intro { padding-bottom: clamp(3rem, 7vw, 6rem); }
.case-hero { display: grid; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.case-hero__copy { min-width: 0; }
.case-hero__copy .lead { max-width: 58ch; }
.case-hero__media { min-width: 0; }
.case-hero__copy .btn-row { margin-top: 2rem; }
.case-facts, .case-tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.5rem 0 0; }
.case-facts .chip { max-width: 100%; }
.case-visual { margin: 0; }
.case-visual img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--char);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.case-visual figcaption, .case-gallery figcaption { margin-top: .7rem; color: var(--muted); font-size: .83rem; line-height: 1.55; }
.case-art {
  position: relative; display: grid; place-items: center; min-height: 320px;
  background: radial-gradient(75% 80% at 50% 44%, rgba(238,79,25,.2), transparent), var(--char);
  border: 1px solid var(--line); overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.case-art::before, .case-art::after { content: ''; position: absolute; inset: 19%; border: 1px solid rgba(238,79,25,.28); transform: rotate(45deg); }
.case-art::after { inset: 33%; transform: rotate(45deg); border-color: rgba(238,79,25,.16); }
.case-art__glyph { position: relative; z-index: 1; color: var(--orange); font: 800 clamp(5rem, 10vw, 9rem)/1 var(--font-display); }
.case-art__line { position: absolute; width: 160%; height: 1px; background: linear-gradient(90deg, transparent, var(--orange-lo), transparent); transform: rotate(-22deg); }
.case-grid { display: grid; gap: clamp(1.25rem, 4vw, 5rem); align-items: start; }
.case-grid .lead { max-width: 65ch; }
.case-subhead { margin: 2.5rem 0 1rem; font-size: 1.25rem; }
.case-tags { margin: 0; }
.case-tags li { padding: .38rem .7rem; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.checklist { display: grid; gap: 1rem; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 1.3rem; color: var(--muted); }
.checklist li::before { content: ''; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; background: var(--orange); transform: rotate(45deg); }
.source-note { color: var(--muted); border-left: 2px solid var(--orange); padding: .8rem 1.2rem; margin: 2rem 0 0; background: rgba(238,79,25,.05); font-size: .93rem; }
.case-gallery { display: grid; gap: 2rem; margin-top: 2rem; }
.case-gallery__item { margin: 0; }
.case-gallery__item img { width: 100%; height: auto; border: 1px solid var(--line); }
@media (min-width: 900px) {
  .case-hero { grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); }
  .case-grid { grid-template-columns: minmax(220px,.6fr) minmax(0,1fr); }
  .case-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
/* On long project lists, the entire card image/title is an accessible link. */
.work__title-link { text-decoration: none; }
.work__title-link:hover { color: var(--orange-hi); }
.work h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: .25rem 0 .15rem; }
.thumb--linked { color: inherit; text-decoration: none; }
.thumb--linked:focus-visible { outline: 4px solid var(--orange); outline-offset: -4px; }
.thumb--linked img { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; transition: transform .45s var(--ease), filter .45s; }
@media (hover:hover) { .thumb--linked:hover img { transform: scale(1.045); filter: brightness(1.06); } }
.thumb__glyph { position: relative; display: grid; place-items: center; width: 62%; height: 60%; }
.thumb__glyph span { font: 800 6rem/1 var(--font-display); color: var(--orange); }
.thumb__glyph i { width: 60%; height: 2px; background: #3a3a40; margin-top: .5rem; }
/* Founder résumé is a dedicated, print-friendly editorial layout. */
.founder-intro { padding-bottom: 2rem; }
.founder-hero { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.founder-hero__copy .h-display { font-size: clamp(3.8rem, 9vw, 8rem); line-height: .92; }
.founder-hero__copy .lead { max-width: 56ch; }
.founder-hero__copy .muted { max-width: 62ch; }
.founder-hero__copy .btn-row { margin-top: 2rem; }
.founder-hero__art {
  max-width: 520px; width: 100%; justify-self: center;
  border: 1px solid rgba(238,79,25,.35); background: radial-gradient(60% 70% at 50% 60%, rgba(238,79,25,.14), transparent 75%);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}
.founder-hero__art img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.founder-layout { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.founder-sidebar { display: grid; gap: 1rem; }
.founder-sidebar__card { background: var(--char); padding: clamp(1.4rem,3vw,2rem); border: 1px solid var(--line); }
.founder-sidebar__card h2 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.founder-contact { list-style: none; display: grid; gap: .9rem; }
.founder-contact a { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(238,79,25,.4); padding-bottom: .3rem; }
.founder-contact a:hover { color: var(--orange-hi); }
.skill-group + .skill-group { margin-top: 1.5rem; }
.skill-group h3 { color: var(--orange-hi); font-size: .97rem; margin-bottom: .3rem; }
.skill-group p { color: var(--muted); font-size: .9rem; margin: 0; }
.founder-content { min-width: 0; }
.founder-section { padding: 0 0 clamp(2.5rem,5vw,4rem); margin-bottom: clamp(2.5rem,5vw,4rem); border-bottom: 1px solid var(--line); }
.founder-section:last-child { border-bottom: 0; }
.founder-section .h-section { margin-bottom: 1.5rem; }
.timeline { margin-top: 2rem; border-left: 1px solid var(--line); }
.timeline__item { padding: .25rem 0 2.1rem 1.5rem; position: relative; }
.timeline__item::before { content: ''; position: absolute; left: -5px; top: .6rem; width: 9px; height: 9px; transform: rotate(45deg); background: var(--orange); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item h3 { font-size: clamp(1.15rem,2vw,1.45rem); margin: .1rem 0 .3rem; }
.timeline__date { color: var(--orange-hi); font-size: .82rem; font-weight: 700; margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .06em; }
.timeline__org { font-weight: 650; font-size: .95rem; margin: 0 0 .8rem; }
.timeline__item p:not(.timeline__date):not(.timeline__org) { color: var(--muted); }
.career-more { margin-top: 1.5rem; border: 1px solid var(--line); padding: .9rem 1.2rem; }
.career-more summary { cursor: pointer; font-weight: 700; }
.career-more p { margin: 1rem 0 0; color: var(--muted); }
.qualification,.credential { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.qualification h3,.credential h3 { font-size: 1.12rem; margin-bottom: .2rem; }
.qualification p,.credential p { color: var(--muted); margin: 0; font-size: .95rem; }
.qualification > span,.credential > span { white-space: nowrap; color: var(--orange-hi); font-size: .84rem; font-weight: 700; }
.credly-note { color: var(--muted); margin-top: 1rem; }
.resume-projects { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); }
.resume-projects a { display: flex; flex-direction: column; gap: .4rem; border: 1px solid var(--line); padding: 1.25rem; background: var(--char); text-decoration: none; }
.resume-projects a:hover { border-color: var(--orange); color: var(--paper); }
.resume-projects strong { font: 700 1.05rem/1.3 var(--font-display); }
.resume-projects span { color: var(--muted); font-size: .9rem; }
.home-founder { display: grid; grid-template-columns: minmax(0,1fr); gap: 2rem; align-items: center; }
.home-founder__art { max-width: 360px; padding: 1rem; border: 1px solid var(--line); background: var(--ink); }
.home-founder__art img { width: 100%; aspect-ratio: 1; object-fit: contain; }
@media (min-width: 900px) {
  .founder-hero { grid-template-columns: minmax(0,1.16fr) minmax(320px,.84fr); }
  .founder-layout { grid-template-columns: minmax(250px,290px) minmax(0,1fr); }
  .founder-sidebar { position: sticky; top: calc(var(--header-h) + 2rem); }
  .home-founder { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
}
@media (max-width: 600px) {
  .founder-intro { padding-bottom: 1rem; }
  .founder-hero__art { width: min(100%,350px); }
  .founder-hero__copy .h-display { font-size: clamp(3.5rem,15vw,5.3rem); }
  .case-art { min-height: 240px; }
  .case-facts { gap: .4rem; }
  .resume-projects { grid-template-columns: 1fr; }
}
@media print {
  .founder-hero__art, .founder-sidebar__card:first-child, .home-founder, .case-gallery { display: none !important; }
  .founder-layout { display: block !important; }
  .founder-sidebar__card { border: 0; padding: 0; }
  .founder-sidebar__card h2 { margin: 0 0 .5rem; }
  .founder-hero__copy .h-display { font-size: 27pt; }
  .founder-intro { padding: 0 0 12pt; }
  .founder-section { padding: 0 0 12pt; margin: 0 0 12pt; }
  .founder-section .h-section { font-size: 17pt; margin: 0 0 7pt; }
  .timeline__item { padding-bottom: 8pt; break-inside: avoid; }
  .founder-sidebar__card, .qualification, .credential, .resume-projects a { background: none; }
  .eyebrow, .timeline__date, .qualification > span, .credential > span, .skill-group h3 { color: #333 !important; }
  .source-note { display: none; }
}

.about-founder-avatar { display: block; float: right; width: clamp(120px,24vw,205px); height: auto; margin: 0 0 1.5rem 1.5rem; background: var(--ink); border: 1px solid var(--line); }
@media (max-width: 540px) { .about-founder-avatar { width: 145px; } }

.resume-project-static { display:flex; flex-direction:column;gap:.4rem;border:1px solid var(--line);padding:1.25rem;background:var(--char); }
.resume-project-static strong { font:700 1.05rem/1.3 var(--font-display); }
.resume-project-static span { color:var(--muted);font-size:.9rem; }
