:root {
    --v1-bg: #08080a;
    --v1-bg-elevated: #111114;
    --v1-paper: #f2f2f4;
    --v1-paper-warm: #eee9e2;
    --v1-ink: #f3f3f5;
    --v1-ink-dark: #161618;
    --v1-muted: #a1a1a7;
    --v1-muted-dark: #65656b;
    --v1-line: rgba(255, 255, 255, 0.12);
    --v1-line-dark: rgba(17, 17, 20, 0.12);
    --v1-blue: #2997ff;
    --v1-orange: #f0a33a;
    --v1-font: "SF Pro Text", "SF Pro Display", "PingFang SC", "Segoe UI Variable", "Segoe UI", sans-serif;
    --v1-display: "SF Pro Display", "PingFang SC", "Segoe UI Variable Display", "Segoe UI", sans-serif;
    --v1-radius-lg: 2.5rem;
    --v1-radius-md: 1.5rem;
    --v1-shadow: 0 2.5rem 7.5rem rgba(0, 0, 0, 0.24);
    --v1-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

body.apple-v1 {
    min-width: 20rem;
    background: var(--v1-bg);
    color: var(--v1-ink);
    font-family: var(--v1-font);
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.apple-v1::before,
.apple-v1 .cursor-dot {
    display: none;
}

.apple-v1 * {
    -webkit-tap-highlight-color: transparent;
}

.apple-v1 a,
.apple-v1 button {
    -webkit-touch-callout: none;
}

.apple-v1 a:focus-visible,
.apple-v1 button:focus-visible,
.apple-v1 [tabindex]:focus-visible {
    outline: 0.1875rem solid var(--v1-blue);
    outline-offset: 0.25rem;
}

.apple-v1 .skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    transform: translateY(-160%);
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: var(--v1-paper);
    color: var(--v1-ink-dark);
    font-weight: 650;
    text-decoration: none;
    transition: transform 160ms ease-out;
}

.apple-v1 .skip-link:focus {
    transform: translateY(0);
}

.apple-v1 .container {
    width: min(100% - 3rem, 75rem);
    max-width: none;
    margin-inline: auto;
    padding: 0;
}

.apple-v1.portfolio-page .header,
.apple-v1.product-page .header,
.apple-v1.legal-shell .header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    padding: 0;
    background: rgba(8, 8, 10, 0.68);
    border: 0;
    backdrop-filter: blur(1.5rem) saturate(170%);
    -webkit-backdrop-filter: blur(1.5rem) saturate(170%);
    transition: background 220ms ease-out, box-shadow 220ms ease-out;
}

.apple-v1 .header.is-scrolled {
    padding: 0;
    background: rgba(8, 8, 10, 0.9);
    box-shadow: 0 1px rgba(255, 255, 255, 0.08);
}

.apple-v1 .site-nav,
.apple-v1 .header nav {
    min-height: 4.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0;
    border: 0;
}

.apple-v1 .brand,
.apple-v1 .logo-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--v1-ink);
    text-decoration: none;
    transform: none;
}

.apple-v1 .header-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.apple-v1 .header-icon:hover {
    transform: none;
}

.apple-v1 .logo {
    font-size: 0.9rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.apple-v1 .nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.25rem);
}

.apple-v1 .nav-links a,
.apple-v1 .top-link {
    position: relative;
    color: rgba(243, 243, 245, 0.72);
    font-size: 0.78rem;
    font-weight: 560;
    letter-spacing: 0;
    text-decoration: none;
    transition: color 160ms ease-out;
}

.apple-v1 .nav-links a:hover,
.apple-v1 .top-link:hover {
    color: var(--v1-ink);
}

.apple-v1.portfolio-page main,
.apple-v1.product-page main,
.apple-v1.legal-shell main {
    padding-top: 4.25rem;
}

.apple-v1 .eyebrow {
    margin: 0 0 1.25rem;
    color: var(--v1-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.apple-v1 .button,
.apple-v1 .cta-button,
.apple-v1 .store-button,
.apple-v1 .project-dialog-link,
.apple-v1 .project-dialog-close {
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0 1.25rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease-out, background 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}

.apple-v1 .button:active,
.apple-v1 .cta-button:active,
.apple-v1 .store-button:not(.is-disabled):active,
.apple-v1 .social-item:active,
.apple-v1 .play-btn:active {
    transform: scale(0.97);
    transition-duration: 90ms;
}

.apple-v1 .button--primary,
.apple-v1 .cta-button.primary {
    background: var(--v1-ink);
    color: var(--v1-ink-dark);
}

.apple-v1 .button--primary:hover,
.apple-v1 .cta-button.primary:hover {
    background: #dedee2;
    transform: none;
}

.apple-v1 .button--dark {
    background: var(--v1-ink-dark);
    color: var(--v1-ink);
}

.apple-v1 .button--dark:hover {
    background: #2a2a2e;
}

.apple-v1 .button--secondary,
.apple-v1 .cta-button.secondary {
    border-color: var(--v1-line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--v1-ink);
}

.apple-v1 .button--secondary:hover,
.apple-v1 .cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.11);
    transform: none;
}

.apple-v1 .text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--v1-blue);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.apple-v1 .text-link span {
    transition: transform 180ms var(--v1-ease);
}

.apple-v1 .text-link:hover span {
    transform: translateX(0.2rem);
}

/* Portfolio hero */
.apple-v1 .hero {
    min-height: calc(100svh - 4.25rem);
    display: grid;
    align-items: center;
    padding: clamp(4rem, 8vw, 7.5rem) 0;
    overflow: hidden;
}

.apple-v1 .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(22rem, 0.96fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 7.5rem);
}

