/* ============================================================
   Minimal portfolio — Helvetica Neue, two pages (index / about)
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Text selection ---------- */

::selection {
    background: #ff4d8d;
    color: #ffffff;
}

::-moz-selection {
    background: #ff4d8d;
    color: #ffffff;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #ffffff;
    color: #111111;
    font-size: 15px;
    line-height: 1.55;
}

/* ---------- Custom sparkle cursor ---------- */

html {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 C13 8 16 11 23 12 C16 13 13 16 12 23 C11 16 8 13 1 12 C8 11 11 8 12 1 Z' fill='%2300a79d' stroke='%23ffffff' stroke-width='0.6'/%3E%3C/svg%3E") 12 12, auto;
}

a,
button,
[role="tab"],
.rainbow span,
label {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 C13 8 16 11 23 12 C16 13 13 16 12 23 C11 16 8 13 1 12 C8 11 11 8 12 1 Z' fill='%23ff4d8d' stroke='%23ffffff' stroke-width='0.6'/%3E%3C/svg%3E") 13 13, pointer;
}

.page {
    max-width: 560px;
    margin: 0 auto;
    padding: 72px 24px 120px;
}

/* ---------- Header ---------- */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.site-header h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.site-header h1 a {
    color: inherit;
    text-decoration: none;
}

.site-header .role {
    font-size: 17px;
    font-weight: 400;
    margin-top: 6px;
}

.site-header .email {
    font-size: 13px;
    margin-top: 8px;
    color: #111111;
}

.site-header .email a {
    color: inherit;
    text-decoration: none;
}

.header-icons {
    display: flex;
    gap: 10px;
    padding-top: 6px;
    flex-shrink: 0;
}

.header-icons a {
    color: #111111;
    display: inline-flex;
}

.header-icons svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ---------- Camera hero ---------- */

.camera-figure {
    position: relative;
    margin: 44px 0 48px;
    max-width: 400px;
}

.camera-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.about-pill {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border: 2px solid #ff4d8d;
    border-radius: 999px;
    padding: 5px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #00a79d;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease;
}

.about-pill:hover {
    transform: translate(-50%, -50%) scale(1.06);
}

/* ---------- Working camera ---------- */

.camera-body {
    position: relative;
    z-index: 0;
}

/* live photo layer aligned to the LCD in the camera image */
.lcd {
    position: absolute;
    left: 12.41%;
    top: 13.77%;
    width: 56.14%;
    height: 71.19%;
    overflow: hidden;
    border-radius: 3px;
    z-index: 1;
}

.lcd-inner {
    position: absolute;
    inset: 0;
    transform: scale(var(--zoom, 1));
    transition: transform 0.3s ease, opacity 0.18s ease;
}

.lcd-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lcd-osd {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.lcd-osd.show {
    opacity: 1;
}

.about-pill {
    z-index: 3;
}

.cam-hotspot {
    position: absolute;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    border-radius: 8px;
}

.cam-hotspot:hover,
.cam-hotspot:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 77, 141, 0.55);
    outline: none;
}

.hs-w      { left: 77.3%; top: 11.3%; width: 6.8%;  height: 7.6%; }
.hs-t      { left: 84.1%; top: 11.3%; width: 6.8%;  height: 7.6%; }
.hs-shutter { left: 80.5%; top: 59%;  width: 8.4%;  height: 13%; border-radius: 999px; }
.hs-menu   { left: 71%;   top: 82%;   width: 14%;   height: 14%; }

.cam-flash {
    position: absolute;
    inset: 0;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    z-index: 4;
    border-radius: 12px;
}

.cam-flash.fire {
    animation: cam-flash-fire 0.45s ease-out;
}

@keyframes cam-flash-fire {
    0%   { opacity: 0; }
    15%  { opacity: 0.95; }
    100% { opacity: 0; }
}

/* polaroids that drop out of the camera */
.film-tray {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    max-width: 400px;
}

.film-tray:not(:empty) {
    margin: -28px 0 36px;
}

.polaroid {
    background: #ffffff;
    padding: 6px 6px 18px;
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.35);
    border: 1px solid #eeeeee;
    cursor: pointer;
    transform: rotate(var(--tilt, 0deg));
    animation: polaroid-drop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.polaroid .print {
    width: 88px;
    height: 64px;
    overflow: hidden;
    display: block;
}

.polaroid .print img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(var(--zoom, 1));
}

.polaroid.popped {
    animation: polaroid-pop 0.25s ease-in forwards;
}

@keyframes polaroid-drop {
    0%   { transform: translateY(-46px) rotate(0deg); opacity: 0; }
    100% { transform: translateY(0) rotate(var(--tilt, 0deg)); opacity: 1; }
}

@keyframes polaroid-pop {
    100% { transform: scale(0) rotate(20deg); opacity: 0; }
}

.camera-hint {
    font-size: 12px;
    color: #b3b3b3;
    margin: -28px 0 40px;
}

.camera-hint span {
    font-weight: 700;
}

/* draggable rainbow letters */
.rainbow span {
    display: inline-block;
    cursor: grab;
    touch-action: none;
    user-select: none;
    will-change: transform;
    transition: transform 0.7s cubic-bezier(0.2, 2.4, 0.35, 1);
}

