/* Shared portfolio presentation. Game screenshots retain their original UI. */
:root {
  --paper: #f8f5ed;
  --ink: #263e34;
  --muted: #606d62;
  --line: #d9ddd1;
  --surface: #fffcf5;
  --green: #eaf0e5;
  --accent: #a76140;
  --radius: 16px;
  --section-space: clamp(56px, 7vw, 96px);
}
html { scroll-padding-top: 30px; }
body { font-size: 16px; }
.wrap, #interaction-design .wrap, #interaction-design #final-result > .wrap {
  width: min(1200px, calc(100% - 80px));
}
.section, .gameplay-section .section, .world-section .section,
.bestiary-section .section { padding-block: var(--section-space); }
h2, #interaction-design h2, #interaction-design .chapter-heading h2 {
  font: 500 clamp(34px, 3.5vw, 48px)/1.12 var(--heading);
  letter-spacing: -.035em;
  text-wrap: balance;
}
h3 { line-height: 1.2; }
.eyebrow, #interaction-design .eyebrow {
  font: 850 11px/1.5 var(--body);
  letter-spacing: .15em;
  color: var(--muted);
  margin-bottom: 16px;
}
.section-heading { gap: 40px; margin-bottom: 36px; }
.section-heading > p { max-width: 340px; font-size: 15px; line-height: 1.65; }
.site-header { height: 92px; }
.site-header nav { gap: 26px; font-size: 13px; }
.site-header nav a { padding-block: 12px; }
.button { border-radius: 10px; }
.button[aria-disabled="true"] { opacity: .58; cursor: default; }
.button[aria-disabled="true"]:hover { transform: none; background: var(--ink); }
.hero { min-height: 630px; padding-block: 48px 64px; grid-template-columns: 1fr 1.05fr; gap: 40px; }
.hero h1 { font-size: clamp(58px, 5.9vw, 82px); }
.hero-description { max-width: 440px; font-size: 18px; line-height: 1.7; }
.hero-art { height: 500px; }
.hero-cat { width: calc(100% + 28px); }
.hero .platform-note { font-size: 12px; margin-top: 20px; }
.hero-actions { gap: 24px; }
.project-overview { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 72px; padding-block: 40px; border-block: 1px solid var(--line); }
.overview-detail { min-width: 0; }
.project-overview h2 { font-size: clamp(28px, 2.8vw, 36px); }
.overview-detail > p { max-width: 660px; }
.project-meta { display: grid; grid-template-columns: 1.1fr .8fr 1.2fr; gap: 24px; margin: 26px 0 0; }
.project-meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; margin-bottom: 5px; }
.project-meta dd { margin: 0; font-size: 13px; font-weight: 800; }
.ui-gallery { gap: 32px; }
.ui-shot { margin: 0; min-width: 0; }
.ui-shot .ui-image { border: 1px solid #d0d2c8; border-radius: var(--radius); overflow: hidden; background: #343036; box-shadow: 0 8px 24px #263e3408; }
.ui-shot figcaption { margin-top: 18px; padding: 0; border: 0; gap: 6px; }
.ui-note { font: 850 11px/1.5 var(--body); letter-spacing: .1em; color: var(--muted); }
.ui-shot h3 { font-size: 26px; }
.ui-shot p { font-size: 15px !important; line-height: 1.65; margin-top: 2px; }
#interface-design .ui-hud-feature figcaption { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 32px; }
#interface-design .ui-hud-feature figcaption .ui-note { grid-column: 1; }
#interface-design .ui-hud-feature figcaption h3 { grid-column: 1; }
#interface-design .ui-hud-feature figcaption p { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.design-system { margin-top: 56px; padding: 32px; background: #f0f1e8; border: 1px solid var(--line); border-radius: var(--radius); }
.system-heading { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 28px; }
.system-heading h3 { font-size: 32px; }
.system-heading > p { max-width: 340px; font-size: 15px; }
.system-label { font: 800 13px var(--body); margin: 0 0 14px; }
.color-tokens { gap: 16px; }
.color-token > span { height: 88px; border-radius: 10px; }
.color-token strong { font-size: 13px; }
.color-token code { font: 12px/1.7 var(--body); color: var(--muted); }
.system-details { gap: 40px; padding-top: 28px; border-top:0; margin-top: 28px; }
.system-details h3, .ux-specs h3 { font-size: 23px; }
.font-specimen strong { font-size: 14px; }
.state-samples figcaption, .contrast-pair small { font-size: 12px; }
.ux-specs { gap: 32px; margin-top: 32px; padding-block: 28px; }
#interface-design .icon-tile { margin-top: 0; padding: 28px; border-radius: 12px; }
#interface-design .icon-grid span { font-size: 13px; }
#interaction-design { --paper: #f8f5ed; --ink: #263e34; --muted: #606d62; --line: #d9ddd1; background: var(--paper); padding-top: var(--section-space); border-top: 1px solid var(--line); font-family: var(--body); }
#interaction-design .exploration-heading { padding-bottom: 32px; }
#interaction-design .exploration-heading h2 { max-width: 750px; }
#interaction-design .exploration-heading > p:last-child { color: var(--muted); font-size: 16px; margin-top: 18px; }
#interaction-design .story-route { padding-block: 16px; gap: 24px; font-size: 13px; }
#interaction-design .story-route a { padding-block: 6px; }
#interaction-design .chapter { background: transparent; border: 0; padding-block: 56px; }
#interaction-design .chapter + .chapter { border-top: 1px solid var(--line); }
#interaction-design .chapter-heading { flex-direction: row; gap: 20px; align-items: center; margin-bottom: 28px; }
#interaction-design .chapter-heading h2 { font-size: clamp(30px, 3vw, 40px); }
#interaction-design .chapter-number { width: 42px; height: 42px; border: 1px solid #c2cdbc; background: var(--green); border-radius: 50%; font: 500 20px var(--heading); }
#interaction-design .chapter-heading .eyebrow { margin-bottom: 8px; }
#interaction-design .chapter-jumps { gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
#interaction-design .chapter-jumps a { padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: 800 13px var(--body); }
#interaction-design .example-heading > span { font: 800 12px var(--body); color: var(--accent); }
#interaction-design .example-heading h3 { font: 500 26px var(--heading); }
#interaction-design .wireframe-context { font-size: 15px; max-width: 760px; color: var(--muted); }
#interaction-design .accurate-wire-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 24px; }
#interaction-design .accurate-wire-card .board-top { color: var(--ink); font: 800 12px/1.5 var(--body); letter-spacing: .04em; border-color: var(--line); }
#interaction-design .accurate-wire-card .board-top > span { font-size: 11px; color: var(--muted); }
#interaction-design .accurate-wire-pair figcaption { font: 800 11px/1.5 var(--body); color: var(--muted); letter-spacing: .08em; }
#interaction-design .accurate-wire-pair .zoom { border-radius: 8px; overflow: hidden; }
.flow-artifact .flow-key { font-size: 12px; gap: 16px; }
.flow-artifact .map-scroll { background: var(--surface); border-color: var(--line); }
#interaction-design .flow-result-notes { gap: 24px; margin-top: 24px; }
#interaction-design .flow-result-notes p { color: var(--muted); font-size: 13px; }
#interaction-design .map-source { font-size: 12px; }
#final-result .screen-comparison-intro p { font-size: 17px; }
#final-result .screen-comparison-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
#final-result .screen-card { background: #edf0e7; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
#final-result .screen-card figcaption { min-height: 72px; padding-bottom: 16px; }
#final-result .screen-card figcaption b { font-size: 24px; }
#final-result .screen-card-size { font-size: 12px; }
#final-result .screen-device-stage { height: 330px; }
#final-result .screen-device { width: min(100%, calc(310px * var(--device-ratio))); }
#interaction-design .evidence-note { padding-bottom: 32px; }
#interaction-design .evidence-note summary { font: 800 14px var(--body); padding-block: 18px; }
#interaction-design .evidence-note summary::after { content: '+'; font-size: 22px; }
#interaction-design .evidence-note[open] summary::after { content: '−'; }
.gameplay-section { background: var(--green); border-block: 1px solid var(--line); }
.gameplay-grid { gap: 32px 24px; }
.clip-frame { border-radius: var(--radius); border: 1px solid #c9d1c3; }
.gameplay-copy { padding: 0; margin-top: 16px; }
.gameplay-copy::before { display: none; }
.gameplay-copy h3, .gameplay-card:nth-child(n+3) .gameplay-copy h3 { font-size: 25px; }
.motion-toggle { font: 800 12px var(--body); border: 1px solid #c4cebd; border-radius: 8px; padding: 10px 14px; }
.world-section { background: var(--paper); border: 0; }
.world-journey { gap: 28px 24px; padding: 0; }
.journey-track { display: none; }
.world-chapter, .world-chapter:nth-of-type(n) { transform: none; }
.chapter-picture, .world-chapter:nth-of-type(n) .chapter-picture { border-radius: var(--radius); aspect-ratio: 1.6; margin: 0; }
.chapter-copy { padding: 16px 0 0; }
.chapter-copy h3 { font-size: 25px; }
.chapter-copy > p:not(.eyebrow) { font-size: 14px; }
.companions { border-top: 1px solid var(--line); }
.cat-lineup { gap: 24px; }
.cat-lineup .cat-stage { border-radius: 48% 48% 16px 16px; }
.bestiary-section { background: #edf0e7; border-block: 1px solid var(--line); }
.final-cta { margin-top: 48px; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: #eee8da; }
.final-cta .play-status { font-size: 13px; }
footer { padding-block: 36px; }
footer p, footer .text-link { font-size: 12px; }
@media (max-width: 1000px) {
  .site-header { flex-wrap: wrap; height: auto; padding-block: 20px; gap: 16px; }
  .site-header nav { order: 3; width: 100%; justify-content: space-between; }
  .hero { gap: 20px; min-height: 540px; }
  .hero h1 { font-size: clamp(46px, 6.4vw, 68px); }
  .hero-art { height: 390px; }
  .project-overview { gap: 32px; grid-template-columns: 1fr 1.3fr; }
  .project-meta { grid-template-columns: 1fr; gap: 12px; }
  .project-meta div { display: flex; gap: 16px; }
  .project-meta dt { min-width: 66px; margin: 0; }
  .system-details { grid-template-columns: 1fr; }
  .type-study { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
  .font-specimen { margin-top: 0; }
}
@media (max-width: 700px) {
  .wrap, #interaction-design .wrap, #interaction-design #final-result > .wrap { width: calc(100% - 40px); }
  .site-header .brand { font-size: 25px; }
  .site-header .small { font-size: 11px; padding: 11px 14px; }
  .site-header nav { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; }
  .hero { grid-template-columns: 1fr; padding-block: 40px 24px; gap: 12px; }
  .hero h1 { font-size: clamp(43px, 9.4vw, 66px); letter-spacing: -.035em; }
  .hero-description { font-size: 16px; max-width: 470px; }
  .hero-art { height: clamp(280px, 83vw, 450px); width: min(100%, 450px); margin-inline: auto; }
  .hero-cat { width: 100%; height: auto; }
  .hero .platform-note { font-size: 11px; }
  .project-overview { grid-template-columns: 1fr; gap: 24px; padding-block: 32px; }
  .project-overview h2 br { display: inline; }
  .project-overview h2 br::after { content: ' '; }
  .overview-detail > p { font-size: 15px; }
  .section-heading { display: flex; flex-direction: column; align-items: start; gap: 16px; margin-bottom: 28px; }
  .section-heading > p { margin: 0; max-width: 460px; font-size: 15px; }
  .ui-gallery { grid-template-columns: 1fr; gap: 30px; }
  #interface-design .ui-hud-feature figcaption { display: flex; }
  .ui-shot h3 { font-size: 25px; }
  .design-system { padding: 22px; margin-top: 40px; }
  .system-heading { flex-direction: column; align-items: start; gap: 14px; }
  .system-heading h3 { font-size: 29px; }
  .color-tokens { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
  .color-token > span { height: 68px; }
  .color-token strong { font-size: 12px; }
  .color-token code { font-size: 11px; }
  .type-study { gap: 20px; }
  .type-study h3 { width: 100%; }
  .font-specimen > span { font-size: 38px; width: 44px; }
  .state-samples { gap: 10px; }
  .sample-action { padding: 12px 8px; font-size: 17px; }
  .state-samples figcaption { font-size: 11px; }
  .ux-specs { display: grid; grid-template-columns: 1fr; gap: 26px; }
  .ux-specs article + article { margin-top: 0; }
  #interface-design .icon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; }
  #interaction-design .chapter { padding-block: 40px; }
  #interaction-design .chapter-heading { gap: 14px; }
  #interaction-design .accurate-wire-card { padding: 16px; }
  #interaction-design .accurate-wire-pair { grid-template-columns: 1fr; gap: 24px; }
  #final-result .screen-comparison-grid { grid-template-columns: 1fr; }
  #final-result .screen-device-stage { height: auto; min-height: 200px; padding-block: 12px; }
  #final-result .screen-card { padding: 20px; }
  #final-result .screen-comparison-intro { align-items: start; flex-direction: column; gap: 8px; }
  #final-result .screen-device { width: min(100%, calc(370px * var(--device-ratio))); }
  .gameplay-section .section-heading { align-items: start; }
  .gameplay-grid, .world-journey { grid-template-columns: 1fr; gap: 28px; }
  .gameplay-card, .gameplay-card:nth-child(n), .world-chapter:nth-child(n) { grid-column: auto; }
  .cat-lineup { gap: 10px; }
  .cat-lineup .cat-stage > img { width: 100%; height: auto; }
  .cat-lineup .cat-label h3 { font-size: 20px; }
  .final-cta { padding: 28px; display: flex; flex-direction: column; align-items: start; gap: 18px; }
  footer { flex-wrap: wrap; gap: 18px; }
  footer p { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Unavailable game links stay out of the action and keyboard flows. */
body.pf-system.pf-unified[data-portfolio="pawsitive"] a.button[data-play][hidden] { display: none !important; }
/* Design system: the last spec row ends at the panel edge without its own closing rule. */
#design-system .ux-specs { border-bottom: 0 !important; padding-bottom: 8px !important; }