.apple-v1 .hero-title {
    margin: 0;
    max-width: none;
    color: var(--v1-ink);
    font-family: var(--v1-display);
    font-size: clamp(3.6rem, 6.4vw, 5.75rem);
    font-weight: 690;
    letter-spacing: -0.065em;
    line-height: 0.94;
    transform: none;
    transition: none;
}

.apple-v1 .hero-title span {
    display: block;
    color: #8e8e93;
}

.apple-v1 .hero-lede {
    max-width: 34rem;
    margin: 2rem 0 0;
    color: var(--v1-muted);
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    font-weight: 430;
    letter-spacing: -0.02em;
    line-height: 1.65;
}

.apple-v1 .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2.25rem;
}

.apple-v1 .hero-stage {
    position: relative;
    min-height: clamp(28rem, 52vw, 38rem);
    isolation: isolate;
    perspective: 75rem;
}

.apple-v1 .hero-stage::before {
    content: "";
    position: absolute;
    inset: 14% 0 7%;
    z-index: -2;
    border-radius: 50%;
    background: radial-gradient(circle at 48% 42%, rgba(240, 163, 58, 0.34), rgba(240, 163, 58, 0.08) 37%, transparent 69%);
    filter: blur(1rem);
}

.apple-v1 .stage-ring {
    position: absolute;
    inset: 13% 4% 5%;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    transform: rotate(-12deg);
}

.apple-v1 .product-slab {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 2.25rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055));
    box-shadow: 0 3rem 6rem rgba(0, 0, 0, 0.4), inset 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(1.75rem) saturate(150%);
    -webkit-backdrop-filter: blur(1.75rem) saturate(150%);
}

.apple-v1 .product-slab img {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 1.45rem;
    object-fit: cover;
    box-shadow: 0 1rem 2.25rem rgba(0, 0, 0, 0.24);
}

.apple-v1 .product-slab strong {
    display: block;
    margin-top: auto;
    font-size: 1.45rem;
    font-weight: 650;
    letter-spacing: -0.04em;
}

.apple-v1 .product-slab small {
    margin-top: 0.2rem;
    color: rgba(243, 243, 245, 0.58);
    font-size: 0.78rem;
}

.apple-v1 .product-slab--primary {
    inset: 8% 11% 9% 13%;
    transform: rotateY(-8deg) rotateZ(5deg);
}

.apple-v1 .product-slab--secondary {
    width: 13rem;
    height: 17rem;
    right: -4%;
    bottom: 0;
    z-index: 2;
    transform: rotateY(-10deg) rotateZ(-7deg);
    background: linear-gradient(145deg, rgba(232, 225, 214, 0.2), rgba(255, 255, 255, 0.06));
}

.apple-v1 .product-slab--secondary img {
    width: 4rem;
    height: 4rem;
    border-radius: 1.05rem;
}

/* Work */
.apple-v1 .projects {
    padding: clamp(5rem, 10vw, 9rem) 0;
}

.apple-v1 .section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: end;
    gap: 4rem;
    margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

.apple-v1 .section-heading h2,
.apple-v1 .statement h2,
.apple-v1 .contact-heading {
    margin: 0;
    font-family: var(--v1-display);
    font-size: clamp(2.5rem, 5vw, 4.75rem);
    font-weight: 660;
    letter-spacing: -0.055em;
    line-height: 1;
}

.apple-v1 .section-heading > p:last-child {
    max-width: 31rem;
    justify-self: end;
    margin: 0;
    color: var(--v1-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.apple-v1 .project-stack {
    display: grid;
    gap: 1.5rem;
}

.apple-v1 .project-story {
    min-height: 42rem;
    display: grid;
    grid-template-columns: minmax(20rem, 0.78fr) minmax(0, 1.22fr);
    overflow: hidden;
    border-radius: var(--v1-radius-lg);
    background: var(--v1-paper-warm);
    color: var(--v1-ink-dark);
}

.apple-v1 .story-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(2rem, 5vw, 4.5rem);
}

.apple-v1 .story-index {
    margin: 0 0 auto;
    color: var(--v1-muted-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.11em;
}

.apple-v1 .story-icon {
    width: 4.75rem;
    height: 4.75rem;
    margin: clamp(3rem, 8vw, 7rem) 0 1.5rem;
    border-radius: 1.2rem;
    object-fit: cover;
    box-shadow: 0 1rem 2.5rem rgba(72, 48, 17, 0.16);
}

.apple-v1 .story-copy h3 {
    max-width: 10ch;
    margin: 0;
    font-family: var(--v1-display);
    font-size: clamp(2.65rem, 5vw, 5rem);
    font-weight: 680;
    letter-spacing: -0.065em;
    line-height: 0.96;
}

.apple-v1 .story-copy > p:not(.story-index) {
    max-width: 29rem;
    margin: 1.5rem 0 0;
    color: #57575c;
    font-size: 1.05rem;
    line-height: 1.7;
}

.apple-v1 .story-meta {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0 0;
    padding: 1.35rem 0 0;
    border-top: 1px solid var(--v1-line-dark);
    list-style: none;
}

.apple-v1 .story-meta span,
.apple-v1 .story-meta strong {
    display: block;
}

.apple-v1 .story-meta span {
    margin-bottom: 0.25rem;
    color: var(--v1-muted-dark);
    font-size: 0.68rem;
}

.apple-v1 .story-meta strong {
    font-size: 0.8rem;
    font-weight: 650;
}

.apple-v1 .story-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2rem;
}

.apple-v1 .story-media {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: #d8d1c6;
}

.apple-v1 .story-media::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 3rem 0 5rem rgba(21, 19, 17, 0.12);
    pointer-events: none;
}

