/* Shared presentation for portfolio pages, evidence records, and demos. */
:root {
  --paper: #f8f5ee;
  --surface: #eeeadf;
  --ink: #242321;
  --muted: #625f57;
  --line: #c9c3b7;
  --accent: #a43f2c;
  --navy: var(--ink);
  --navy-2: var(--ink);
  --teal: var(--accent);
}
body { background: var(--paper); color: var(--ink); }
html { scroll-behavior: auto; }
body .coordination-demo > h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
main h1, .hero-copy h1, .page-hero h1, .project-detail-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); line-height: 1.08; letter-spacing: -.025em; }
main h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.15; }
main h3 { line-height: 1.25; }
.section { padding: clamp(2.75rem, 5vw, 4.5rem) 0; }
.hero-inner { padding-top: 4rem; padding-bottom: 3.5rem; }
.hero-copy h1 { max-width: 18ch; }
.hero-copy > p { max-width: 62ch; font-size: 1.03rem; }
.hero-copy .eyebrow { font-size: .72rem; color: var(--accent); }
.hero-copy .identity-note { margin: .6rem 0 1.3rem; font-size: .88rem; color: var(--muted); }
.hero-copy .availability-note { font-size: .87rem; }
.page-hero, .project-detail-hero, .artifact-page-hero, .verification-hero, .proof-hero {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.page-hero::before, .project-detail-hero::before { display: none; }
.artifact-page-hero, .verification-hero, .proof-hero { padding: 3.5rem 0; }
.page-hero .container, .project-detail-hero .container { padding-top: 3.5rem; padding-bottom: 3rem; }
.artifact-page-hero h1, .verification-hero h1, .proof-hero h1 { color: var(--ink); font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
.artifact-page-hero p, .verification-hero p, .proof-hero p { color: var(--muted); }
.artifact-page-hero .eyebrow, .verification-hero .eyebrow, .proof-hero .eyebrow { color: var(--accent) !important; }
.page-hero .eyebrow, .project-detail-hero .eyebrow { color: var(--accent); }
.artifact-meta > div { background: var(--surface); border: 1px solid var(--line); border-radius: 0; }
.artifact-meta strong, .artifact-meta span { color: var(--ink); }
.section-heading h2, .editorial-callout h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
.section-heading { gap: clamp(1.5rem, 4vw, 4rem); }
.project-grid > .project-card:first-child .project-cover { min-height: 280px; }
#featured-work .project-grid > .project-card:last-child { grid-column: 1 / -1; }
.project-cover { min-height: 220px; }
.file-cover strong { font-size: clamp(1.65rem, 3vw, 2.7rem); line-height: 1.08; }
.project-card h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); }
.project-body { padding: 1.25rem 1.5rem; }
.project-body > p { max-width: 65ch; }
.case-grid, .artifact-grid, .evidence-pack-grid, .check-grid, .issue-grid { gap: 1rem; }
.case-card, .artifact-card, .proof-card, .evidence-pack-card, .verification-card,
.check-item, .issue-card, .boundary-box, .benchmark-note, .boundary-note,
.detail-aside .info-panel, .related-evidence-card, .demo-notice, .browser-frame,
.method-table-wrap, .architecture-panel, .architecture-node, .overview-card,
.before-card, .after-card, .artifact-sheet, .benchmark-card, .evidence-table-wrap,
.proof-stat, .control-card, .asset-card, .flow-step {
  border-radius: 0;
  box-shadow: none;
}
.case-card, .artifact-card, .proof-card, .evidence-pack-card, .verification-card,
.check-item, .issue-card, .related-evidence-card, .overview-card {
  background: var(--paper);
  border: 1px solid var(--line);
}
.case-card h3, .artifact-card h3, .proof-card h3, .evidence-pack-card h3 { color: var(--ink); }
.case-card p, .artifact-card p, .proof-card p { color: var(--muted); }
.before-card, .after-card, .benchmark-card, .artifact-sheet { background: var(--paper); border-color: var(--line); }
.after-card { border-top: 2px solid var(--accent); }
.demo-notice { background: var(--surface); color: var(--muted); border-color: var(--line); }
.metric-callout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.metric-card, .metric-callout .metric-card { padding: 1.1rem; background: var(--ink); border: 1px solid var(--ink); border-radius: 0; }
.metric-card strong { display: block; color: var(--paper); font-size: clamp(1.4rem, 2.8vw, 1.85rem); line-height: 1.15; }
.metric-card span { display: block; margin-top: .5rem; color: #d9d2c6; font-size: .9rem; line-height: 1.5; }
.button-primary.proof-button { background: var(--ink); color: var(--paper); }
.button-secondary.proof-button-secondary { border-color: var(--ink); color: var(--ink); }
.button-secondary.proof-button-secondary:hover, .button-secondary.proof-button-secondary:focus-visible { background: var(--surface); border-color: var(--accent); }
.coordination-boundary, .artifact-callout { border-radius: 0; background: var(--surface); color: var(--muted); border-color: var(--line); }
.readiness-bar span { background: var(--accent); }
.proof-summary { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.proof-summary article { background: transparent; padding: 1rem; border: 0; border-top: 2px solid var(--ink); }
.proof-summary span { color: var(--accent); }
.proof-summary strong { color: var(--ink); font-size: 1.25rem; }
.case-summary p { font-size: .95rem; }
.case-summary article { border-top: 1px solid var(--line); }
.boundary-note, .boundary-box, .benchmark-note {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 0;
  border-left: 2px solid var(--accent);
  color: var(--muted);
}
.boundary-note h2, .boundary-box h2 { font-size: 1.2rem; }
.boundary-note p, .boundary-box p, .benchmark-note { font-size: .9rem; }
.architecture-node.core { background: var(--surface); color: var(--ink); border-color: var(--accent); }
.architecture-node.core strong, .architecture-node.core span { color: var(--ink); }
.browser-toolbar, .preview-header { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
.preview-sidebar { background: var(--ink); }
.preview-sidebar .active { background: #49443b; }
.preview-main { background: var(--paper); }
.preview-row { border-radius: 0; }
.role-hero, .role-metric-strip { background: var(--paper); color: var(--ink); }
.role-metrics strong, .role-metrics span { color: var(--ink); }
.role-metric-strip { border-bottom: 1px solid var(--line); }
.related-evidence-heading, .related-evidence-card h3 { color: var(--ink); }
.related-evidence-section { background: var(--surface); }
.related-evidence-card:hover, .related-evidence-card:focus-visible { transform: none; box-shadow: none; }
.contact-card { border-radius: 0; background: transparent; }
.contact-card h2 { font-size: 1.65rem; }
.service-summary-link { display: block; margin-top: 1.5rem; font-size: .9rem; }
.compact-link-list a { min-width: 0; }
.compact-link-list a:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.compact-link-list strong { display: block; line-height: 1.25; }
.compact-link-list span { display: block; font-size: .9rem; line-height: 1.5; }
.project-status { max-width: 80ch; margin-top: 2rem; }
.project-status h2 { font-size: 1.2rem; }
.site-footer a { font-size: .8rem; }
.brand::after { content: 'BUSINESS SYSTEMS / APPLIED AI'; }

/* A project preview is one visual unit, with matching image and title positions. */
.project-grid { gap: 1.75rem; background: transparent; border: 0; align-items: stretch; }
.project-grid > .project-card { border: 1px solid var(--line); background: var(--paper); }
.project-grid .project-cover,
.project-grid > .project-card:first-child .project-cover {
  display: flex; align-items: center; justify-content: center;
  height: 270px; min-height: 270px; padding: 1.15rem;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.project-grid .project-cover .artifact-thumb { height: 100%; min-height: 0; box-shadow: none; border-radius: 3px; }
.project-grid .project-card:first-child,
#featured-work .project-card:last-child {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
}
.project-grid > .project-card:first-child .project-cover,
#featured-work .project-card:last-child .project-cover {
  height: 100%; min-height: 300px; border-bottom: 0; border-right: 1px solid var(--line);
}
.project-body { gap: .5rem; justify-content: center; }
.project-body h3 { margin: .5rem 0; }
.project-body .project-link { padding-top: 1.3rem; }
.project-card .badge { color: var(--accent); }
.planning-visual { width: 100%; color: var(--ink); }
.visual-label { display: block; color: var(--accent); font: 700 .68rem/1.4 ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.planning-scale { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 1.3rem 0; }
.planning-scale strong { display: block; font: 600 clamp(1.6rem,3vw,2.4rem)/1 Georgia,serif; }
.planning-scale span { display: block; margin-top: .45rem; font-size: .78rem; color: var(--muted); }
.visual-flow { display: flex; gap: .6rem; align-items: center; padding-top: 1rem; border-top: 1px solid var(--line); }
.visual-flow span { flex: 1; text-align: center; font-size: .85rem; font-weight: 650; }
.visual-flow b { color: var(--accent); }
.planning-visual p { margin-top: 1rem; font-size: .75rem; color: var(--muted); }

/* Shared impact figures, including About, do not depend on homepage CSS. */
.impact-strip, .about-impact { background: var(--paper); color: var(--ink); }
.impact-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.impact-grid:has(> .impact-item) { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; }
.impact-grid > .impact-item { min-width: 0; padding: 1.5rem 1.15rem; border-right: 1px solid var(--line); border-bottom: 0; }
.impact-grid > .impact-item:last-child { border-right: 0; grid-column: auto; }
.impact-grid > .impact-item strong { display: block; color: var(--ink); font: 600 clamp(1.5rem,2.4vw,2rem)/1.15 Georgia,serif; }
.impact-grid > .impact-item span { display: block; margin-top: .6rem; color: var(--muted); font-size: .85rem; line-height: 1.45; }

/* Architecture projects have a small explanatory diagram rather than a text table. */
.compact-link-list.system-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; background: transparent; border: 0; }
.compact-link-list .system-tile { position: relative; gap: 0; padding: 1.5rem; min-width: 0; border: 1px solid var(--line); background: var(--paper); transition: border-color .15s ease; }
.compact-link-list .system-tile:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 2.5rem; }
.compact-link-list .system-tile:first-child .system-diagram { grid-column: 2; grid-row: 1 / 5; align-self: center; }
.compact-link-list .system-tile:first-child strong,
.compact-link-list .system-tile:first-child .system-description,
.compact-link-list .system-tile:first-child .system-open { grid-column: 1; }
.compact-link-list .system-tile:last-child:nth-child(3n+1) { grid-column: auto; }
.compact-link-list .system-category { color: var(--accent); font: 700 .66rem/1.35 ui-monospace,monospace; text-transform: uppercase; letter-spacing: .07em; }
.compact-link-list .system-tile strong { font: 600 1.45rem/1.2 Georgia,serif; margin: 1.1rem 0 .6rem; }
.compact-link-list .system-description { font-size: .92rem; }
.compact-link-list .system-open { margin-top: 1.3rem; color: var(--ink); font-size: .8rem; font-weight: 750; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.compact-link-list .system-tile:hover,
.compact-link-list .system-tile:focus-visible { border: 1px solid var(--accent); box-shadow: none; }
.system-diagram { display: flex; align-items: center; gap: .55rem; margin: 1.2rem 0 .2rem; padding: 1rem 0; }
.system-diagram span { flex: 1; min-width: 0; padding: .75rem .4rem; background: var(--surface); border-top: 2px solid var(--accent); text-align: center; font-size: .76rem; color: var(--ink); line-height: 1.35; }
.system-diagram b { color: var(--accent); font-weight: 500; }
.system-tile-5 .system-diagram span { border-top-color: var(--ink); }
.system-tile-6 .system-diagram span, .system-tile-7 .system-diagram span { background: #e7e1d5; }

/* The demo catalog presents the task and its output, with one lead demonstration. */
.workflow-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.workflow-catalog .workflow-showcase { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.workflow-catalog .workflow-showcase:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); }
.workflow-visual { padding: 1.5rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.workflow-showcase:first-child .workflow-visual { display: flex; flex-direction: column; justify-content: center; border-bottom: 0; border-right: 1px solid var(--line); }
.workflow-visual .system-diagram { margin: 1.2rem 0 0; }
.workflow-visual .system-diagram span { background: var(--paper); padding: 1.2rem .5rem; min-height: 62px; display: flex; align-items: center; justify-content: center; }
.workflow-copy { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.workflow-copy h3 { margin: 0 0 .75rem; font: 600 1.6rem/1.2 Georgia,serif; }
.workflow-copy p { font-size: .95rem; margin: 0; }
.workflow-copy .actions { margin-top: auto; padding-top: 1.5rem; gap: .75rem 1.25rem; }
.workflow-copy .actions a { font-size: .83rem; text-decoration: underline; text-underline-offset: 4px; }
.workflow-copy .actions a:last-child { font-weight: 500; color: var(--muted); }
.proof-grid:not(.workflow-catalog) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.proof-grid:not(.workflow-catalog) > .proof-card { padding: 1.4rem; border: 0; border-top: 2px solid var(--accent); background: var(--paper); }
.proof-grid:not(.workflow-catalog) > .proof-card:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
.credential-grid { gap: 1.5rem; border: 0; background: transparent; }
.credential-card { border-left: 3px solid var(--accent); background: var(--paper); padding: 1.25rem 1.5rem; }
.credential-card h3 { font-size: 1.35rem; }
.section-heading { margin-bottom: 1.75rem; }
.section-heading h2 { margin-top: .5rem; }

@media (max-width: 980px) {
  .proof-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .compact-link-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .impact-grid:has(> .impact-item) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .impact-grid > .impact-item { border-bottom: 1px solid var(--line); }
  .impact-grid > .impact-item:last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .hero-inner { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .hero-copy h1, .page-hero h1, .project-detail-hero h1,
  .artifact-page-hero h1, .verification-hero h1, .proof-hero h1,
  body .coordination-demo > h1 { font-size: clamp(2rem, 8vw, 2.7rem); }
  .hero-copy h1 { max-width: none; }
  .section-heading h2, .editorial-callout h2 { font-size: 1.9rem; }
  .page-hero .container, .project-detail-hero .container { padding-top: 2.5rem; padding-bottom: 2rem; }
  .artifact-page-hero, .verification-hero, .proof-hero { padding: 2.5rem 0; }
  .proof-summary, .compact-link-list { grid-template-columns: minmax(0,1fr); }
  .metric-callout { grid-template-columns: minmax(0,1fr); }
  .architecture-grid { grid-template-columns: minmax(0,1fr); }
  .project-grid .project-card:first-child, #featured-work .project-card:last-child { display: flex; }
  .project-grid .project-cover, .project-grid > .project-card:first-child .project-cover,
  #featured-work .project-card:last-child .project-cover { height: 260px; min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .compact-link-list.system-gallery, .workflow-catalog, .proof-grid:not(.workflow-catalog) { grid-template-columns: minmax(0,1fr); }
  .compact-link-list .system-tile:first-child, .workflow-catalog .workflow-showcase:first-child { display: flex; flex-direction: column; }
  .workflow-showcase:first-child .workflow-visual { border-right: 0; border-bottom: 1px solid var(--line); }
  .compact-link-list .system-tile:first-child .system-diagram { align-self: stretch; }
  .impact-grid:has(> .impact-item) { grid-template-columns: minmax(0,1fr); }
  .impact-grid > .impact-item { border-right: 0; padding: 1.25rem; }
  .impact-grid > .impact-item:last-child { grid-column: auto; }
  .case-card, .artifact-card { min-width: 0; }
  .project-body { padding: 1.25rem; }
  .brand::after { display: none; }
}

/* Evidence access and progressive project browsing. */
.project-library summary { cursor: pointer; padding: 1rem 0; font-weight: 650; font-size: 1.05rem; color: var(--ink); }
.project-library[open] summary { margin-bottom: 1rem; }
.project-library summary:focus-visible, .evidence-card a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.evidence-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.evidence-card { min-width: 0; padding: 1.5rem; border: 1px solid var(--line); background: var(--paper); }
.evidence-card h2 { font-size: 1.6rem; margin-top: 0; }
.evidence-card .actions { gap: .75rem 1rem; margin-top: 1.25rem; }
.evidence-card a { min-height: 44px; display: inline-flex; align-items: center; }
.evidence-card p, .evidence-card li { overflow-wrap: anywhere; }
.evidence-checklist { max-width: 75ch; }
@media (max-width: 720px) { .evidence-grid { grid-template-columns: minmax(0,1fr); } .evidence-card { padding: 1.25rem; } .project-library summary { min-height: 44px; } }


/* Screenshot review: proof-linked career file, aligned split cards, and a tighter Work transition. */
.field-note::before { content: none; }
.field-note-title {
  margin: 0;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font: 700 .65rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.field-note-detail { min-width: 0; }
.field-note-detail strong { display: block; }
.field-note-links { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-top: .4rem; }
.field-note-row .field-note-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.field-note-row .field-note-links a:hover { color: var(--ink); }
.field-note-row .field-note-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.field-note-disclosure { margin: .75rem 0; font-size: .72rem; line-height: 1.5; color: var(--muted); }
.work-page .page-hero .container { padding-bottom: 1.75rem; }
.work-page #featured-work { padding-top: clamp(1.75rem, 3vw, 2.75rem); }
@media (max-width: 540px) {
  .field-note-row { grid-template-columns: minmax(0,1fr); gap: .4rem; }
}


/* Keep the workflow sheet at its natural height; the surrounding cover provides the frame. */
.project-grid .project-cover .thumb-docs { height: auto; }

/* A thumbnail is not a full mobile form. Preserve all three coach steps in view. */
@media (max-width: 720px) {
  .project-grid .interview-coach-cover { height: auto; max-height: none; }
  .project-grid .coach-preview-head { padding: .75rem; font-size: .8rem; flex-wrap: wrap; gap: .5rem; }
  .project-grid .coach-preview-body { grid-template-columns: minmax(0, 1fr); }
  .project-grid .coach-preview-body > div {
    min-height: 0;
    padding: .75rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .project-grid .coach-preview-body > div:last-child { border-right: 0; }
  .project-grid .coach-preview-body > div:last-child { border-bottom: 0; }
  .project-grid .coach-preview-body small { font-size: .8rem; }
  .project-grid .coach-preview-body strong { margin-top: .3rem; font-size: 1.05rem; }
  .project-grid .coach-preview-body span { font-size: .9rem; }
}

/* Two contrasting edges keep keyboard focus visible on paper and charcoal. */
html body :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible:focus {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--paper);
}
@media (forced-colors: active) {
  html body :focus-visible { outline: 3px solid Highlight; }
}

/* Keep the full evidence file and all five scope figures in a shorter mobile introduction. */
@media (max-width: 720px) {
  .hero-recruiter .hero-inner { padding-top: 1.75rem; padding-bottom: 1.5rem; }
  .hero-recruiter .field-note-row { padding: .6rem 0; gap: .3rem; }
  .hero-recruiter .field-note-links { gap: 0 .75rem; margin-top: .15rem; }
  .hero-recruiter .field-note-disclosure { margin: .5rem 0; }
  .hero-recruiter + .impact-strip .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-recruiter + .impact-strip .impact-item { padding: .75rem; border-bottom: 1px solid var(--line); }
  .hero-recruiter + .impact-strip .impact-item:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .hero-recruiter + .impact-strip .impact-item span { margin-top: .3rem; }
}