.rainbow span.dragging {
    cursor: grabbing;
    transition: none;
    z-index: 5;
    position: relative;
}

/* ---------- Bio ---------- */

.bio p {
    margin-bottom: 18px;
}

.bio a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding-bottom: 3px;
    background-repeat: repeat-x;
    background-size: 20px 8px;
    background-position: 0 100%;
    transition: color 0.2s, border-color 0.15s;
}

.bio a:hover {
    color: #ff4d8d;
    border-bottom-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='8'%3E%3Cpath d='M0 4 C5 1 15 7 20 4' stroke='%23ff4d8d' stroke-width='1.5' fill='none'/%3E%3C%2Fsvg%3E");
    animation: wave-slide 0.45s linear infinite;
}

@keyframes wave-slide {
    from { background-position: 0 100%; }
    to { background-position: 20px 100%; }
}

/* rainbow letters for "creativity" */
.rainbow span:nth-child(1)  { color: #ff3b30; }
.rainbow span:nth-child(2)  { color: #ff7a00; }
.rainbow span:nth-child(3)  { color: #e6a700; }
.rainbow span:nth-child(4)  { color: #34c759; }
.rainbow span:nth-child(5)  { color: #00b8a9; }
.rainbow span:nth-child(6)  { color: #007aff; }
.rainbow span:nth-child(7)  { color: #5856d6; }
.rainbow span:nth-child(8)  { color: #af52de; }
.rainbow span:nth-child(9)  { color: #ff2d75; }
.rainbow span:nth-child(10) { color: #ff5e8a; }

/* ---------- Sections ---------- */

.section {
    margin-top: 72px;
}

.section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.section .placeholder {
    color: #999999;
    font-size: 14px;
}

/* ---------- Publications ---------- */

.pub-list {
    list-style: none;
}

.pub-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid #e5e5e5;
}

.pub-item:first-child {
    border-top: none;
    padding-top: 0;
}

.pub-year {
    flex-shrink: 0;
    width: 44px;
    font-size: 14px;
    color: #999999;
    padding-top: 2px;
}

.pub-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.pub-authors {
    font-size: 14px;
    margin-bottom: 4px;
}

.pub-venue {
    font-size: 13px;
    font-style: italic;
    color: #666666;
    margin-bottom: 10px;
}

.pub-abstract {
    font-size: 13px;
    color: #666666;
    margin-bottom: 10px;
}

.pub-links {
    font-size: 13px;
    display: flex;
    gap: 14px;
}

.pub-links a {
    color: #111111;
}

/* ---------- Updates ---------- */

.update-list {
    list-style: none;
    font-size: 14px;
}

.update-list li {
    display: flex;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid #e5e5e5;
}

.update-list li:first-child {
    border-top: none;
    padding-top: 0;
}

.update-date {
    flex-shrink: 0;
    width: 108px;
    color: #999999;
    font-size: 13px;
}

.pagination {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.page-btn {
    font-family: inherit;
    font-size: 13px;
    width: 26px;
    height: 26px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    color: #666666;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.page-btn:hover {
    transform: translateY(-1px);
}

.page-btn.active {
    border-color: #ff4d8d;
    color: #00a79d;
    font-weight: 700;
}

/* ---------- About page ---------- */

.back-link {
    display: inline-block;
    font-size: 14px;
    color: #111111;
    text-decoration: none;
    margin-bottom: 40px;
}

.back-link:hover {
    text-decoration: underline;
}

.about-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 28px;
}

.about-title .sparkle {
    color: #00a79d;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 1em;
    line-height: 1;
    cursor: pointer;
    display: inline-block;
    transform-origin: center;
    transition: transform 0.2s ease;
}

.about-title .sparkle:hover {
    transform: scale(1.2) rotate(15deg);
}

.about-title .sparkle.spin {
    animation: sparkle-spin 0.6s ease;
}

@keyframes sparkle-spin {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.6); }
    100% { transform: rotate(360deg) scale(1); }
}

.mini-sparkle {
    position: fixed;
    pointer-events: none;
    color: #ff4d8d;
    font-size: 14px;
    z-index: 999;
    animation: mini-sparkle-float 0.7s ease forwards;
}

@keyframes mini-sparkle-float {
    0%   { transform: translate(0, 0) scale(0.6); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; }
}

.photo-frame {
    max-width: 400px;
    margin: 0 0 16px;
}

.about-photo {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    transform: rotate(0deg);
    will-change: transform;
}

.photo-frame:hover .about-photo {
    transform: rotate(-1.5deg) scale(1.015);
    box-shadow: 0 18px 30px -14px rgba(0, 0, 0, 0.35);
}

.fact-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 2px solid #ff4d8d;
    border-radius: 999px;
    padding: 5px 16px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #00a79d;
    cursor: pointer;
    margin-bottom: 32px;
    transition: transform 0.15s ease;
}

.fact-pill:hover {
    transform: scale(1.04);
}

.fact-pill:active {
    transform: scale(0.97);
}

#fact-pill-text {
    display: inline-block;
    transition: opacity 0.15s ease;
}

#fact-pill-text.fade {
    opacity: 0;
}

.bio strong {
    color: #ff4d8d;
    padding: 0 1px;
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

.bio strong:hover {
    background-image: linear-gradient(
        90deg,
        #ff3b30, #ff7a00, #e6a700, #34c759,
        #00b8a9, #007aff, #5856d6, #af52de, #ff2d75, #ff3b30
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transform: translateY(-2px) rotate(-0.5deg);
    animation: rainbow-flow 3s linear infinite;
}

@keyframes rainbow-flow {
    from { background-position: 0% 50%; }
    to { background-position: 200% 50%; }
}

/* ---------- Off the clock (notes section) ---------- */

.notes-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.sparkle-mini {
    display: inline-block;
    color: #00a79d;
}

.notes-tagline {
    font-size: 14px;
    color: #666666;
    margin-bottom: 20px;
    max-width: 460px;
}

.notes-subhead {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #999999;
    margin: 32px 0 4px;
}

.curation-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tab-chip {
    font-family: inherit;
    font-size: 13px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    padding: 5px 14px;
    color: #666666;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tab-chip:hover {
    transform: translateY(-1px);
}

.tab-chip.active {
    border-color: #ff4d8d;
    color: #00a79d;
    font-weight: 500;
}

.curation-panel {
    list-style: none;
    font-size: 14px;
    margin-top: 16px;
    animation: notes-fade-in 0.25s ease;
}

.curation-panel li {
    padding: 6px 0;
}

.curation-panel li.curation-group {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ff4d8d;
    padding: 12px 0 2px;
}

.curation-panel li.curation-group:first-child {
    padding-top: 0;
}

.curation-panel a {
    color: #111111;
}

@keyframes notes-fade-in {
    0%   { opacity: 0; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}

.about-links a {
    position: relative;
    color: #111111;
    text-decoration: none;
    padding-bottom: 2px;
}

.about-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #111111;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.about-links a:hover::after {
    transform: scaleX(1);
}

.about-links {
    margin-top: 56px;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ---------- Book club ---------- */

.bookclub-section {
    margin-top: 48px;
}

.bookclub-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    max-width: 460px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.2s ease, box-shadow 0.2s ease;
}

.bookclub-card:hover {
    transform: translateY(-3px) rotate(-0.6deg);
    border-color: #ff4d8d;
    box-shadow: 0 12px 28px -14px rgba(255, 77, 141, 0.55);
}

.bookclub-emoji {
    font-size: 30px;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.bookclub-card:hover .bookclub-emoji {
    animation: book-wiggle 0.6s ease-in-out;
}

.bookclub-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bookclub-head {
    font-size: 15px;
    font-weight: 700;
    color: #111111;
}

.bookclub-desc {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
}

.bookclub-arrow {
    margin-left: auto;
    font-size: 18px;
    color: #00a79d;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.bookclub-card:hover .bookclub-arrow {
    transform: translateX(4px);
}

@keyframes book-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-12deg); }
    50% { transform: rotate(10deg); }
    75% { transform: rotate(-6deg); }
}

/* ---------- Photo sphere gallery ---------- */

.gallery-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.gallery-tagline {
    font-size: 14px;
    color: #666666;
    margin-bottom: 8px;
    max-width: 460px;
}

.photo-sphere {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    margin: 4px auto 8px;
    perspective: 900px;
    cursor: grab;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    overflow: visible;
}

.photo-sphere.dragging {
    cursor: grabbing;
}

.sphere-stage {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    will-change: transform;
}

.sphere-tile {
    position: absolute;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    margin: 0;
    padding: 0;
    border: none;
    background: #ffffff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.6s ease;
    cursor: pointer;
}

.sphere-tile.ready {
    opacity: 1;
}

.sphere-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.sphere-tile:hover {
    box-shadow: 0 0 0 2px #ff4d8d, 0 2px 10px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.sphere-hint {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #999999;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.sphere-hint.hidden {
    opacity: 0;
}

/* ---------- Lightbox ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 30px;
    line-height: 1;
    color: #111111;
    background: none;
    border: none;
    padding: 4px;
}

.lightbox-figure {
    position: relative;
    max-width: 90vw;
    max-height: 82vh;
    margin: 0;
    transform: scale(0.94);
    transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.lightbox.open .lightbox-figure {
    transform: scale(1);
}

.lightbox-img {
    display: block;
    max-width: 90vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    border-radius: 2px;
}

.lightbox-tip {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    padding: 4px 12px;
    border-radius: 999px;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.lightbox-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 40px 18px 16px;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.lightbox-figure.show-meta .lightbox-meta {
    opacity: 1;
    transform: translateY(0);
}

.lightbox-figure.show-meta .lightbox-tip {
    opacity: 0;
}

.meta-where {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.meta-when {
    font-size: 13px;
    opacity: 0.85;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
    .page {
        padding-top: 48px;
    }

    .site-header h1 {
        font-size: 22px;
    }

    .site-header .role {
        font-size: 15px;
    }

    .photo-sphere {
        max-width: 320px;
    }
}