.apple-v1 .story-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 700ms var(--v1-ease);
}

.apple-v1 .project-story:hover .story-media img {
    transform: scale(1.018);
}

.apple-v1 .project-story--thought {
    background: #151519;
    color: var(--v1-ink);
}

.apple-v1 .project-story--thought .story-index,
.apple-v1 .project-story--thought .story-copy > p:not(.story-index) {
    color: var(--v1-muted);
}

.apple-v1 .project-story--thought .story-icon {
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.28);
}

.apple-v1 .project-story--thought .story-meta {
    border-color: var(--v1-line);
}

.apple-v1 .project-story--thought .story-meta span {
    color: var(--v1-muted);
}

.apple-v1 .project-story--thought .story-media {
    background: #e8dcc3;
}

.apple-v1 .status-note {
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    padding: 0 1.1rem;
    border: 1px solid var(--v1-line);
    border-radius: 999px;
    color: var(--v1-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

/* Product principles */
.apple-v1 .principles {
    padding: clamp(5rem, 10vw, 9rem) 0;
}

.apple-v1 .statement {
    max-width: 56rem;
    margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.apple-v1 .principle-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    counter-reset: principle;
}

.apple-v1 .principle-list article {
    padding-top: 1.5rem;
    border-top: 1px solid var(--v1-line);
    counter-increment: principle;
}

.apple-v1 .principle-list article::before {
    content: "0" counter(principle);
    display: block;
    margin-bottom: 3rem;
    color: var(--v1-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.apple-v1 .principle-list h3 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 640;
    letter-spacing: -0.03em;
}

.apple-v1 .principle-list p {
    margin: 0;
    color: var(--v1-muted);
    line-height: 1.75;
}

/* Video and contact */
.apple-v1 .video-showcase {
    padding: 0 0 clamp(5rem, 10vw, 9rem);
}

.apple-v1 .video-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.apple-v1 .video-heading h2 {
    margin: 0;
    font-family: var(--v1-display);
    font-size: clamp(2.5rem, 5vw, 4.75rem);
    font-weight: 660;
    letter-spacing: -0.055em;
    line-height: 1;
}

.apple-v1 .video-heading p {
    max-width: 24rem;
    margin: 0;
    color: var(--v1-muted);
}

.apple-v1 .video-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--v1-radius-lg);
    background: #121216;
    box-shadow: var(--v1-shadow);
}

.apple-v1 .video-cover {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0.76;
    filter: saturate(0.82) contrast(1.04);
    transition: transform 700ms var(--v1-ease), opacity 240ms ease-out;
}

.apple-v1 .video-wrapper:hover .video-cover {
    transform: scale(1.015);
    opacity: 0.9;
}

.apple-v1 .play-btn {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 4.5rem;
    height: 4.5rem;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(244, 244, 246, 0.76);
    color: var(--v1-ink-dark);
    cursor: pointer;
    backdrop-filter: blur(1rem) saturate(160%);
    -webkit-backdrop-filter: blur(1rem) saturate(160%);
    transition: transform 160ms ease-out, background 180ms ease-out;
}

.apple-v1 .play-btn:hover {
    transform: translate(-50%, -50%) scale(1.04);
    background: rgba(244, 244, 246, 0.92);
}

.apple-v1 .play-btn svg {
    width: 1.35rem;
    height: 1.35rem;
    overflow: visible;
}

.apple-v1 .play-btn svg path:first-child {
    display: none;
}

.apple-v1 .play-btn svg path:last-child {
    fill: currentColor;
    transform: translate(-23px, -12px) scale(0.72);
}

.apple-v1 .socials {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--v1-paper);
    color: var(--v1-ink-dark);
}

.apple-v1 .contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
    gap: 5rem;
    align-items: end;
}

.apple-v1 .contact-heading {
    max-width: 12ch;
}

.apple-v1 .contact-copy {
    margin: 1.5rem 0 0;
    color: var(--v1-muted-dark);
    font-size: 1.05rem;
}

.apple-v1 .social-grid {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--v1-line-dark);
}

.apple-v1 .social-item {
    min-height: 4.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--v1-line-dark);
    color: var(--v1-ink-dark);
    text-decoration: none;
    transition: padding 180ms var(--v1-ease), color 180ms ease-out;
}

.apple-v1 .social-item:hover {
    padding-inline: 0.5rem;
    color: #006edb;
}

.apple-v1 .social-name {
    font-size: 0.88rem;
    font-weight: 650;
    letter-spacing: 0;
}

.apple-v1 .social-arrow {
    font-size: 1.15rem;
}

/* Shared footer */
.apple-v1 .footer,
.apple-v1 .product-footer {
    padding: 2.5rem 0;
    background: var(--v1-bg);
    color: var(--v1-muted);
    border: 0;
}

.apple-v1 .footer-bottom {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0;
    border: 0;
}

.apple-v1 .footer-bottom p {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.7;
}

.apple-v1 .record-link,
.apple-v1 .legal-links a {
    color: inherit;
    text-decoration: none;
}

.apple-v1 .record-link:hover,
.apple-v1 .legal-links a:hover {
    color: var(--v1-ink);
}

.apple-v1 .back-to-top {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--v1-ink);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0;
    cursor: pointer;
}

/* Item Manager page */
.apple-v1.product-page {
    --product-surface: #171719;
    --product-soft-surface: #242427;
    --product-list-surface: #202023;
    --product-muted-ink: #a9a9af;
    --product-qr-bg: #171719;
    background: var(--v1-bg);
}

.apple-v1.product-page .product-hero {
    min-height: calc(100svh - 4.25rem);
    display: grid;
    align-items: center;
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.apple-v1.product-page .product-hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
    gap: clamp(3rem, 8vw, 7rem);
}

