/* Visual layer. Existing layout, content and playback live in the original files. */
.portfolio-fancy {
    --display-font: "Helvetica Neue", "SF Pro Display", Arial, sans-serif;
    --label-font: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --accent: #b4523d;
    background: #faf9f6;
}
.portfolio-fancy ::selection { background: #ead4ca; color: #202022; }
.portfolio-fancy .eyebrow, .hero-kicker, .project-info > p, .feature-kicker,
.hero-interests, .hero-bottom-note, .projects-count, .projects-footer {
    font-family: var(--label-font);
    font-weight: 400;
    letter-spacing: .13em;
}
.portfolio-fancy .navbar-inner { background: rgba(250,249,246,.82); padding-inline: 40px; }
.portfolio-fancy .navbar-original { background: rgba(250,249,246,.82); }
.portfolio-fancy .navbar-logo { font-weight: 700; letter-spacing: -.04em; }
.portfolio-fancy .navbar-floating-inner { background: rgba(31,32,35,.76); border-color: rgba(255,255,255,.2); box-shadow: 0 10px 36px #00000016, inset 0 1px #ffffff13; }
.portfolio-fancy .navbar-github { min-height: 36px; font-family: var(--label-font); font-size: 10px; }
.portfolio-fancy .hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 692px;
    justify-content: center;
    padding: 80px 36px 116px;
    background: #f6f4f0;
    border-bottom: 1px solid #d8d3cb70;
}
.portfolio-fancy .hero::before {
    content: "";
    position: absolute;
    width: min(1100px,120vw);
    height: 700px;
    left: 50%; top: 50%;
    z-index: -2;
    background: radial-gradient(ellipse at 27% 45%,#eecabb82,transparent 52%),radial-gradient(ellipse at 73% 38%,#d6d2e8b5,transparent 49%),radial-gradient(ellipse at 50% 90%,#eeddd080,transparent 55%);
    transform: translate(calc(-50% + var(--glow-x,0px)),calc(-50% + var(--glow-y,0px)));
    filter: blur(24px);
    animation: hero-glow 16s ease-in-out infinite alternate;
    pointer-events: none;
}
.portfolio-fancy .hero::after {
    content: "";
    position: absolute; inset: 20px;
    z-index: -1;
    border: 1px solid #ffffff90;
    border-radius: 30px;
    background: linear-gradient(115deg,#ffffff30,transparent 45%,#ffffff20);
    pointer-events: none;
}
@keyframes hero-glow { from { opacity: .72; } to { opacity: 1; } }
.portfolio-fancy .hero-center { width: 100%; max-width: 840px; }
.portfolio-fancy .hero-kicker { font-size: 10px; color: #6e6562; }
.portfolio-fancy .hero h1 {
    font-family: var(--display-font);
    font-size: clamp(96px,14vw,196px);
    font-weight: 600;
    line-height: .94;
    letter-spacing: -.08em;
    margin: 26px 0 0;
    background: linear-gradient(155deg,#1c1c21 20%,#444047 74%,#6f6268);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.portfolio-fancy .hero-description { max-width: 490px; margin: 28px auto 0; font-size: 21px; letter-spacing: -.025em; color: #555057; }
.hero-interests { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; font-size: 10px; color: #777077; }
.hero-interests i { font-style: normal; color: #ba8f7f; }
.hero-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-links a { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 12px 18px; min-height: 44px; border: 1px solid #302c3020; border-radius: 999px; color: #454047; text-decoration: none; font-size: 12px; background: #ffffff50; transition: background .25s, border-color .25s; }
.hero-links a:first-child { background: #252328; color: #faf9f6; border-color: #252328; }
.hero-links a:hover { background: #ffffffc0; border-color: #302c3050; }
.hero-links a:first-child:hover { background: #494149; }
.hero-links span { transition: transform .25s; }
.hero-links a:hover span { transform: translate(2px,2px); }
.hero-bottom-note { position: absolute; bottom: 38px; inset-inline: 52px; display: flex; justify-content: space-between; gap: 16px; font-size: 9px; color: #93868a; }
.portfolio-fancy .about { position: relative; background: #faf9f6; padding-block: 88px; }
.portfolio-fancy .about h2 { font-size: clamp(48px,6vw,78px); letter-spacing: -.065em; line-height: 1.02; padding-bottom: 26px; }
.portfolio-fancy .ampersand { font-family: Georgia,serif; top: 33px; font-size: 84px; opacity: .18; filter: none; color: #a87965; }
.portfolio-fancy .about-intro { font-size: 17px; color: #8a7771; letter-spacing: .015em; }
.portfolio-fancy .about-description { max-width: 560px; margin: 20px auto 0; color: #5f565d; font-size: 16px; line-height: 1.65; }
.portfolio-fancy .about-image-placeholder { margin-top: 42px; border-radius: 24px; background: radial-gradient(ellipse at 20% 20%,#e9e0d7,transparent 60%),linear-gradient(145deg,#e1dfe4,#d6d7da); border: 1px solid #ffffffb0; box-shadow: 0 28px 65px #3a2d2410,inset 0 1px #fff8; font-family: var(--label-font); color: #8d8588; font-size: 10px; }
.portfolio-fancy .feature-carousel-section { position: relative; isolation: isolate; overflow: hidden; padding-top: 70px; padding-bottom: 92px; margin-bottom: 0; background: #faf9f6; }
.feature-ambience { position: absolute; inset: 100px -80px 0; z-index: -1; pointer-events: none; }
.feature-ambience span { position: absolute; inset: 0; opacity: 0; filter: blur(50px); transition: opacity 1.2s ease; }
.feature-ambience [data-tone="project1"] { background: radial-gradient(ellipse at 50% 50%,#e4b39b65,transparent 67%); }
.feature-ambience [data-tone="project2"] { background: radial-gradient(ellipse at 50% 50%,#c8bfdc78,transparent 67%); }
.feature-ambience [data-tone="project3"] { background: radial-gradient(ellipse at 50% 50%,#b9d5bd70,transparent 67%); }
[data-feature="project1"] [data-tone="project1"], [data-feature="project2"] [data-tone="project2"], [data-feature="project3"] [data-tone="project3"] { opacity: 1; }
.portfolio-fancy .feature-carousel-header { gap: 20px; margin-bottom: 42px; }
.portfolio-fancy .feature-carousel-header .eyebrow { align-self: center; font-size: 10px; }
.portfolio-fancy .feature-carousel-header h2 { font-size: clamp(34px,6.4vw,94px); font-weight: 600; letter-spacing: -.065em; line-height: 1; }
.portfolio-fancy .feature-slide { background: linear-gradient(150deg,#212025,#121418 60%); border: 1px solid #ffffff25; box-shadow: 0 24px 60px #251d2b14; }
.portfolio-fancy .feature-slide.is-active { box-shadow: 0 30px 70px #251d2b26,inset 0 1px #ffffff12; }
.portfolio-fancy .feature-copy { padding: 30px 16px 14px; }
.portfolio-fancy .feature-copy h3 { font-weight: 500; letter-spacing: -.055em; }
.portfolio-fancy .feature-visual { display: block; }
.portfolio-fancy .feature-visual:focus-visible { outline: 3px solid #8cb6ff; outline-offset: 4px; }
.portfolio-fancy .feature-kicker { font-size: 9px; color: #e7ded2a8; }
.portfolio-fancy .feature-description { color: #e2e0e5c7; }
.portfolio-fancy .feature-carousel-controls { margin-top: 24px; }
.portfolio-fancy .feature-indicator { background: #ffffff70; border-color: #54455016; box-shadow: 0 8px 24px #30243008,inset 0 1px #fff; backdrop-filter: blur(12px); }
.portfolio-fancy .feature-toggle { border-color: #54455016; background: #ffffff70; }
.portfolio-fancy .feature-toggle.is-paused { background: #29262d; }
.portfolio-fancy .projects-section { margin: 8px 20px 0; padding: 90px 40px 58px; background: radial-gradient(ellipse at 90% 0,#4c3a4329,transparent 45%),linear-gradient(155deg,#1a1b20,#111216 80%); border-color: #ffffff18; border-radius: 32px; }
.portfolio-fancy .projects-header { margin-bottom: 56px; }
.portfolio-fancy .projects-header h2 { font-size: clamp(44px,9vw,130px); font-weight: 500; line-height: .95; letter-spacing: -.07em; }
.portfolio-fancy .projects-header .eyebrow { margin-bottom: 12px; color: #b5a5a0; }
.portfolio-fancy .projects-count { color: #b1a5ad; }
.portfolio-fancy .project-card { background: #ffffff03; border-color: #ffffff12; padding: 14px 14px 0; border-radius: 26px; }
.portfolio-fancy .project-image { border-radius: 18px; }
.portfolio-fancy .project-info { padding-top: 22px; padding-bottom: 22px; }
.portfolio-fancy .project-info > p { font-size: 9px; margin-bottom: 14px; color: #bcadb5; }
.portfolio-fancy .project-info h3 { font-size: clamp(26px,3.1vw,46px); font-weight: 500; line-height: 1.05; }
.portfolio-fancy .project-arrow { color: #ddd6df; width: 40px; height: 40px; border-color: #ffffff1f; }
.portfolio-fancy .projects-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 72px; color: #b0a2ab; font-size: 9px; text-transform: none; }
.portfolio-fancy .projects-disclosure { max-width: 520px; margin: 0; color: #c3b9c0; font: 13px/1.55 var(--display-font); letter-spacing: 0; text-transform: none; }
.portfolio-fancy .project-card[data-project="project4"] .project-info h3 { font-family: Georgia,serif; font-weight: 400; letter-spacing: -.03em; }
.portfolio-fancy .project-modal .modal-window { background: #faf9f6; border-color: #fff; box-shadow: 0 48px 100px #0005; }
.portfolio-fancy .modal-hero h2 { font-weight: 500; line-height: .98; }
.portfolio-fancy .modal-permalink { display: inline-flex; margin-top: 28px; padding: 10px 0; color: #51434a; font-size: 14px; text-underline-offset: 4px; }
.portfolio-fancy .essay-entry h3 { font-family: Georgia,serif; font-weight: 400; letter-spacing: -.04em; }
.portfolio-fancy .essay-publication { color: #713e36; }
.portfolio-fancy .essay-link { background: #29262d; border-color: #29262d; }
.portfolio-fancy .essay-link-secondary { background: transparent; color: #29262d; border-color: #29262d30; }
.site-footer { padding: 88px 52px 28px; background: #faf9f6; }
/* Personal bookmarks, between the six projects and the signature footer. */
.saved-links { padding: 88px 52px 0; background: #faf9f6; }
.saved-links-inner { max-width: 1500px; margin: auto; padding-bottom: 76px; border-bottom: 1px solid #b6a3a340; }
.saved-links-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.saved-links-header .eyebrow { font-size: 9px; color: #796e72; }
.saved-links-header h2 { margin-top: 16px; font-size: clamp(38px, 5vw, 64px); font-weight: 500; line-height: 1.08; letter-spacing: -.055em; }
.saved-links-header h2 > span { color: #ad624c; }
.saved-links-header > p { max-width: 275px; color: #6f646b; font-size: 15px; line-height: 1.7; }
.saved-links-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.saved-link { display: flex; flex-direction: column; padding: 32px; border: 1px solid #7e6c7233; border-radius: 24px; color: #29262d; text-decoration: none; transition: background .25s ease, border-color .25s ease; }
.saved-link-music { background: #ead8bd; }
.saved-link-notion { background: #d9d1e6; }
.saved-link-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.saved-link-icon { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #7e6c7233; border-radius: 14px; background: #ffffff60; }
.saved-link-icon svg { width: 30px; height: 30px; stroke: #51434a; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.saved-link-index, .saved-link-service { font-family: var(--label-font, monospace); font-size: 9px; line-height: 1.6; letter-spacing: .11em; color: #766970; }
.saved-link h3 { margin-top: 12px; font-size: clamp(26px, 3vw, 38px); font-weight: 500; line-height: 1.15; letter-spacing: -.045em; }
.saved-link-description { margin-top: 14px; font-size: 15px; line-height: 1.7; color: #6f646b; }
.saved-link-scene { position: relative; height: clamp(230px, 22vw, 310px); margin-bottom: 30px; border-radius: 14px; overflow: hidden; isolation: isolate; }
.saved-music-scene { background: #d5b992; }
.saved-notion-scene { background: #b9acce; }
.saved-scene-caption, .saved-scene-bottom { position: absolute; left: 20px; font: 8px var(--label-font, monospace); letter-spacing: .15em; color: #43392f; z-index: 3; }
.saved-scene-caption { top: 20px; }
.saved-scene-bottom { bottom: 18px; }
.saved-record-sleeve { position: absolute; width: 170px; height: 170px; top: 50%; left: 50%; transform: translate(-85%, -50%) rotate(-6deg); background: #f1e7d6; border: 1px solid #a793724d; box-shadow: 0 14px 24px #503c2926; padding: 20px; }
.saved-record-sleeve > span { font-size: 23px; font-weight: 600; line-height: 1; letter-spacing: -.05em; }
.saved-record-sleeve > i { position: absolute; bottom: 16px; left: 20px; font: 8px var(--label-font, monospace); letter-spacing: .12em; }
.saved-record { display: grid; place-items: center; position: absolute; width: 178px; height: 178px; top: 50%; left: 50%; transform: translate(-10%, -50%) rotate(8deg); border-radius: 50%; background: repeating-radial-gradient(circle at center, #242322 0 2px, #363330 2px 3px, #242322 3px 5px); border: 5px solid #262422; box-shadow: 0 12px 24px #30241940; transition: transform .4s ease; }
.saved-record-label { display: grid; place-items: center; position: relative; width: 66px; height: 66px; border-radius: 50%; background: #a85941; color: #fff4e3; text-align: center; }
.saved-record-label > span { font: 7px var(--label-font, monospace); letter-spacing: .05em; line-height: 1.6; transform: translateY(-8px); }
.saved-record-label > i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: #292522; transform: translate(-50%, 5px); }
.saved-note-sheet { position: absolute; left: 50%; top: 50%; width: 156px; height: 192px; border: 1px solid #ffffff70; box-shadow: 0 12px 24px #30253d20; }
.saved-note-back { background: #e7e1f0; transform: translate(-42%, -48%) rotate(9deg); }
.saved-note-front { padding: 20px; background: #fbf9f3; transform: translate(-55%, -52%) rotate(-7deg); transition: transform .4s ease; }
.saved-note-front::after { content: ''; position: absolute; top: -1px; right: 18px; width: 12px; height: 36px; background: #79628e; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); }
.saved-note-kicker { display: block; font: 5px var(--label-font, monospace); letter-spacing: .08em; color: #6a626d; margin-top: 10px; }
.saved-note-name { display: block; margin-top: 8px; font: 34px Georgia, serif; letter-spacing: -.06em; color: #403a46; }
.saved-note-lines { margin-top: 20px; display: grid; gap: 8px; }
.saved-note-lines > i { display: block; height: 1px; background: #bbb1c44f; }
.saved-note-lines > i:nth-child(2) { width: 90%; }
.saved-note-lines > i:last-child { width: 65%; }
.saved-note-mark { position: absolute; bottom: 16px; font: 6px var(--label-font, monospace); letter-spacing: .12em; color: #79628e; }
.saved-link-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 18px; border-top: 1px solid #7e6c7230; font-size: 13px; }
.saved-link-action > span { font-size: 24px; line-height: 1; transition: transform .25s ease; }
.saved-link-new-tab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saved-link:focus-visible { outline: 2px solid #51434a; outline-offset: 5px; }
@media (hover:hover) and (pointer:fine) {
    .saved-link:hover { border-color: #7e6c7260; }
    .saved-link-music:hover { background: #e5d0af; }
    .saved-link-notion:hover { background: #d0c6e0; }
    .saved-link:hover .saved-record { transform: translate(-10%, -50%) rotate(20deg); }
    .saved-link:hover .saved-note-front { transform: translate(-55%, -55%) rotate(-4deg); }
    .saved-link:hover .saved-link-action > span { transform: translate(3px, -3px); }
}
@media (max-width:800px) {
    .saved-links { padding: 60px 28px 0; }
    .saved-links-inner { padding-bottom: 52px; }
    .saved-links-header { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 28px; }
    .saved-links-header > p { max-width: none; }
    .saved-links-grid { gap: 16px; }
    .saved-link { padding: 24px; border-radius: 20px; }
    .saved-link-top { margin-bottom: 28px; }
    .saved-link-scene { height: 230px; }
}
@media (min-width:601px) and (max-width:950px) {
    .saved-record-sleeve { width: 135px; height: 135px; padding: 16px; }
    .saved-record-sleeve > span { font-size: 19px; }
    .saved-record { width: 145px; height: 145px; }
    .saved-note-sheet { width: 132px; height: 170px; padding: 16px; }
    .saved-note-name { font-size: 30px; }
}
@media (max-width:600px) {
    .saved-links-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion:reduce) {
    .saved-link, .saved-link-action > span, .saved-record, .saved-note-front { transition: none; }
    .saved-link:hover .saved-link-action > span { transform: none; }
    .saved-link:hover .saved-record { transform: translate(-10%, -50%) rotate(8deg); }
    .saved-link:hover .saved-note-front { transform: translate(-55%, -52%) rotate(-7deg); }
}
.site-footer-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; max-width: 1500px; margin: auto; }
.site-footer .eyebrow { font-size: 9px; color: #988782; }
.footer-name { font-family: Georgia,serif; font-size: clamp(44px,6vw,86px); font-weight: 400; letter-spacing: -.055em; line-height: 1.12; margin-top: 16px; }
.footer-name span { color: #ad624c; }
.footer-github { display: inline-flex; align-items: center; gap: 36px; min-height: 44px; padding: 12px 0; color: #4f454d; text-decoration: none; font-size: 14px; border-bottom: 1px solid #8b717640; }
.footer-github span { font-size: 23px; transition: transform .25s; }
.footer-github:hover span { transform: translate(3px,-3px); }
.site-footer-bottom { display: flex; justify-content: space-between; gap: 20px; max-width: 1500px; margin: 52px auto 0; padding-top: 20px; border-top: 1px solid #b6a3a326; color: #93868b; font-family: var(--label-font); font-size: 9px; letter-spacing: .02em; }
.site-footer-bottom a { color: #73656d; text-decoration: none; }
.portfolio-fancy [id] { scroll-margin-top: 100px; }
.reveal-item { transition: opacity .7s ease, translate .7s cubic-bezier(.2,.8,.2,1); }
.reveal-item.is-waiting { opacity: 0; translate: 0 20px; }
.reveal-item:focus-within { opacity: 1; translate: 0 0; }
@media (hover:hover) and (pointer:fine) {
    .portfolio-fancy .project-card:hover { transform: translateY(-6px); background: #ffffff07; border-color: #d2b4ad40; box-shadow: 0 20px 45px #0003; }
    .portfolio-fancy .project-card[data-project="project3"]:hover { border-color: #b2d7bd60; }
}
@media (max-width:800px) {
    .portfolio-fancy .navbar-inner { padding-inline: 24px; }
    .portfolio-fancy .hero { min-height: 560px; padding: 72px 24px 110px; }
    .portfolio-fancy .hero::after { inset: 12px; border-radius: 20px; }
    .portfolio-fancy .hero h1 { font-size: clamp(82px,18vw,140px); }
    .portfolio-fancy .hero-description { font-size: 18px; max-width: 360px; }
    .hero-bottom-note { inset-inline: 28px; bottom: 32px; font-size: 8px; }
    .portfolio-fancy .about { padding-block: 70px; }
    .portfolio-fancy .ampersand { top: 22px; font-size: 70px; }
    .portfolio-fancy .feature-carousel-section { padding-top: 52px; padding-bottom: 60px; }
    .portfolio-fancy .feature-carousel-header { gap: 12px; margin-bottom: 30px; }
    .portfolio-fancy .feature-copy { padding-inline: 12px; }
    .portfolio-fancy .projects-section { margin-inline: 12px; padding: 54px 22px 44px; border-radius: 26px; }
    .portfolio-fancy .project-info h3 { font-size: clamp(25px,6vw,38px); }
    .portfolio-fancy .projects-header { margin-bottom: 36px; }
    .portfolio-fancy .projects-footer { flex-direction: column; gap: 14px; }
    .site-footer { padding: 60px 28px 24px; }
    .site-footer-top { align-items: flex-start; flex-direction: column; gap: 24px; }
    .site-footer-bottom { margin-top: 36px; }
}
@media (max-width:400px) {
    .portfolio-fancy .hero h1 { font-size: 82px; }
    .hero-links { gap: 10px; }
    .hero-links a { gap: 12px; padding-inline: 14px; font-size: 11px; }
    .hero-bottom-note span:first-child { display: none; }
    .hero-bottom-note { justify-content: center; }
    .portfolio-fancy .feature-carousel-header h2 { font-size: 32px; }
    .portfolio-fancy .project-card { padding: 10px 10px 0; }
    .portfolio-fancy .project-info { gap: 0 8px; }
    .portfolio-fancy .project-arrow { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion:reduce) {
    .portfolio-fancy .hero::before { animation: none; }
    .reveal-item.is-waiting { opacity: 1; translate: 0 0; }
    .feature-ambience span { transition: none; }
}
.portfolio-fancy .project-card.reveal-item {
    transition: opacity .7s ease, translate .7s cubic-bezier(.2,.8,.2,1), transform .42s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s, background .3s;
}
@media (forced-colors:active) {
    .portfolio-fancy .hero h1 { background: none; color: CanvasText; }
}
@media (hover:none) {
    .portfolio-fancy .project-card:active { transform: scale(.988); }
}
