.project-notes { background: var(--surface-0); color: var(--text-0); overflow-x: clip; }
.project-notes .navbar { background: color-mix(in srgb, var(--surface-0) 94%, transparent); border-bottom-color: var(--border); }
.project-notes .work-hero { min-height: auto; padding-block: clamp(64px, 9vw, 112px); border-color: var(--border); }
.project-notes .work-hero h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: 1.02; letter-spacing: -.045em; }
.project-notes .work-lede { color: var(--text-1); font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.65; }
.project-notes .work-kicker, .project-notes .work-meta-label, .notes-caption { color: var(--text-2); }
.project-notes .work-hero-frame { border-color: var(--border-strong); box-shadow: 0 24px 72px rgba(0,0,0,.14); }
.project-notes .work-hero-frame img { object-position: top center; }
.notes-caption { margin-top: 12px; font-size: .875rem; line-height: 1.6; }
.notes-layout { display: grid; grid-template-columns: minmax(0,.58fr) minmax(0,1.42fr); gap: clamp(32px,6vw,80px); padding-block: clamp(48px,8vw,88px); scroll-margin-top: calc(var(--navbar-height) + 24px); }
.notes-contents { align-self: start; position: sticky; top: calc(var(--navbar-height) + 24px); padding: 26px 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-1); }
.notes-contents h2 { margin-bottom: 22px; font: 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.notes-contents ol { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.notes-contents a { display: grid; grid-template-columns: minmax(0,1fr) 12px; align-items: center; gap: 10px; padding: 13px 8px; border-radius: 5px; color: var(--text-1); font-size: 13px; line-height: 1.5; text-decoration: none; transition: background .2s ease, color .2s ease; }
.notes-index { font: 10px var(--font-mono); color: var(--text-2); }
.notes-nav-arrow { color: var(--accent-secondary); transition: transform .2s ease; }
.notes-contents a:hover, .notes-contents a:focus-visible { color: var(--text-0); background: color-mix(in srgb,var(--accent-secondary) 10%,transparent); }
.notes-contents a:hover .notes-nav-arrow { transform: translate(2px,-2px); }
.notes-contents a:focus-visible, .project-notes .work-actions a:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 4px; }
.notes-contents-foot { color: var(--text-2); font-size: 12px; line-height: 1.7; border-top: 1px solid var(--border); margin: 24px 0 0; padding-top: 20px; }
.notes-body { min-width: 0; }
.notes-body section, .notes-case-study .work-section { scroll-margin-top: calc(var(--navbar-height) + 32px); border-color: var(--border); }
.notes-body section { padding-bottom: 42px; margin-bottom: 42px; border-bottom: 1px solid var(--border); }
.notes-body h2 { margin-bottom: 20px; font-size: clamp(1.6rem,3vw,2.2rem); line-height: 1.2; letter-spacing: -.035em; }
.notes-body p { color: var(--text-1); font-size: 1.025rem; line-height: 1.85; margin-bottom: 18px; }
.notes-body p:last-child { margin-bottom: 0; }
.project-notes p.notes-chapter { display: flex; align-items: center; gap: 12px; color: var(--text-2); font: 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px; }
.notes-chapter > span { display: grid; place-items: center; width: 28px; height: 28px; color: var(--accent-secondary); background: color-mix(in srgb,var(--accent-secondary) 10%,var(--surface-0)); border: 1px solid color-mix(in srgb,var(--accent-secondary) 28%,transparent); }
.notes-status { color: var(--accent-secondary); font-size: .875rem; display: inline-flex; gap: 8px; align-items: center; margin-bottom: 18px; }
.project-notes .work-actions .btn { border-radius: 8px; }
.notes-check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 26px 0; }
.notes-check-panel { position: relative; padding: 24px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-1); margin-block: 26px; }
.notes-check-grid .notes-check-panel { margin: 0; }
.notes-check-panel h3 { color: var(--text-0); font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
.notes-check-panel p, .notes-body .notes-check-panel p { color: var(--text-2); font-size: 13px; line-height: 1.75; }
.notes-check-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 18px; color: var(--accent-primary); background: color-mix(in srgb,var(--accent-primary) 10%,transparent); }
.notes-flow { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; list-style: none; padding: 0; margin: 24px 0 0; }
.notes-flow li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; color: var(--text-1); font-size: 11px; line-height: 1.65; }
.notes-flow li:not(:last-child)::after { content: ''; position: absolute; top: 16px; left: 42px; right: 0; height: 1px; background: var(--border-strong); }
.notes-flow-icon { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; color: var(--accent-primary); background: var(--surface-2); border: 1px solid var(--border-strong); font-size: 12px; }
.notes-check-panel .notes-panel-caption { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12px; }
.notes-case-contents { padding-top: 32px; }
.notes-case-contents .notes-contents { position: relative; top: auto; }
.notes-case-contents .notes-contents ol { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.notes-case-contents .notes-contents h2 { margin-bottom: 12px; }
.notes-case-study .work-meta-grid, .notes-case-study .work-meta-item { border-color: var(--border); }
.notes-case-study .work-meta-item { padding-left: 20px; }
.notes-case-study .work-meta-value { color: var(--text-0); }
.notes-case-study .work-section-title { font-size: clamp(2rem,4vw,3.5rem); line-height: 1.1; letter-spacing: -.035em; }
.notes-case-study .work-section-copy { color: var(--text-1); line-height: 1.8; }
.notes-case-study .work-feature-grid { gap: 16px; border: 0; }
.notes-case-study .work-feature-card { min-height: 220px; background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px; }
.notes-case-study .work-feature-card .work-figure-label { position: static; display: block; margin-bottom: 20px; color: var(--accent-secondary); }
.notes-case-study .work-feature-card p { color: var(--text-1); font-size: 14px; }
.notes-visitor-route { margin: 0 0 28px; }
.notes-visitor-route .notes-flow { grid-template-columns: repeat(3,minmax(0,1fr)); }
.notes-case-study .work-gallery-grid { background: var(--surface-1); border-color: var(--border); }
.notes-case-study .work-panel, .notes-case-study .work-gallery-card { border-color: var(--border); }
.notes-case-study .work-cta-panel { background: var(--surface-1); border-color: var(--border); }
.notes-case-study .work-cta-panel p { color: var(--text-1); }
@media (max-width: 900px) {
  .notes-layout { grid-template-columns: 1fr; gap: 36px; }
  .notes-contents { position: relative; top: auto; }
  .notes-contents ol { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .notes-contents-foot { display: none; }
  .notes-case-study .work-meta-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .notes-case-study .work-meta-item { border-bottom: 1px solid var(--border); }
}
@media (max-width: 768px) {
  .notes-case-study .nav-menu { background: var(--surface-1); border-color: var(--border); overflow-y: auto; }
  .notes-case-study .nav-menu:not(.active) { opacity: 0; visibility: hidden; transition: none; }
}
@media (max-width: 520px) {
  .notes-contents { padding: 22px 16px; }
  .notes-contents ol, .notes-case-contents .notes-contents ol, .notes-check-grid { grid-template-columns: 1fr; gap: 4px; }
  .notes-check-grid { gap: 12px; }
  .notes-check-panel { padding: 20px; }
  .notes-flow, .notes-visitor-route .notes-flow { grid-template-columns: 1fr; gap: 18px; }
  .notes-flow li { flex-direction: row; align-items: center; font-size: 12px; }
  .notes-flow li:not(:last-child)::after { top: 36px; left: 16px; right: auto; height: 12px; width: 1px; }
  .notes-body p { font-size: .975rem; }
  .project-notes .nav-brand .brand-text { display: none; }
  .project-notes .navbar .nav-link { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .notes-contents a, .notes-nav-arrow { transition: none; }
  .notes-contents a:hover .notes-nav-arrow { transform: none; }
}

.project-notes .digital-card { --tile-ink: color-mix(in srgb, var(--card-accent) 12%, transparent); }
.project-notes .digital-card .notes-nav-arrow, .project-notes .digital-card .notes-check-icon { color: var(--card-accent); }
.project-notes .digital-card a:hover, .project-notes .digital-card a:focus-visible { background: color-mix(in srgb,var(--card-accent) 10%,transparent); }
.project-notes .work-hero h1, .project-notes .work-section-title { color: var(--text-0); }
/* The return action stays secondary to visiting the live project. */
.notes-return { display: inline-flex; align-items: center; gap: 10px; margin: 24px 0 56px; padding: 12px 16px; min-height: 44px; border: 1px solid var(--border); border-radius: 7px; background: transparent; color: var(--text-1); font-size: 13px; text-decoration: none; transition: background .2s ease, color .2s ease; }
.notes-return:hover { color: var(--text-0); background: var(--surface-1); }
.notes-return:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 4px; }
.project-notes .digital-card:is(:hover, :focus-within) { box-shadow: none; }
.project-notes .digital-card::before { display: none; }
.project-notes .digital-card::after { opacity: .25; }
.project-notes .digital-card:not(:hover):not(:focus-within)::after { opacity: 0; }

.project-notes .work-cta-panel { background: var(--surface-1); border-color: var(--border); }
.project-notes .work-cta-panel h2 { color: var(--text-0); }
.project-notes .work-cta-panel p { color: var(--text-1); }