.apple-v1.product-page .hero-copy h1 {
    max-width: 10ch;
    margin: 0 0 1.75rem;
    color: var(--v1-ink);
    font-family: var(--v1-display);
    font-size: clamp(3.3rem, 5.5vw, 5.5rem);
    font-weight: 680;
    letter-spacing: -0.065em;
    line-height: 0.95;
}

.apple-v1.product-page .hero-copy h1 span {
    display: block;
    color: #8e8e93;
}

.apple-v1.product-page .hero-copy > p:not(.eyebrow) {
    max-width: 34rem;
    margin-bottom: 2rem;
    color: var(--v1-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.apple-v1.product-page .app-mark {
    width: 5.25rem;
    height: 5.25rem;
    margin-bottom: 1.75rem;
    border-radius: 1.35rem;
    box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.28);
}

.apple-v1.product-page .phone-stage {
    min-height: 43rem;
    border-radius: var(--v1-radius-lg);
    background: linear-gradient(180deg, rgba(8, 8, 10, 0.02), rgba(8, 8, 10, 0.46)), url('../assets/images/item_bg.webp') center/cover;
    box-shadow: inset 0 0 0 1px var(--v1-line), var(--v1-shadow);
}

.apple-v1.product-page .phone-stage::after {
    background: linear-gradient(180deg, transparent 55%, rgba(8, 8, 10, 0.82));
}

.apple-v1.product-page .phone-shell {
    width: min(20rem, calc(100% - 3rem));
    padding: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 3rem;
    background: #070708;
    box-shadow: 0 2.5rem 6rem rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.12);
}

.apple-v1.product-page .phone-notch {
    width: 6.5rem;
    height: 1.45rem;
    margin-bottom: -0.5rem;
    background: #070708;
}

.apple-v1.product-page .phone-screen {
    min-height: 35rem;
    border-radius: 2.35rem;
    padding: 2rem 1.25rem 1.25rem;
    background: var(--product-surface);
    color: var(--v1-ink);
}

.apple-v1.product-page .quick-actions span {
    background: var(--v1-orange);
    color: #21160b;
}

.apple-v1.product-page .feature-band {
    padding: clamp(5rem, 10vw, 9rem) 0;
    background: var(--v1-paper);
    color: var(--v1-ink-dark);
}

.apple-v1.product-page .feature-heading {
    max-width: 15ch;
    margin: 0 0 clamp(4rem, 8vw, 7rem);
    font-family: var(--v1-display);
    font-size: clamp(2.8rem, 6vw, 5.6rem);
    font-weight: 670;
    letter-spacing: -0.06em;
    line-height: 1;
}

.apple-v1.product-page .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.apple-v1.product-page .feature-grid article {
    min-height: 18rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.75rem 0 0;
    border-top: 1px solid var(--v1-line-dark);
}

.apple-v1.product-page .feature-grid article::before {
    color: var(--v1-muted-dark);
    font-size: 0.72rem;
    font-weight: 700;
}

.apple-v1.product-page .feature-grid article:nth-child(1)::before { content: "01 / LOCATION"; }
.apple-v1.product-page .feature-grid article:nth-child(2)::before { content: "02 / EXPIRY"; }
.apple-v1.product-page .feature-grid article:nth-child(3)::before { content: "03 / FAMILY"; }

