* {
    box-sizing: border-box;
}
html {
    scroll-padding-top: 60px;
}
body {
    margin: 0;
    overflow-x: hidden;
}
main,
section,
article,
p,
h1,
h2,
h3 {
    min-width: 0;
}
p,
h1,
h2,
h3,
figcaption {
    overflow-wrap: anywhere;
}
img {
    display: block;
    max-width: 100%;
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}
@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(34px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce-soft {
    0% { opacity: 0; transform: translateY(36px) scale(0.96); }
    60% { opacity: 1; transform: translateY(-8px) scale(1.015); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-float-gentle { animation: float-gentle 3s ease-in-out infinite; }
.animate-wiggle { animation: wiggle 2s ease-in-out infinite; }
.reveal-section {
    opacity: 0;
    transform: translateY(34px);
    scroll-margin-top: 60px;
}
.anchor-target {
    display: block;
    height: 0;
    scroll-margin-top: 60px;
}
.reveal-section.reveal-active {
    animation: fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0ms);
}
.entrance-bounce {
    opacity: 0;
    animation: bounce-soft 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.material-symbols-outlined {
    visibility: hidden;
}
.icons-ready .material-symbols-outlined {
    visibility: visible;
}
.hand-drawn-blob {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transition: border-radius 1s ease-in-out;
}
.neo-brutalism-card {
    background: white;
    border: 3px solid #1f1538;
    box-shadow: 8px 8px 0 0 #1f1538;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.neo-brutalism-card:hover {
    transform: translate(-4px, -4px) scale(1.02) rotate(-1deg);
    box-shadow: 12px 12px 0 0 #1f1538;
}
.breakdown-card:hover {
    transform: none;
    box-shadow: 8px 8px 0 0 #1f1538;
}
.breakdown-card {
    scroll-margin-top: 104px;
}
.ability-card:hover {
    transform: none;
    box-shadow: 8px 8px 0 0 #1f1538;
}
.resume-toggle:hover,
.resume-preview-card:hover {
    transform: none;
    box-shadow: 8px 8px 0 0 #1f1538;
}
.ability-card .material-symbols-outlined {
    animation: none;
}
.sticker-hover {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sticker-hover:hover {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 8px 8px 0 0 #1f1538;
}
.bg-grid-dot {
    background-image: radial-gradient(rgba(31, 21, 56, 0.15) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
}
.organic-border {
    border: 3px solid #1f1538;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
}
.poster-gallery {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    padding: 28px 0 24px;
    isolation: isolate;
}
.poster-stage {
    position: relative;
    z-index: 12;
    min-width: 0;
    max-width: min(760px, 100%);
    margin: 0 auto;
    grid-column: 2 / 5;
    grid-row: 2 / 5;
}
.poster-main-card {
    overflow: hidden;
    background: white;
    transform-origin: center;
}
.poster-main-card.is-switching {
    animation: poster-pop 260ms ease-out;
}
.poster-main-card img,
.poster-thumb img {
    display: block;
    width: 100%;
    height: auto;
    background: white;
    object-fit: contain;
}
.poster-main-card img {
    max-height: 980px;
}
.poster-stack {
    display: contents;
}
.poster-thumb {
    position: relative;
    z-index: var(--poster-z, 1);
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    background: white;
    border: 4px solid #1f1538;
    border-radius: 24px;
    color: inherit;
    font: inherit;
    box-shadow: 7px 7px 0 0 #1f1538;
    transform: translate(var(--poster-x, 0), var(--poster-y, 0)) rotate(var(--poster-r, 0deg));
    transform-origin: center;
    transition: transform 220ms ease, box-shadow 220ms ease, z-index 0ms, filter 220ms ease;
}
.poster-thumb + .poster-thumb {
    margin-top: 0;
}
.poster-thumb:hover,
.poster-thumb:focus-visible {
    z-index: 30;
    box-shadow: 10px 10px 0 0 #1f1538;
    transform: translate(var(--poster-x, 0), var(--poster-y, 0)) rotate(0deg) scale(1.04);
    outline: none;
}
.poster-thumb[aria-pressed="true"] {
    border-color: #6b46c1;
    filter: saturate(1.08);
}
.poster-thumb:nth-child(1) { grid-column: 1; grid-row: 1; --poster-r: -6deg; --poster-z: 10; }
.poster-thumb:nth-child(2) { grid-column: 2; grid-row: 1; --poster-r: 4deg; --poster-z: 9; --poster-y: 8px; }
.poster-thumb:nth-child(3) { grid-column: 4; grid-row: 1; --poster-r: -4deg; --poster-z: 8; --poster-y: 8px; }
.poster-thumb:nth-child(4) { grid-column: 5; grid-row: 1; --poster-r: 6deg; --poster-z: 7; }
.poster-thumb:nth-child(5) { grid-column: 1; grid-row: 2; --poster-r: 5deg; --poster-z: 6; --poster-x: 8px; }
.poster-thumb:nth-child(6) { grid-column: 5; grid-row: 2; --poster-r: -5deg; --poster-z: 5; --poster-x: -8px; }
.poster-thumb:nth-child(7) { grid-column: 1; grid-row: 4; --poster-r: -4deg; --poster-z: 4; --poster-x: 8px; }
.poster-thumb:nth-child(8) { grid-column: 5; grid-row: 4; --poster-r: 4deg; --poster-z: 3; --poster-x: -8px; }
.poster-thumb:nth-child(9) { grid-column: 2; grid-row: 5; --poster-r: -5deg; --poster-z: 2; --poster-y: -8px; }
.poster-thumb:nth-child(10) { grid-column: 4; grid-row: 5; --poster-r: 5deg; --poster-z: 1; --poster-y: -8px; }
.poster-thumb-caption {
    display: block;
    border-top: 4px solid #1f1538;
    background: #fef3c7;
    padding: 10px 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 900;
}
@keyframes poster-pop {
    0% { transform: scale(0.985) rotate(-1deg); }
    60% { transform: scale(1.012) rotate(0.5deg); }
    100% { transform: scale(1) rotate(0deg); }
}
.contact-headline {
    font-size: 32px;
}
.resume-preview {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transform: translateY(-10px);
    transition: grid-template-rows 420ms ease, opacity 260ms ease, transform 260ms ease;
}
.resume-preview.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: translateY(0);
}
.resume-preview-inner {
    min-height: 0;
    overflow: hidden;
}
.resume-preview-card {
    display: inline-block;
    width: min(100%, 780px);
    overflow: hidden;
    background: white;
    text-align: left;
}
.resume-preview-card img {
    width: 100%;
    height: auto;
    cursor: zoom-in;
}
@media (min-width: 390px) {
    .contact-headline {
        font-size: 42px;
    }
}
.section-title-line {
    height: 12px;
    border-radius: 999px;
    border: 3px solid #1f1538;
    box-shadow: 4px 4px 0 0 #1f1538;
}
.case-image {
    width: 100%;
    height: auto;
    border: 4px solid #1f1538;
    background: white;
}
.operation-proof-card {
    display: flex;
    min-height: 360px;
    flex-direction: column;
    background: white;
    cursor: zoom-in;
}
.operation-proof-media {
    display: flex;
    flex: 1;
    min-height: 270px;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 18px;
}
.operation-proof-media img {
    max-height: 270px;
    object-fit: contain;
    cursor: zoom-in;
}
.operation-proof-caption {
    margin-top: auto;
}
.breakdown-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}
.xhs-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    border: 3px solid #1f1538;
    border-radius: 999px;
    background: white;
    box-shadow: 4px 4px 0 0 #1f1538;
    font-weight: 900;
    line-height: 1;
}
.xhs-stat .material-symbols-outlined {
    font-size: 22px;
    visibility: visible;
}
.xhs-stat-like .material-symbols-outlined { color: #ef4056; }
.xhs-stat-save .material-symbols-outlined { color: #f2b443; }
.xhs-stat-comment .material-symbols-outlined { color: #1f1538; }
.breakdown-gallery {
    display: grid;
    gap: 18px;
}
.breakdown-shot {
    position: relative;
}
.breakdown-shot img {
    cursor: zoom-in;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.breakdown-shot:hover img {
    transform: rotate(-1deg) scale(1.02);
}
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(31, 21, 56, 0.74);
}
.image-lightbox.is-open {
    display: flex;
}
.image-lightbox-panel {
    position: relative;
    width: fit-content;
    max-width: 94vw;
    max-height: 88vh;
    border: 4px solid #1f1538;
    border-radius: 28px;
    background: white;
    box-shadow: 10px 10px 0 0 #1f1538;
    overflow: hidden;
}
.image-lightbox img {
    display: block;
    width: auto;
    max-width: 94vw;
    max-height: calc(88vh - 58px);
    object-fit: contain;
    background: white;
}
.image-lightbox.is-profile .image-lightbox-panel {
    width: min(560px, 94vw);
}
.image-lightbox.is-profile img {
    height: calc(88vh - 58px);
    width: 100%;
}
.image-lightbox-caption {
    border-top: 4px solid #1f1538;
    background: #fef3c7;
    padding: 14px 18px;
    font-weight: 900;
}
.image-lightbox-close {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 2;
    display: flex;
    height: 46px;
    width: 46px;
    align-items: center;
    justify-content: center;
    border: 3px solid #1f1538;
    border-radius: 14px;
    background: #a480fe;
    color: #1f1538;
    box-shadow: 4px 4px 0 0 #1f1538;
    cursor: pointer;
}
.image-lightbox-close:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 0 #1f1538;
}
.data-badge {
    position: absolute;
    right: 10px;
    bottom: 42px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 20px);
    padding: 8px 10px;
    border: 3px solid #1f1538;
    border-radius: 999px;
    background: #a480fe;
    box-shadow: 4px 4px 0 0 #1f1538;
    color: white;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}
.data-badge .material-symbols-outlined {
    font-size: 16px;
    visibility: visible;
}
.analysis-panel {
    align-self: start;
    border: 3px solid #1f1538;
    border-radius: 24px;
    background: #fff7d6;
    box-shadow: 6px 6px 0 0 #1f1538;
    padding: 22px;
}
.strategy-brief {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 3px dashed #1f1538;
}
.strategy-brief h5 {
    display: inline-block;
    margin-bottom: 6px;
    color: #6c46d9;
    font-size: 15px;
    font-weight: 900;
}
.strategy-brief p,
.strategy-brief li {
    color: rgba(31, 21, 56, 0.72);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.7;
}
.strategy-brief ol {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 20px;
}
.analysis-title {
    display: inline-block;
    margin-bottom: 14px;
    border-bottom: 8px solid #a480fe;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
}
.analysis-data {
    margin-bottom: 18px;
    color: #6c46d9;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.9;
}
.analysis-core {
    margin-bottom: 12px;
    color: #1f1538;
    font-size: 19px;
    font-weight: 900;
}
.analysis-points {
    display: grid;
    gap: 10px;
    color: rgba(31, 21, 56, 0.72);
    font-weight: 800;
    line-height: 1.75;
}
.metric-pill {
    border: 3px solid #1f1538;
    box-shadow: 5px 5px 0 0 #1f1538;
}
.selfie-carousel {
    position: relative;
    width: min(100%, 470px);
    aspect-ratio: 4 / 5;
    overflow: visible;
}
.selfie-card {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    border: 4px solid #1f1538;
    border-radius: 255px 18px 225px 18px/18px 225px 18px 255px;
    background: white;
    box-shadow: 12px 12px 0 0 #1f1538;
    cursor: pointer;
    padding: 0;
    transform-origin: 18% 88%;
    transition:
        transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 280ms ease,
        filter 280ms ease;
}
.selfie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 700ms ease;
}
.selfie-card:hover img {
    transform: scale(1.04);
}
.selfie-card[data-position="0"] {
    z-index: 4;
    transform: translate(0, 0) rotate(-2deg) scale(1);
    filter: none;
}
.selfie-card[data-position="1"] {
    z-index: 3;
    transform: translate(46px, -20px) rotate(5deg) scale(0.96);
    filter: saturate(0.92) brightness(0.98);
}
.selfie-card[data-position="2"] {
    z-index: 2;
    transform: translate(82px, 2px) rotate(11deg) scale(0.93);
    filter: saturate(0.86) brightness(0.96);
}
.selfie-card[data-position="3"] {
    z-index: 1;
    transform: translate(112px, 32px) rotate(17deg) scale(0.9);
    filter: saturate(0.78) brightness(0.94);
}
.selfie-card:focus-visible {
    outline: 4px solid #a480fe;
    outline-offset: 8px;
}
@media (max-width: 980px) {
    .poster-gallery {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 14px;
    }
    .poster-thumb {
        width: 100%;
    }
}
@media (max-width: 640px) {
    html {
        scroll-padding-top: 56px;
    }
    .reveal-section,
    .breakdown-card {
        scroll-margin-top: 56px;
    }
    .anchor-target {
        scroll-margin-top: 56px;
    }
    main {
        padding-left: 28px;
        padding-right: 28px;
    }
    main > section {
        width: 100%;
    }
    .poster-gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
        padding: 16px 0 8px;
    }
    .poster-stage {
        max-width: 100%;
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .poster-thumb {
        width: 100%;
        border-radius: 18px;
    }
    .poster-thumb:nth-child(n) {
        margin-top: 0;
        --poster-x: 0;
        --poster-y: 0;
    }
    .poster-thumb:nth-child(1) { grid-column: 1 / 3; grid-row: 1; --poster-r: -5deg; }
    .poster-thumb:nth-child(2) { grid-column: 3 / 5; grid-row: 1; --poster-r: 5deg; }
    .poster-thumb:nth-child(3) { grid-column: 1 / 3; grid-row: 3; --poster-r: 4deg; margin-top: -10px; }
    .poster-thumb:nth-child(4) { grid-column: 3 / 5; grid-row: 3; --poster-r: -4deg; margin-top: -10px; }
    .poster-thumb:nth-child(5) { grid-column: 1 / 3; grid-row: 4; --poster-r: -4deg; margin-top: -10px; }
    .poster-thumb:nth-child(6) { grid-column: 3 / 5; grid-row: 4; --poster-r: 4deg; margin-top: -10px; }
    .poster-thumb:nth-child(7) { grid-column: 1 / 3; grid-row: 5; --poster-r: 5deg; margin-top: -10px; }
    .poster-thumb:nth-child(8) { grid-column: 3 / 5; grid-row: 5; --poster-r: -5deg; margin-top: -10px; }
    .poster-thumb:nth-child(9) { grid-column: 1 / 3; grid-row: 6; --poster-r: -3deg; margin-top: -10px; }
    .poster-thumb:nth-child(10) { grid-column: 3 / 5; grid-row: 6; --poster-r: 3deg; margin-top: -10px; }
    .poster-thumb-caption {
        padding: 8px 9px;
        font-size: 11px;
    }
    .breakdown-stats {
        gap: 8px;
    }
    .xhs-stat {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 13px;
    }
    .xhs-stat .material-symbols-outlined {
        font-size: 18px;
    }
    .analysis-panel {
        padding: 18px;
    }
    .strategy-brief p,
    .strategy-brief li {
        font-size: 13px;
    }
    .analysis-title {
        font-size: 24px;
    }
    .analysis-data {
        font-size: 15px;
    }
    .data-badge {
        right: 8px;
        bottom: 38px;
        padding: 7px 8px;
        font-size: 11px;
    }
    .data-badge .material-symbols-outlined {
        font-size: 14px;
    }
    .hero-visual {
        max-width: calc(100vw - 72px);
        margin-left: auto;
        margin-right: auto;
    }
    .selfie-card[data-position="1"] {
        transform: translate(26px, -14px) rotate(5deg) scale(0.96);
    }
    .selfie-card[data-position="2"] {
        transform: translate(48px, 2px) rotate(11deg) scale(0.93);
    }
    .selfie-card[data-position="3"] {
        transform: translate(66px, 24px) rotate(17deg) scale(0.9);
    }
    .neo-brutalism-card,
    .poster-main-card,
    .poster-thumb,
    .metric-pill {
        box-shadow: 5px 5px 0 0 #1f1538;
    }
}
@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-float-gentle,
    .animate-wiggle,
    .entrance-bounce,
    .reveal-section.reveal-active {
        animation: none;
    }
    .poster-main-card.is-switching {
        animation: none;
    }
    .reveal-section,
    .entrance-bounce {
        opacity: 1;
        transform: none;
    }
    html {
        scroll-behavior: auto;
    }
}
