/* Photo movement uses the same paper, cobalt and lime as the rest of the site. */
.header-actions { flex-wrap: wrap; }
.motion-toggle { border: 0; background: transparent; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; padding: 5px; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.motion-toggle > span:first-child { font-size: 1.25rem; color: var(--blue); }
.motion-toggle[aria-pressed="false"] > span:first-child { animation: small-turn 14s linear infinite; }
.hero-scene { min-width: 0; padding: 20px 18px 0 8px; }
.hero-deck { position: relative; perspective: 1100px; isolation: isolate; }
.hero-photo { z-index: 3; transform: rotate(2deg); box-shadow: 0 16px 34px #1c2d5c18, 5px 6px 0 #e7eaf4; transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s; }
.hero-photo-flip { display: block; position: relative; width: 100%; padding: 0; border: 0; background: #e7eaf4; overflow: hidden; touch-action: pan-y; cursor: pointer; }
.hero-photo-flip img { transition: filter .3s; }
.hero-photo-flip:focus-visible { outline-offset: 4px; }
.hero-photo-flip:hover img { filter: saturate(1.08); }
.photo-flip-cue { position: absolute; bottom: 14px; left: 15px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #f6f8fdeb; color: var(--blue); font-size: 1.5rem; box-shadow: 0 2px 15px #20232c22; transition: transform .35s, background .35s; }
.hero-photo-flip:hover .photo-flip-cue { transform: rotate(65deg); background: var(--lime); }
.hero-photo figcaption { min-height: 72px; }
.hero-photo figcaption > span:last-child { text-transform: none; font-family: var(--sans); padding-top: 5px; }
.deck-back { position: absolute; inset: 9px 0 0; background: white; border: 1px solid var(--line); padding: 13px 13px 80px; box-shadow: 0 8px 26px #20232c12; pointer-events: none; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.deck-back img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.7); }
.deck-back-far { z-index: 1; transform: translate(-12px,-5px) rotate(-9deg); }
.deck-back-near { z-index: 2; transform: translate(8px,-6px) rotate(7deg); }
.motion-enabled .hero-deck:hover .deck-back-far { transform: translate(-24px,-12px) rotate(-13deg); }
.motion-enabled .hero-deck:hover .deck-back-near { transform: translate(20px,-7px) rotate(11deg); }
.motion-enabled .hero-deck:hover .hero-photo { box-shadow: 0 20px 42px #1c2d5c26; }
.photo-note { z-index: 4; border: 0; bottom: 90px; right: -23px; padding: 17px 19px 12px; min-width: 144px; text-align: left; transform: rotate(-9deg); border-radius: 2px; box-shadow: 3px 6px 0 #20232c14; transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s; }
.photo-note::after { content: ''; position: absolute; right: 0; top: 0; border-top: 15px solid #f8fcc6; border-left: 15px solid #d6df5b; }
.photo-note:hover, .photo-note:focus-visible { transform: translateY(-7px) rotate(-3deg) scale(1.04); box-shadow: 4px 10px 0 #20232c18; }
.note-copy { display: block; }
.note-action { display: block; font: .65rem/1.5 var(--mono); margin-top: 9px; letter-spacing: -.2px; }
.note-spark { position: absolute; right: 16px; top: 16px; color: var(--blue); font: 1.4rem var(--sans); transform: rotate(10deg); transition: transform .6s; }
.photo-note:hover .note-spark { transform: rotate(150deg); }
.hero-scribble { position: absolute; width: 137px; height: 75px; z-index: 4; bottom: 181px; right: -28px; overflow: visible; pointer-events: none; transform: rotate(12deg); }
.hero-scribble path { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300; stroke-dashoffset: 0; }
.motion-enabled .hero-scribble path { animation: ink-arrives 1.2s .45s both; }
.motion-enabled .photo-note { animation: note-arrives .8s .45s backwards; }
.motion-enabled .hero-copy > * { animation: copy-arrives .75s both; }
.motion-enabled .hero-copy > :nth-child(2) { animation-delay: .08s; }
.motion-enabled .hero-copy > :nth-child(3) { animation-delay: .16s; }
.motion-enabled .hero-copy > :nth-child(4) { animation-delay: .24s; }
.motion-enabled .hero-copy > :nth-child(5) { animation-delay: .32s; }
.motion-enabled .hero-scene { animation: deck-arrives .9s .12s both; }
.hero-deck-controls { display: flex; justify-content: center; align-items: center; gap: 17px; margin-top: 29px; }
.round-control { display: inline-grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; min-height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.15rem; transition: background .25s, color .25s, transform .25s; }
.round-control:hover { background: var(--blue); color: white; border-color: var(--blue); transform: scale(1.08); }
.hero-photo-dots { display: flex; gap: 3px; }
.hero-photo-dots button { width: 26px; height: 36px; display: grid; place-items: center; border: 0; padding: 0; background: transparent; }
.hero-photo-dots button::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .25s, transform .3s; }
.hero-photo-dots button[aria-pressed="true"]::after { background: var(--blue); transform: scale(1.45); }
.interests-strip { position: relative; overflow: hidden; display: block; padding: 18px 0; }
.interests-track { display: flex; width: max-content; animation: film-roll 30s linear infinite; }
.interests-group { display: flex; align-items: center; justify-content: space-around; gap: 28px; min-width: max(100vw,850px); padding: 0 65px 0 28px; flex-shrink: 0; }
.interests-group > span { white-space: nowrap; }
.interests-group > span:nth-child(even) { color: var(--blue); font: 1.4rem var(--sans); }
.interests-strip:hover .interests-track, .interests-strip:focus-within .interests-track { animation-play-state: paused; }
.strip-pause { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); border: 1px solid var(--line); background: var(--paper); color: var(--blue); border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; font-size: .9rem; }
.motion-enabled [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .65s, transform .75s cubic-bezier(.22,1,.36,1); transition-delay: var(--reveal-delay,0ms); }
.motion-enabled [data-reveal].is-visible { opacity: 1; transform: none; }
.motion-enabled .project-card:hover { transform: translateY(-6px) perspective(1000px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); box-shadow: 0 18px 35px #1c2d5c12; }
.project-card { transition: transform .35s, box-shadow .35s; }
.project-card .creator-cover,.project-card .sunshine-cover,.project-card .math-cover,.project-card .tedx-cover,.project-card .pioneer-cover,.project-card .playground-cover { transition: filter .35s; }
.project-card:hover .card-meta { color: var(--blue); }
.project-card:hover .giant-number { transform: translateX(6px); }
.giant-number { transition: transform .4s cubic-bezier(.22,1,.36,1); }
.album-section { background: var(--blue); color: white; padding: 74px 64px 36px; overflow: hidden; }
.album-inner { max-width: 1232px; margin: auto; }
.album-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 36px; }
.album-heading h2 { font-size: clamp(2.8rem,4.5vw,4.6rem); }
.album-heading h2 em { color: var(--lime); }
.album-heading .eyebrow { color: #ffffffa6; }
.album-intro { max-width: 300px; }
.album-intro p { color: #ffffffe0; margin: 0 0 17px; }
.album-open-button { background: var(--lime); color: var(--ink); display: inline-flex; gap: 30px; }
.album-open-button:hover { background: white; }
.album-rail { display: flex; overflow-x: auto; overflow-y: hidden; gap: 25px; padding: 25px 15px 32px; margin: 0 -15px; scrollbar-width: thin; scrollbar-color: #ffffff66 transparent; scroll-snap-type: x proximity; overscroll-behavior-x: contain; cursor: grab; touch-action: pan-x pan-y; }
.album-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.album-print { position: relative; display: flex; flex-direction: column; width: 242px; flex: 0 0 242px; padding: 11px 11px 15px; background: var(--paper); color: var(--ink); text-decoration: none; transform: rotate(var(--print-angle)); transition: transform .4s, box-shadow .4s; scroll-snap-align: center; user-select: none; -webkit-user-drag: none; }
.album-print:hover, .album-print:focus-visible { transform: translateY(-10px) rotate(0deg); box-shadow: 0 12px 25px #07176d55; }
.album-print img { width: 100%; height: 260px; object-fit: cover; object-position: center 35%; display: block; pointer-events: none; }
.album-print[data-album-photo="novel"] img { object-fit: contain; background: #e7eaf4; }
.album-print-number { position: absolute; top: -11px; right: 13px; z-index: 1; background: var(--lime); color: var(--ink); padding: 4px 10px; font: .65rem var(--mono); }
.album-print-caption { font: 1.35rem/1.15 var(--serif); padding: 14px 3px 0; min-height: 54px; }
.album-rail-footer { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-top: 8px; }
.album-rail-footer > span { color: #ffffffb8; font-size: .8rem; }
.album-rail-footer > div { display: flex; gap: 8px; }
.album-section .round-control { color: white; border-color: #ffffff55; }
.album-section .round-control:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
#album-dialog { background: #f1f3fc; width: min(1180px,calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 40px); border: 0; border-radius: 9px; padding: 0; color: var(--ink); }
#album-dialog::backdrop { background: #0e173de0; backdrop-filter: blur(12px); }
.album-topbar { position: sticky; top: 0; z-index: 8; background: #f1f3fc; border-bottom: 1px solid var(--line); padding: 13px 30px; display: flex; align-items: center; justify-content: space-between; }
.album-wordmark { font: .75rem var(--mono); letter-spacing: 1px; color: var(--blue); }
.album-close { background: transparent; border: 0; color: var(--ink); min-height: 44px; padding: 0 0 0 12px; display: flex; align-items: center; gap: 20px; }
.album-close > span { font-size: 1.8rem; }
.album-overview { padding: 33px 34px 44px; }
.album-dialog-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.album-dialog-heading h2 { font-size: clamp(2.7rem,5vw,4.5rem); }
.album-dialog-heading .eyebrow { margin-bottom: 12px; color: var(--blue); }
.album-photo-count { font: .75rem var(--mono); color: var(--muted); white-space: nowrap; margin-bottom: 8px; }
.album-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 30px; }
.album-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.album-filters button { border: 1px solid var(--line); border-radius: 30px; background: transparent; color: var(--muted); padding: 9px 16px; min-height: 44px; font-size: .85rem; }
.album-filters button[aria-pressed="true"] { background: var(--blue); color: white; border-color: var(--blue); }
.album-shuffle { border: 0; background: transparent; color: var(--blue); font-size: .85rem; padding: 9px 0; min-height: 44px; }
.album-shuffle span { font-size: 1.3rem; display: inline-block; transition: transform .5s; }
.album-shuffle:hover span { transform: rotate(180deg); }
.album-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 29px 24px; padding: 9px 3px 0; }
.album-tile { border: 1px solid var(--line); padding: 9px 9px 13px; background: white; min-width: 0; text-align: left; transform: rotate(var(--tile-angle,0deg)); box-shadow: 0 5px 8px #0f1d4210; transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s; }
.album-tile:hover, .album-tile:focus-visible { z-index: 1; transform: translateY(-8px) rotate(0deg) scale(1.035); box-shadow: 0 14px 25px #0f1d4226; }
.album-tile img { display: block; width: 100%; height: 190px; object-fit: cover; object-position: center 35%; background: #e7eaf4; }
.album-tile[data-photo-group="work"] img { object-fit: contain; }
.album-tile > span { display: block; padding: 12px 4px 0; font: 1.23rem/1.17 var(--serif); }
.album-viewer { padding: 23px 29px 25px; }
.album-back { padding: 0; min-height: 44px; border: 0; background: transparent; color: var(--blue); font-size: .85rem; display: inline-flex; gap: 12px; align-items: center; margin-bottom: 15px; }
.album-viewer-layout { display: grid; grid-template-columns: minmax(0,1fr) 245px; align-items: center; gap: 27px; }
.album-image-stage { position: relative; min-width: 0; display: grid; place-items: center; height: min(57dvh,550px); background: #101a3b; border-radius: 4px; overflow: hidden; touch-action: pan-y; }
.album-image-stage img { display: block; max-width: 100%; width: 100%; height: 100%; object-fit: contain; }
.album-image-stage.is-loading img { opacity: .3; }
.album-image-stage.is-loading::after { content: ''; width: 27px; height: 27px; position: absolute; border: 2px solid #ffffff55; border-top-color: var(--lime); border-radius: 50%; animation: small-turn 1s linear infinite; }
.album-image-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 1px solid #ffffff55; border-radius: 50%; background: #121d4199; color: white; font-size: 1.25rem; }
.album-image-nav:hover { background: var(--blue); }
.album-image-prev { left: 12px; }
.album-image-next { right: 12px; }
.album-image-number { font: .7rem var(--mono); color: var(--muted); }
.album-image-details .eyebrow { margin: 17px 0 8px; color: var(--blue); font-size: .65rem; }
.album-image-details h3 { font: 2.25rem/1.1 var(--serif); margin: 0 0 13px; }
.album-image-details > p:not(.eyebrow) { font-size: .85rem; color: var(--muted); margin: 0 0 22px; }
.album-story-link { display: block; border: 0; background: var(--blue); color: white; border-radius: 4px; padding: 10px 14px; min-height: 44px; text-align: left; margin-bottom: 13px; font-size: .8rem; }
.album-original { display: inline-block; color: var(--blue); font-size: .8rem; text-underline-offset: 4px; }
.album-keyboard-hint { display: block; font-size: .7rem; color: var(--muted); margin-top: 24px; }
.album-filmstrip { display: flex; gap: 9px; overflow-x: auto; scrollbar-width: thin; padding: 17px 3px 6px; margin-top: 6px; }
.album-filmstrip button { flex: 0 0 68px; padding: 3px; width: 68px; height: 64px; border: 2px solid transparent; background: transparent; border-radius: 3px; }
.album-filmstrip button[aria-pressed="true"] { border-color: var(--blue); }
.album-filmstrip img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 1px; }
.motion-paused [data-reveal] { opacity: 1; transform: none; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@keyframes film-roll { to { transform: translateX(-50%); } }
@keyframes small-turn { to { transform: rotate(360deg); } }
@keyframes ink-arrives { from { stroke-dashoffset: 300; } to { stroke-dashoffset: 0; } }
@keyframes note-arrives { from { opacity: 0; transform: translate(15px,28px) rotate(12deg) scale(.75); } 70% { opacity: 1; transform: translate(-2px,-7px) rotate(-12deg) scale(1.04); } to { opacity: 1; transform: rotate(-9deg); } }
@keyframes copy-arrives { from { opacity: 0; transform: translateY(19px); } to { opacity: 1; transform: none; } }
@keyframes deck-arrives { from { opacity: 0; transform: translateY(24px) rotate(-4deg) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) { .hero { gap: 37px; } .hero-scene { padding-right: 15px; } .photo-note { right: -21px; } .album-section { padding: 64px 35px 33px; } .album-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .album-image-details h3 { font-size: 1.9rem; } .album-viewer-layout { grid-template-columns: minmax(0,1fr) 210px; gap: 20px; } }
@media (max-width: 760px) { .header-actions { gap: 10px; } .motion-toggle { font-size: .7rem; } .hero-scene { width: min(440px,100%); margin: auto; padding: 16px 18px 0; } .hero-photo { width: 100%; margin: 0; } .photo-note { right: -12px; bottom: 98px; min-width: 135px; } .hero-scribble { width: 106px; right: -14px; bottom: 190px; } .hero-photo figcaption { min-height: 77px; } .hero-deck-controls { margin-top: 23px; } .album-section { padding: 53px 24px 28px; } .album-heading { flex-direction: column; align-items: start; gap: 22px; margin-bottom: 20px; } .album-intro { max-width: 400px; } .album-print { width: 211px; flex-basis: 211px; } .album-print img { height: 231px; } .album-print-caption { font-size: 1.22rem; } .album-rail { gap: 20px; } .album-rail-footer > span { font-size: .72rem; max-width: 200px; } #album-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 7px; } .album-topbar { padding: 9px 19px; } .album-overview { padding: 25px 20px 30px; } .album-dialog-heading { align-items: start; flex-direction: column; gap: 13px; margin-bottom: 20px; } .album-photo-count { margin: 0; } .album-dialog-heading h2 { font-size: 3rem; } .album-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px 16px; } .album-tile { padding: 6px 6px 11px; } .album-tile img { height: 155px; } .album-tile > span { font-size: 1.04rem; padding: 10px 3px 0; } .album-filters button { padding: 8px 11px; font-size: .75rem; } .album-toolbar { gap: 10px; margin-bottom: 22px; } .album-viewer { padding: 17px 16px 19px; } .album-viewer-layout { grid-template-columns: 1fr; gap: 22px; } .album-image-stage { height: min(54dvh,440px); } .album-image-details { padding: 0 2px; } .album-image-details h3 { font-size: 2rem; } .album-image-details .eyebrow { margin-top: 10px; } .album-image-details > p:not(.eyebrow) { margin-bottom: 16px; } .album-keyboard-hint { margin-top: 15px; } .album-filmstrip { margin-top: 12px; } }
@media (hover: none) { .photo-flip-cue { background: var(--lime); } .album-keyboard-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; } }
@media print { .hero-deck-controls,.photo-note,.deck-back,.hero-scribble,.motion-toggle,.strip-pause,.album-section,#album-dialog { display: none; } .interests-group[aria-hidden] { display: none; } .interests-track { transform: none; } }

.album-header-actions { display: flex; align-items: center; gap: 20px; }
.hero-actions .button { gap: 17px; }

.album-image-error { color: white; text-align: center; padding: 20px 55px; position: absolute; max-width: 360px; font-size: .9rem; }
.album-image-stage.is-error img { visibility: hidden; }
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr 44px auto; gap: 14px 10px; padding: 20px 22px; }
  .site-header .motion-toggle { grid-column: 2; grid-row: 1; justify-content: center; }
  .motion-toggle-label { display: none; }
  .site-header .language-toggle { grid-column: 3; grid-row: 1; }
  .site-header nav { grid-column: 1 / -1; gap: 10px 16px; font-size: .78rem; }
}