.apple-v1.product-page .feature-grid h3 {
    max-width: 12ch;
    margin: auto 0 1rem;
    color: var(--v1-ink-dark);
    font-family: var(--v1-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1.06;
}

.apple-v1.product-page .feature-grid p {
    max-width: 24rem;
    color: var(--v1-muted-dark);
    line-height: 1.75;
}

.apple-v1.product-page .platform-band {
    padding: clamp(5rem, 9vw, 8rem) 0;
    background: #171719;
}

.apple-v1.product-page .platform-grid {
    align-items: center;
    padding: 0;
    border: 0;
}

.apple-v1.product-page .platform-grid h2,
.apple-v1.product-page .download-grid h2 {
    max-width: 12ch;
    color: var(--v1-ink);
    font-family: var(--v1-display);
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    font-weight: 660;
    letter-spacing: -0.055em;
    line-height: 1;
}

.apple-v1.product-page .platform-grid p,
.apple-v1.product-page .download-grid p {
    max-width: 36rem;
    color: var(--v1-muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

.apple-v1.product-page .platform-list {
    max-width: 28rem;
    justify-content: flex-end;
}

.apple-v1.product-page .platform-list span {
    min-width: 7.5rem;
    padding: 0.85rem 1.2rem;
    border-color: var(--v1-line);
    color: var(--v1-ink);
    text-align: center;
}

.apple-v1.product-page .download-band {
    padding: clamp(5rem, 9vw, 8rem) 0;
    background: var(--v1-paper-warm);
    color: var(--v1-ink-dark);
}

.apple-v1.product-page .download-grid {
    padding: 0;
    border: 0;
}

.apple-v1.product-page .download-grid h2 {
    color: var(--v1-ink-dark);
}

.apple-v1.product-page .download-grid p {
    color: var(--v1-muted-dark);
}

.apple-v1.product-page .store-button {
    border-color: var(--v1-line-dark);
    color: var(--v1-ink-dark);
}

.apple-v1.product-page .store-button.is-disabled {
    opacity: 0.48;
}

.apple-v1.product-page .qr-placeholder {
    border: 0;
    border-radius: 2rem;
    background: rgba(22, 22, 24, 0.08);
}

.apple-v1.product-page .qr-placeholder span,
.apple-v1.product-page .qr-panel p {
    color: var(--v1-muted-dark);
}

/* Legal pages inherit the same quiet shell without reintroducing motion. */
.apple-v1.legal-shell {
    --bg-color: var(--v1-paper);
    --text-color: var(--v1-ink-dark);
    --secondary-text: var(--v1-muted-dark);
    --border-color: var(--v1-line-dark);
    background: var(--v1-paper);
    color: var(--v1-ink-dark);
}

.apple-v1.legal-shell .header {
    background: rgba(242, 242, 244, 0.78);
}

.apple-v1.legal-shell .logo-wrapper,
.apple-v1.legal-shell .logo {
    color: var(--v1-ink-dark);
}

.apple-v1.legal-shell .legal-page {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.apple-v1.legal-shell .legal-page h1 {
    max-width: 12ch;
    font-family: var(--v1-display) !important;
    font-size: clamp(3rem, 7vw, 5.5rem) !important;
    font-weight: 680 !important;
    letter-spacing: -0.06em !important;
    line-height: 0.98 !important;
}

.apple-v1.legal-shell .legal-page h2 {
    letter-spacing: -0.02em !important;
}

.apple-v1.legal-shell .legal-page h2::before {
    display: none !important;
}

.apple-v1.legal-shell .legal-page a {
    color: #006edb !important;
    border-bottom-color: rgba(0, 110, 219, 0.35) !important;
}

.apple-v1.legal-shell .legal-page .contact-box {
    background: rgba(255, 255, 255, 0.55) !important;
    border-color: var(--v1-line-dark) !important;
    border-radius: 1.5rem !important;
}

.apple-v1.legal-shell .footer {
    background: #e7e7ea;
    color: var(--v1-muted-dark);
}

/* Motion */
.apple-v1 .reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 560ms var(--v1-ease), transform 560ms var(--v1-ease);
    will-change: opacity, transform;
}

.apple-v1 .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .apple-v1 .hero-layout,
    .apple-v1 .section-heading,
    .apple-v1 .contact-layout,
    .apple-v1.product-page .product-hero-grid {
        grid-template-columns: 1fr;
    }

    .apple-v1 .hero-stage {
        width: min(100%, 35rem);
        min-height: 31rem;
        margin-inline: auto;
    }

    .apple-v1 .section-heading > p:last-child {
        justify-self: start;
    }

    .apple-v1 .project-story {
        grid-template-columns: 1fr;
    }

    .apple-v1 .story-media {
        min-height: 32rem;
        order: -1;
    }

    .apple-v1 .story-copy {
        min-height: 36rem;
    }

    .apple-v1 .contact-layout {
        gap: 3rem;
    }

    .apple-v1.product-page .phone-stage {
        min-height: 40rem;
    }

    .apple-v1.product-page .platform-grid,
    .apple-v1.product-page .download-grid {
        grid-template-columns: 1fr;
    }

    .apple-v1.product-page .platform-list {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .apple-v1 .container {
        width: min(100% - 2rem, 75rem);
    }

    .apple-v1 .site-nav,
    .apple-v1 .header nav {
        min-height: 3.75rem;
    }

    .apple-v1.portfolio-page main,
    .apple-v1.product-page main,
    .apple-v1.legal-shell main {
        padding-top: 3.75rem;
    }

    .apple-v1 .nav-links {
        gap: 1rem;
    }

    .apple-v1 .nav-links a:nth-child(3) {
        display: none;
    }

    .apple-v1 .hero {
        min-height: auto;
        padding: 4.5rem 0 3rem;
    }

    .apple-v1 .hero-layout {
        gap: 2rem;
    }

    .apple-v1 .hero-title {
        font-size: clamp(3rem, 14.5vw, 4rem);
        letter-spacing: -0.07em;
    }

    .apple-v1 .hero-lede {
        font-size: 1rem;
    }

    .apple-v1 .hero-actions {
        align-items: flex-start;
    }

    .apple-v1 .hero-stage {
        min-height: 25rem;
    }

    .apple-v1 .product-slab--primary {
        inset: 8% 12% 12% 3%;
    }

    .apple-v1 .product-slab--secondary {
        width: 10.5rem;
        height: 13.5rem;
        right: -3%;
    }

    .apple-v1 .product-slab img {
        width: 4.25rem;
        height: 4.25rem;
        border-radius: 1.1rem;
    }

    .apple-v1 .product-slab strong {
        font-size: 1.15rem;
    }

    .apple-v1 .projects,
    .apple-v1 .principles {
        padding: 5rem 0;
    }

    .apple-v1 .section-heading {
        gap: 1.75rem;
    }

    .apple-v1 .project-story {
        min-height: 0;
        border-radius: 1.75rem;
    }

    .apple-v1 .story-media {
        min-height: 23rem;
    }

    .apple-v1 .story-copy {
        min-height: 34rem;
        padding: 2rem 1.5rem;
    }

    .apple-v1 .story-icon {
        margin-top: 4rem;
    }

    .apple-v1 .story-meta {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .apple-v1 .principle-list,
    .apple-v1.product-page .feature-grid {
        grid-template-columns: 1fr;
    }

    .apple-v1 .principle-list article::before {
        margin-bottom: 2rem;
    }

    .apple-v1 .video-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .apple-v1 .video-wrapper {
        border-radius: 1.5rem;
    }

    .apple-v1 .socials {
        padding: 4.5rem 0;
    }

    .apple-v1 .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        text-align: left;
    }

    .apple-v1.product-page .product-hero {
        min-height: auto;
        padding: 4rem 0 5rem;
    }

    .apple-v1.product-page .hero-copy h1 {
        font-size: clamp(3rem, 14.5vw, 4rem);
    }

    .apple-v1.product-page .hero-actions,
    .apple-v1.product-page .download-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .apple-v1.product-page .phone-stage {
        min-height: 34rem;
        border-radius: 1.75rem;
    }

    .apple-v1.product-page .phone-shell {
        width: min(17.25rem, calc(100% - 2rem));
    }

    .apple-v1.product-page .phone-screen {
        min-height: 30rem;
    }

    .apple-v1.product-page .feature-grid article {
        min-height: 15rem;
    }

    .apple-v1.product-page .qr-panel {
        justify-self: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .apple-v1 *,
    .apple-v1 *::before,
    .apple-v1 *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }

    .apple-v1 .reveal,
    .apple-v1 .reveal.active {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .apple-v1.portfolio-page .header,
    .apple-v1.product-page .header,
    .apple-v1 .product-slab,
    .apple-v1 .play-btn {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .apple-v1.portfolio-page .header,
    .apple-v1.product-page .header {
        background: #111114;
    }
}

@media (prefers-contrast: more) {
    .apple-v1.portfolio-page .header,
    .apple-v1.product-page .header {
        background: #111114;
        box-shadow: 0 1px #f3f3f5;
    }

    .apple-v1 .button--secondary,
    .apple-v1 .project-story,
    .apple-v1 .product-slab {
        border-color: currentColor;
    }
}

/* Homepage play layer ----------------------------------------------------- */
.apple-v1 .brand-home {
    display: inline-flex;
    align-items: center;
    color: var(--v1-ink);
    text-decoration: none;
}

.apple-v1 .bubble-trigger {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: transform 140ms ease-out, filter 180ms ease-out;
}

.apple-v1 .bubble-trigger:active {
    transform: scale(0.9);
}

.apple-v1 .bubble-trigger.is-glowing {
    filter: drop-shadow(0 0 1.1rem rgba(240, 163, 58, 0.8));
}

.apple-v1 .bubble-layer {
    position: fixed;
    inset: 0;
    z-index: 180;
    overflow: hidden;
    pointer-events: none;
}

.apple-v1 .soap-bubble {
    position: fixed;
    left: var(--bubble-x);
    top: var(--bubble-y);
    width: var(--bubble-size);
    height: var(--bubble-size);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    opacity: 0;
    pointer-events: auto;
    background:
        radial-gradient(circle at 31% 27%, rgba(255, 255, 255, 0.72) 0 5%, transparent 7%),
        radial-gradient(circle at 68% 72%, rgba(240, 163, 58, 0.18), transparent 46%),
        linear-gradient(145deg, rgba(41, 151, 255, 0.13), rgba(255, 255, 255, 0.05) 48%, rgba(240, 163, 58, 0.16));
    box-shadow: inset 0 0 0.8rem rgba(255, 255, 255, 0.15), 0 0.5rem 2rem rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(0.18rem);
    -webkit-backdrop-filter: blur(0.18rem);
    animation: soap-bubble-rise var(--bubble-duration) var(--v1-ease) forwards;
    cursor: pointer;
}

.apple-v1 .soap-bubble.is-popped {
    animation: none;
    opacity: 0;
    transform: scale(1.55);
    transition: transform 150ms ease-out, opacity 150ms ease-out;
}

@keyframes soap-bubble-rise {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.62);
    }
    12% {
        opacity: 0.88;
    }
    72% {
        opacity: 0.72;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--bubble-drift), calc(var(--bubble-rise) * -1), 0) scale(1.08);
    }
}

.apple-v1 .product-slab {
    --drag-x: 0px;
    --drag-y: 0px;
    --drag-rotate: 0deg;
    --press-scale: 1;
    --base-rotate-y: 0deg;
    --base-rotate-z: 0deg;
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
    transform: translate3d(var(--drag-x), var(--drag-y), 0)
        rotateY(var(--base-rotate-y))
        rotateZ(calc(var(--base-rotate-z) + var(--drag-rotate)))
        scale(var(--press-scale));
    transition: box-shadow 180ms ease-out, border-color 180ms ease-out;
}

.apple-v1 .product-slab--primary {
    --base-rotate-y: -8deg;
    --base-rotate-z: 5deg;
}

.apple-v1 .product-slab--secondary {
    --base-rotate-y: -10deg;
    --base-rotate-z: -7deg;
}

.apple-v1 .product-slab.is-pressed {
    --press-scale: 0.975;
    border-color: rgba(255, 255, 255, 0.28);
}

.apple-v1 .product-slab.is-dragging {
    z-index: 8;
    cursor: grabbing;
    box-shadow: 0 4rem 8rem rgba(0, 0, 0, 0.5), inset 0 1px rgba(255, 255, 255, 0.24);
}

.apple-v1 .drag-hint {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 12;
    margin: 0;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--v1-line);
    border-radius: 999px;
    background: rgba(17, 17, 20, 0.72);
    color: var(--v1-muted);
    font-size: 0.7rem;
    font-weight: 650;
    transform: translateX(-50%);
    backdrop-filter: blur(1rem);
    -webkit-backdrop-filter: blur(1rem);
    transition: opacity 220ms ease-out, transform 220ms ease-out;
    pointer-events: none;
}

.apple-v1 .drag-hint.is-dismissed {
    opacity: 0;
    transform: translateX(-50%) translateY(0.5rem);
}

/* Sorting playground */
.apple-v1 .playground {
    padding: clamp(5rem, 10vw, 9rem) 0;
    background: var(--v1-paper);
    color: var(--v1-ink-dark);
}

.apple-v1 .playground .eyebrow {
    color: var(--v1-muted-dark);
}

.apple-v1 .playground-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
    align-items: end;
    gap: clamp(2rem, 8vw, 7rem);
    margin-bottom: clamp(3rem, 7vw, 5rem);
}

.apple-v1 .playground-heading h2 {
    max-width: 12ch;
    margin: 0;
    font-family: var(--v1-display);
    font-size: clamp(2.8rem, 6vw, 5.6rem);
    font-weight: 670;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.apple-v1 .playground-heading h2 span {
    display: block;
    color: #77777d;
}

.apple-v1 .playground-heading > div:last-child > p:first-child {
    margin: 0;
    color: var(--v1-muted-dark);
    font-size: 1.03rem;
    line-height: 1.75;
}

.apple-v1 .game-status {
    margin: 1.25rem 0 0;
    color: #006edb;
    font-size: 0.82rem;
    font-weight: 650;
}

.apple-v1 .sorting-game {
    position: relative;
    display: grid;
    grid-template-columns: minmax(17rem, 0.72fr) minmax(0, 1.28fr);
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--v1-line-dark);
    border-radius: var(--v1-radius-lg);
    background: #e7e2da;
    box-shadow: 0 2rem 6rem rgba(49, 42, 31, 0.11);
    overflow: visible;
}

.apple-v1 .sort-tray,
.apple-v1 .sort-zones {
    position: relative;
    display: grid;
    gap: 0.75rem;
}

.apple-v1 .sort-tray {
    grid-template-columns: 1fr;
}

.apple-v1 .sort-item,
.apple-v1 .sort-zone {
    position: relative;
    min-width: 0;
    font-family: inherit;
    text-align: left;
}

.apple-v1 .sort-item {
    --item-x: 0px;
    --item-y: 0px;
    --item-rotate: 0deg;
    --item-scale: 1;
    min-height: 8rem;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr 1fr;
    column-gap: 1rem;
    align-items: end;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    background: #18181b;
    color: var(--v1-ink);
    box-shadow: 0 0.75rem 1.8rem rgba(23, 20, 16, 0.1);
    touch-action: none;
    user-select: none;
    cursor: grab;
    z-index: 2;
    transform: translate3d(var(--item-x), var(--item-y), 0) rotate(var(--item-rotate)) scale(var(--item-scale));
    transition: border-color 140ms ease-out, box-shadow 160ms ease-out;
}

.apple-v1 .sort-item:active,
.apple-v1 .sort-item.is-selected {
    --item-scale: 0.975;
    border-color: rgba(240, 163, 58, 0.85);
}

.apple-v1 .sort-item.is-dragging {
    --item-scale: 1.035;
    z-index: 20;
    cursor: grabbing;
    box-shadow: 0 2rem 4rem rgba(23, 20, 16, 0.26);
}

.apple-v1 .sort-item.is-sorted {
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease-out;
}

.apple-v1 .sort-emoji {
    grid-row: 1 / 3;
    align-self: center;
    font-size: 2.45rem;
    filter: saturate(0.9);
}

.apple-v1 .sort-item strong {
    align-self: end;
    font-size: 1rem;
    font-weight: 680;
    letter-spacing: -0.02em;
}

.apple-v1 .sort-item small {
    align-self: start;
    color: var(--v1-muted);
    font-size: 0.72rem;
}

.apple-v1 .sort-zones {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.apple-v1 .sort-zone {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 1.5rem;
    border: 1px solid rgba(22, 22, 24, 0.1);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.48);
    color: var(--v1-ink-dark);
    cursor: pointer;
    transition: transform 160ms ease-out, background 180ms ease-out, border-color 180ms ease-out;
}

.apple-v1 .sort-zone:hover,
.apple-v1 .sort-zone.is-targeted {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(0, 110, 219, 0.35);
}

.apple-v1 .sort-zone.is-filled {
    background: #d9eadb;
    border-color: rgba(55, 125, 75, 0.28);
}

.apple-v1 .sort-zone.is-wrong {
    transform: translateX(0.35rem);
    border-color: rgba(183, 77, 50, 0.42);
}

.apple-v1 .zone-symbol {
    margin-bottom: auto;
    color: #77777d;
    font-size: 1.7rem;
    line-height: 1;
}

.apple-v1 .sort-zone strong {
    font-size: 1.02rem;
    font-weight: 680;
    letter-spacing: -0.02em;
}

.apple-v1 .sort-zone small {
    margin-top: 0.25rem;
    color: var(--v1-muted-dark);
    font-size: 0.7rem;
}

.apple-v1 .zone-items {
    min-height: 2.1rem;
    display: flex;
    align-items: center;
    margin-top: 1.25rem;
    font-size: 1.75rem;
}

.apple-v1 .game-complete {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.72);
}

.apple-v1 .game-complete[hidden] {
    display: none;
}

.apple-v1 .game-complete > div:first-child {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 0.85rem;
}

.apple-v1 .complete-mark {
    grid-row: 1 / 3;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #317647;
    color: #f3f3f5;
    font-weight: 800;
}

.apple-v1 .game-complete strong {
    font-size: 1rem;
}

.apple-v1 .game-complete p {
    margin: 0.15rem 0 0;
    color: var(--v1-muted-dark);
    font-size: 0.78rem;
}

.apple-v1 .complete-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.apple-v1 .game-reset {
    min-height: 3rem;
    padding: 0 0.75rem;
    border: 0;
    background: transparent;
    color: #006edb;
    font-family: inherit;
    font-weight: 650;
    cursor: pointer;
}

/* Swipe galleries */
.apple-v1 .story-media {
    --gallery-x: 0px;
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
}

.apple-v1 .story-media.is-dragging {
    cursor: grabbing;
}

.apple-v1 .story-track {
    width: 100%;
    height: 100%;
    display: flex;
    transform: translate3d(var(--gallery-x), 0, 0);
    will-change: transform;
}

.apple-v1 .story-slide {
    position: relative;
    min-width: 100%;
    min-height: 42rem;
    display: grid;
    place-items: center;
    margin: 0;
    overflow: hidden;
    background: #d8d1c6;
}

.apple-v1 .story-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.apple-v1 .story-slide figcaption {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 4;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(17, 17, 20, 0.58);
    color: rgba(243, 243, 245, 0.84);
    font-size: 0.68rem;
    font-weight: 650;
    backdrop-filter: blur(0.8rem);
    -webkit-backdrop-filter: blur(0.8rem);
}

.apple-v1 .story-slide--identity {
    background: radial-gradient(circle at 50% 42%, #fff4dc, #cfc6b9 70%);
}

.apple-v1 .identity-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--v1-ink-dark);
}

.apple-v1 .identity-stage img {
    width: clamp(8rem, 16vw, 12rem);
    height: clamp(8rem, 16vw, 12rem);
    margin-bottom: 2rem;
    border-radius: 28%;
    object-fit: cover;
    box-shadow: 0 2rem 5rem rgba(72, 48, 17, 0.2);
}

.apple-v1 .identity-stage strong {
    max-width: 11ch;
    font-family: var(--v1-display);
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 670;
    letter-spacing: -0.055em;
    line-height: 1;
}

.apple-v1 .identity-stage span {
    margin-top: 1rem;
    color: var(--v1-muted-dark);
    font-size: 0.75rem;
    font-weight: 650;
}

.apple-v1 .story-slide--stack {
    background: #121215;
    color: var(--v1-ink);
}

.apple-v1 .stack-stage {
    width: min(80%, 38rem);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.apple-v1 .stack-stage span {
    padding: 0.8rem 1rem;
    border: 1px solid var(--v1-line);
    border-radius: 999px;
    color: var(--v1-muted);
    font-size: 0.75rem;
    font-weight: 650;
}

.apple-v1 .stack-stage strong {
    flex-basis: 100%;
    max-width: 11ch;
    margin-top: 2.5rem;
    font-family: var(--v1-display);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 660;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.apple-v1 .thought-identity {
    background: radial-gradient(circle at 50% 42%, #f4e5bd, #d3c39d 72%);
}

.apple-v1 .thought-stack {
    background: #17130e;
}

.apple-v1 .gallery-controls {
    position: absolute;
    right: 1.25rem;
    bottom: 1.1rem;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(17, 17, 20, 0.68);
    backdrop-filter: blur(1rem);
    -webkit-backdrop-filter: blur(1rem);
}

.apple-v1 .gallery-controls button {
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--v1-ink);
    font-family: inherit;
    font-size: 1.35rem;
    cursor: pointer;
}

.apple-v1 .gallery-controls button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.apple-v1 .gallery-progress {
    min-width: 3.4rem;
    color: rgba(243, 243, 245, 0.72);
    font-size: 0.68rem;
    font-weight: 650;
    text-align: center;
}

@media (max-width: 960px) {
    .apple-v1 .playground-heading,
    .apple-v1 .sorting-game {
        grid-template-columns: 1fr;
    }

    .apple-v1 .sort-tray {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .apple-v1 .sort-item {
        min-height: 9rem;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.15rem;
    }

    .apple-v1 .sort-emoji {
        grid-row: auto;
        margin-bottom: 0.75rem;
    }

    .apple-v1 .story-slide {
        min-height: 32rem;
    }
}

@media (max-width: 700px) {
    .apple-v1 .bubble-trigger {
        width: 2.25rem;
        height: 2.25rem;
    }

    .apple-v1 .drag-hint {
        bottom: -0.25rem;
    }

    .apple-v1 .playground {
        padding: 5rem 0;
    }

    .apple-v1 .playground-heading {
        gap: 1.75rem;
    }

    .apple-v1 .playground-heading h2 {
        font-size: clamp(2.8rem, 13vw, 4rem);
    }

    .apple-v1 .sorting-game {
        padding: 0.65rem;
        border-radius: 1.75rem;
    }

    .apple-v1 .sort-tray,
    .apple-v1 .sort-zones {
        gap: 0.45rem;
    }

    .apple-v1 .sort-item {
        min-height: 7.5rem;
        padding: 0.75rem;
        border-radius: 1.15rem;
    }

    .apple-v1 .sort-emoji {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }

    .apple-v1 .sort-item strong {
        font-size: 0.78rem;
    }

    .apple-v1 .sort-item small {
        font-size: 0.62rem;
    }

    .apple-v1 .sort-zone {
        min-height: 9.5rem;
        padding: 0.8rem;
        border-radius: 1.15rem;
    }

    .apple-v1 .zone-symbol {
        font-size: 1.3rem;
    }

    .apple-v1 .sort-zone strong {
        font-size: 0.78rem;
    }

    .apple-v1 .sort-zone small {
        font-size: 0.6rem;
    }

    .apple-v1 .zone-items {
        min-height: 1.6rem;
        margin-top: 0.75rem;
        font-size: 1.35rem;
    }

    .apple-v1 .game-complete {
        align-items: stretch;
        flex-direction: column;
        padding: 1rem;
    }

    .apple-v1 .complete-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .apple-v1 .story-slide {
        min-height: 23rem;
    }

    .apple-v1 .story-slide figcaption {
        display: none;
    }

    .apple-v1 .gallery-controls {
        right: 50%;
        bottom: 0.8rem;
        transform: translateX(50%);
    }

    .apple-v1 .identity-stage img {
        margin-bottom: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .apple-v1 .soap-bubble {
        display: none;
    }

    .apple-v1 .drag-hint {
        display: none;
    }

}
