/* ========================
   MAGAZINE HORIZONTAL SCROLL
   ======================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --color-paper: #f8f6f1;
    --color-ink: #1a1a1a;
    --color-accent: #8b7355;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Space Grotesk', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background: var(--color-paper);
    color: var(--color-ink);
    overflow-x: hidden;
    overflow-y: auto;
}

/* Progress Bar */
.page-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(26, 26, 26, 0.1);
    z-index: 1000;
}

.progress-fill {
    height: 100%;
    background: var(--color-accent);
    width: 0%;
    transition: width 0.1s linear;
}

/* Page Counter */
.page-counter {
    position: fixed;
    top: 2rem;
    right: 2rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-page {
    font-weight: 700;
    color: var(--color-ink);
}

.divider {
    opacity: 0.3;
}

.total-pages {
    opacity: 0.5;
}

/* Horizontal Container */
.magazine-horizontal {
    display: flex;
    width: fit-content;
}

/* Pages */
.page {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    padding: 2rem 4rem;
    overflow: hidden;
    margin-right: 4rem;
}

.page-content {
    max-width: 900px;
    width: 100%;
}

/* Page Numbers */
.page-number {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    opacity: 0.3;
    font-family: var(--font-sans);
    font-weight: 600;
}

.page-number.light {
    color: var(--color-paper);
}

/* Cover Page */
.cover-page {
    background: var(--color-ink);
    color: var(--color-paper);
}

.cover-masthead {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 5rem;
    font-weight: 600;
    opacity: 0.7;
}

.cover-title {
    font-family: var(--font-serif);
    font-size: clamp(4.5rem, 13vw, 9rem);
    font-weight: 900;
    line-height: 0.85;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.cover-subtitle {
    display: flex;
    flex-direction: column;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 5rem;
}

.cover-feature {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.5;
    font-weight: 600;
    display: block;
    margin-bottom: .5rem;
}

.feature-text {
    font-size: 1rem;
    opacity: 0.8;
}

/* Spread Layout */
.spread-page {
    background: var(--color-paper);
    overflow: visible;
    padding: 6rem 4rem;
}

.spread-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    align-items: center;
}

.spread-image-column {
    position: relative;
    width: 100%;
    z-index: 10;
}

.spread-image-column.overlap {
    left: -10vw;
}

.spread-layout.reverse {
    direction: rtl;
}

.spread-layout.reverse > * {
    direction: ltr;
}

.image-wrapper {
    width: 100%;
    max-height: 80vh;
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
}

.image-wrapper.narrow-image {
    width: 85%;
}

.spread-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-wrapper:hover .spread-image {
    transform: scale(1.05);
}

/* Pull Quote */
.pull-quote {
    padding: 2rem 0;
}

.pull-quote-grid {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 3rem;
    padding: 2rem 0;
}

.pull-quote-item {
    display: flex;
    flex-direction: column;
}

.quote-mark {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 0;
    display: block;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
    opacity: 0.3;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    line-height: 1.4;
    font-style: italic;
}

.quote-attribution {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-style: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
}

.quote-attribution-centered {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-style: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
    text-align: center;
    margin-top: 2rem;
}

/* Article Page */
.article-page {
    background: var(--color-paper);
}

.article-header {
    margin-bottom: 3rem;
    margin-top: 3rem;
}

.article-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1;
}

.article-meta {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
    display: flex;
    gap: 0.75rem;
}

.article-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    column-rule: 1px solid rgba(26, 26, 26, 0.1);
}

.column {
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 300;
}

.column p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
}

.article-list li {
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.article-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 600;
}

.dropcap::first-letter {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1;
    float: left;
    margin: 0 0.15em 0 0;
    font-weight: 700;
}

.stats-inline {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
}

/* Feature Page */
.feature-page {
    background: var(--color-paper);
    padding: 6rem 4rem;
}

.feature-page.dark {
    background: var(--color-ink);
    color: var(--color-paper);
    padding: 8rem 6rem;
}

.feature-page.dark .feature-details {
    border-top: 1px solid rgba(248, 246, 241, 0.1);
}

.feature-page.dark .image-wrapper {
    border: 1px solid rgba(248, 246, 241, 0.1);
}

/* Stacked Layout */
.feature-page.stacked-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.stacked-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stacked-image-wrapper {
    width: 100%;
    height: 35vh;
    max-height: 400px;
    overflow: hidden;
    position: relative;
}

.stacked-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%) contrast(1.1);
}

.stacked-text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stacked-text .feature-title {
    margin-bottom: 0.5rem;
}

.description-timeline-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
    margin-top: 0;
}

.description-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.description-column .feature-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.timeline-column {
    display: flex;
    align-items: flex-start;
}

/* Floating Layout - Creative Two-Image Design */
.feature-page.floating-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8rem;
}

.floating-container {
    width: 100%;
    max-width: 1400px;
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.floating-images {
    position: relative;
    width: 100%;
    height: 70vh;
}

.floating-image-large {
    position: absolute;
    width: 70%;
    height: 75%;
    top: 0;
    left: 0;
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(26, 26, 26, 0.1);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.15);
}

.floating-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-image-large:hover img {
    transform: scale(1.05);
}

.floating-image-small {
    position: absolute;
    width: 55%;
    height: 60%;
    bottom: 0;
    right: 0;
    z-index: 3;
    overflow: hidden;
    border: 1px solid rgba(26, 26, 26, 0.1);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.2);
}

.floating-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-image-small:hover img {
    transform: scale(1.05);
}

.image-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-paper);
    background: var(--color-ink);
    padding: 0.5rem 1rem;
    z-index: 10;
}

.floating-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 4;
    position: relative;
}

.feature-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    width: 100%;
    max-width: 1400px;
    align-items: center;
}

.feature-layout.reverse {
    direction: rtl;
}

.feature-layout.reverse > * {
    direction: ltr;
}

.feature-image-side {
    position: relative;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
}

.image-caption {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.caption-number {
    font-weight: 700;
    opacity: 0.5;
}

.caption-text {
    font-style: italic;
    opacity: 0.7;
}

.feature-content-side.full {
    grid-column: span 2;
    text-align: center;
}

.feature-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.feature-description {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.feature-description.large {
    font-size: 1.4rem;
    text-align: center;
}

.feature-details {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
}

.detail-value {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Timeline */
.timeline-items {
    position: relative;
    padding-left: 2rem;
    margin-top: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
}

.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
}

.timeline-phase {
    font-weight: 700;
    font-size: 1.1rem;
}

.timeline-desc {
    font-size: 0.95rem;
    opacity: 0.7;
}

/* Dark Feature Image */
.dark-image-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 4rem auto 0;
    overflow: hidden;
}

.dark-feature-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1) brightness(0.8);
}

.feature-highlight {
    margin-top: 3rem;
}

.highlight-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 4rem;
    border: 2px solid currentColor;
}

.highlight-number {
    font-family: var(--font-serif);
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
}

.highlight-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 1rem;
}

/* Skills List */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Stacked Layout (Page 005) */
.stacked-layout {
    padding: 6rem 4rem;
}

.stacked-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    height: 100vh;
    max-height: 100vh;
    overflow: visible;
    padding: 3rem 0;
}

.stacked-image-wrapper {
    width: 100%;
    max-width: 900px;
    height: 40vh;
    max-height: 400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.stacked-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%) contrast(1.1);
}

.stacked-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 900px;
    width: 100%;
    flex-shrink: 0;
}

.stacked-text .description-timeline-wrapper {
    margin-bottom: 0;
    position: relative;
}

.stacked-text .read-case-study-btn {
    margin-top: 0;
    position: absolute;
    right: 0;
    bottom: 0;
}

.description-timeline-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
    height: auto;
}

.description-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: auto;
}

.description-column .feature-description {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.timeline-column {
    height: 200px;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: auto;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.timeline-column {
    border-left: 2px solid var(--color-accent);
    padding-left: 2rem;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-phase {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
}

.timeline-desc {
    font-size: 0.95rem;
    opacity: 0.7;
    line-height: 1.6;
}

/* Feature Timeline (Inline) */
.feature-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(26, 26, 26, 0.15);
}

.timeline-item-inline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-item-inline .timeline-phase {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
}

.timeline-item-inline .timeline-desc {
    font-size: 0.95rem;
    opacity: 0.7;
    line-height: 1.6;
}

/* Skills List */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.skill-item {
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
    padding-bottom: 2rem;
}

.skill-item:last-child {
    border-bottom: none;
}

.skill-name {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.skill-description {
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 300;
    opacity: 0.8;
}

/* Collage Page */
.collage-page {
    background: var(--color-paper);
}

.collage-header {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 3rem;
}

.collage-subtitle {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--color-ink);
    opacity: 0.5;
    margin-top: 1rem;
}

.collage-container {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: visible;
}

/* Collage Photos - Clean image style */
.collage-photo {
    position: absolute;
    cursor: grab;
    transition: box-shadow 0.3s ease, transform 0.1s ease;
    z-index: 1;
    user-select: none;
}

.collage-photo:hover {
    box-shadow: 0 15px 60px rgba(0,0,0,0.25);
    z-index: 100 !important;
}

.collage-photo:active {
    cursor: grabbing;
    z-index: 1000 !important;
}

.collage-photo.dragging {
    z-index: 1000 !important;
    box-shadow: 0 20px 70px rgba(0,0,0,0.35);
}

/* Different sizes */
.collage-photo.large img {
    width: 280px;
    height: 350px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.collage-photo.medium img {
    width: 220px;
    height: 280px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.collage-photo.small img {
    width: 180px;
    height: 230px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.collage-photo img {
    display: block;
    pointer-events: none;
    transition: box-shadow 0.3s ease;
}

.collage-photo:hover img {
    box-shadow: 0 15px 60px rgba(0,0,0,0.25);
}

.collage-photo.dragging img {
    box-shadow: 0 20px 70px rgba(0,0,0,0.35);
}

.collage-caption {
    font-family: 'Reenie Beanie', cursive;
    font-size: 1.5rem;
    text-align: center;
    margin-top: 1rem;
    color: var(--color-ink);
    pointer-events: none;
    line-height: 1.2;
}

/* Beyond the Desk Page */
.beyond-desk-page {
    background: var(--color-paper);
    width: auto;
    display: flex;
}

.beyond-desk-content {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.vertical-title {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    z-index: 100;
    color: var(--color-ink);
}

.image-scroll-container {
    display: flex;
    gap: 8rem;
    padding-left: 20rem;
    align-items: center;
    height: 100%;
}

.scroll-image {
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(30px);
}

.scroll-image img {
    width: auto;
    max-width: 600px;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    filter: grayscale(100%);
    transition: filter 0.6s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-image img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
    box-shadow: 0 15px 60px rgba(0,0,0,0.25);
}

/* Contact Page */
.contact-page {
    background: var(--color-paper);
    padding: 8rem 4rem;
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-top: 4rem;
    margin-bottom: 6rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 8rem;
}

.contact-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

.contact-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
    min-width: 100px;
}

.contact-value {
    font-size: 1.5rem;
    font-weight: 300;
}

.contact-link {
    color: var(--color-ink);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.6;
}

.closing-mark {
    opacity: 0.3;
}

.end-symbol {
    font-size: 2rem;
}

/* Fullbleed Layout (Page 6) */
.fullbleed-layout {
    position: relative;
    padding: 0 !important;
    overflow: hidden;
}

.fullbleed-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1) brightness(0.7);
}

.fullbleed-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 6rem 4rem;
}

.fullbleed-text {
    max-width: 900px;
    text-align: center;
}

/* Skills Grid (Page 7) */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 4rem;
}

.skill-card {
    border: 1px solid rgba(26, 26, 26, 0.15);
    padding: 3rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.skill-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    opacity: 0.3;
    font-weight: 600;
}

.skill-card .skill-name {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.skill-card .skill-description {
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
    opacity: 0.8;
}

.end-symbol {
    font-size: 1.5rem;
}

/* Scroll Reveal Animations */
[data-scroll-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

[data-parallax] {
    transition: transform 0.3s ease-out;
}

/* Cover Video Trigger */
.cover-video-trigger {
    all: unset;
    display: block;
    cursor: pointer;
    position: relative;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(248, 246, 241, 0.2);
    border-bottom: 1px solid rgba(248, 246, 241, 0.2);
    transition: border-color 0.3s ease;
}

.cover-video-trigger::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 0;
    right: 0;
    bottom: 1px;
    background: rgba(248, 246, 241, 0.05);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.cover-video-trigger:hover::before {
    opacity: 1;
}

.cover-video-trigger:hover {
    border-color: var(--color-paper);
}

.cover-feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cover-video-trigger .feature-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.cover-video-trigger:hover .feature-label {
    transform: translateX(1rem);
}

.cover-video-trigger .feature-text {
    font-size: 1.15rem;
    line-height: 1.4;
    transition: transform 0.3s ease;
}

.cover-video-trigger:hover .feature-text {
    transform: translateX(1rem);
}

.play-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.cover-video-trigger:hover .play-indicator {
    opacity: 1;
    transform: translateX(1rem);
}

.play-icon-small {
    width: 28px;
    height: 28px;
    color: var(--color-paper);
    transition: transform 0.3s ease;
}

.cover-video-trigger:hover .play-icon-small {
    transform: scale(1.15);
}

.play-hint {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-paper);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
}

.video-modal.active {
    display: block;
    animation: modalFadeIn 0.4s forwards;
}

.video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-ink);
    opacity: 0.98;
    backdrop-filter: blur(20px);
}

.video-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.video-modal-close {
    position: absolute;
    top: 3rem;
    right: 3rem;
    width: 60px;
    height: 60px;
    border: 1.5px solid var(--color-paper);
    background: transparent;
    color: var(--color-paper);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-sans);
    font-weight: 300;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-close:hover {
    background: var(--color-paper);
    color: var(--color-ink);
    transform: rotate(90deg);
    border-radius: 50%;
}

.video-modal-content {
    width: 100%;
    max-width: 1000px;
    animation: modalSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s backwards;
}

.video-modal-header {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-paper);
}

.video-modal-header .modal-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.5;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-sans);
}

.video-modal-header .modal-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
    border: 1px solid rgba(248, 246, 241, 0.1);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 968px) {
    .page {
        padding: 3rem 2rem;
    }
    
    .spread-layout,
    .article-columns,
    .feature-layout,
    .description-timeline-wrapper,
    .floating-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stacked-content {
        height: 100vh;
        gap: 1.5rem;
        padding: 3rem 0;
    }
    
    .stacked-image-wrapper {
        height: 35vh;
        max-height: 300px;
    }
    
    .stacked-text {
        gap: 1rem;
    }
    
    .description-timeline-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .floating-images {
        height: 50vh;
        margin-bottom: 2rem;
    }
    
    .floating-image-large {
        width: 80%;
        height: 70%;
    }
    
    .floating-image-small {
        width: 60%;
        height: 55%;
    }
    
    .feature-content-side.full {
        grid-column: span 1;
    }
    
    .cover-masthead {
        margin-bottom: 4rem;
    }
    
    .cover-subtitle {
        margin-bottom: 4rem;
    }
    
    .video-modal-container {
        padding: 2rem;
    }
    
    .video-modal-close {
        top: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .video-modal-header .modal-title {
        font-size: 1.8rem;
    }
}

/* ========================
   CASE STUDY BUTTON
   ======================== */

.read-case-study-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 1.5px solid var(--color-ink);
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.read-case-study-btn:hover {
    background: var(--color-ink);
    color: var(--color-paper);
    transform: translateX(5px);
}

.read-case-study-btn .btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.read-case-study-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.feature-page.dark .read-case-study-btn {
    border-color: var(--color-paper);
    color: var(--color-paper);
}

.feature-page.dark .read-case-study-btn:hover {
    background: var(--color-paper);
    color: var(--color-ink);
}

/* ========================
   CASE STUDY MODAL
   ======================== */

.case-study-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
}

.case-study-modal.active {
    display: block;
}

.case-study-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 42, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.case-study-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.case-study-modal-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: transparent;
    border: 1.5px solid var(--color-paper);
    border-radius: 0;
    color: var(--color-paper);
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: var(--font-sans);
    font-weight: 300;
}

.case-study-modal-close:hover {
    background: var(--color-paper);
    color: var(--color-ink);
    transform: rotate(90deg);
    border-radius: 50%;
}

.case-study-modal-content {
    max-width: 900px;
    width: 100%;
    background: var(--color-paper);
    padding: 4rem;
    position: relative;
}

/* Article-style reading experience */
.case-study-article {
    font-family: var(--font-serif);
    color: var(--color-ink);
}

.case-study-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(34, 29, 25, 0.1);
}

.case-study-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-ink);
    opacity: 0.5;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.case-study-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.case-study-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1rem 0;
    font-family: var(--font-serif);
}

.case-study-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-ink);
    opacity: 0.7;
    margin: 0;
    font-style: italic;
}

.case-study-summary {
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 500;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(34, 29, 25, 0.03);
    border-left: 4px solid var(--color-ink);
}

.case-study-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(34, 29, 25, 0.05);
}

.metric-item {
    text-align: center;
}

.case-study-visuals {
    margin: 3rem 0;
}

.case-study-visual-item {
    margin: 2rem 0;
}

.case-study-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-embed-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.case-study-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.case-study-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text);
    font-style: italic;
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-sans);
    margin-bottom: 0.5rem;
}

.metric-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-sans);
    opacity: 0.6;
}

.case-study-section {
    margin: 3rem 0;
}

.case-study-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    font-family: var(--font-serif);
}

.case-study-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
    color: var(--color-ink);
}

.case-study-content p:first-of-type {
    font-size: 1.25rem;
}

.case-study-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.case-study-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.case-study-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--color-ink);
}

.challenge-item {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(34, 29, 25, 0.03);
    border-left: 3px solid var(--color-ink);
}

.challenge-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    font-family: var(--font-sans);
}

.challenge-text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.timeline-list li {
    position: relative;
    padding: 1.5rem 0 1.5rem 3rem;
    border-left: 2px solid rgba(34, 29, 25, 0.1);
}

.timeline-list li:before {
    content: "";
    position: absolute;
    left: -6px;
    top: 1.5rem;
    width: 10px;
    height: 10px;
    background: var(--color-ink);
    border-radius: 50%;
}

.timeline-list li:last-child {
    border-left-color: transparent;
}

.timeline-phase {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.timeline-description {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.case-study-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1.5px solid var(--color-ink);
    color: var(--color-ink);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.case-study-link:hover {
    background: var(--color-ink);
    color: var(--color-paper);
}

.case-study-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
}

.case-study-tag {
    padding: 0.5rem 1rem;
    background: rgba(34, 29, 25, 0.08);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2px;
}

@media (max-width: 968px) {
    .case-study-modal-container {
        padding: 2rem 1rem;
    }
    
    .case-study-modal-content {
        padding: 2rem;
    }
    
    .case-study-title {
        font-size: 2.5rem;
    }
    
    .case-study-subtitle {
        font-size: 1.25rem;
    }
    
    .case-study-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .read-case-study-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .collage-container {
        height: 80vh;
    }
    
    .collage-photo.large img {
        width: 200px;
        height: 250px;
    }
    
    .collage-photo.medium img {
        width: 160px;
        height: 200px;
    }
    
    .collage-photo.small img {
        width: 130px;
        height: 165px;
    }
    
    .collage-caption {
        font-size: 1.2rem;
    }
    
    .vertical-title {
        left: 2rem;
        font-size: 2rem;
    }
    
    .image-scroll-container {
        padding-left: 10rem;
        gap: 4rem;
    }
    
    .scroll-image img {
        max-width: 400px;
        max-height: 60vh;
    }
}


/* ========================
   OUTSIDE SHOPIFY CALLOUT
   ======================== */

.outside-shopify-page {
    background: var(--color-paper);
}

.callout-content {
    text-align: left;
    color: var(--color-ink);
    max-width: 800px;
}

.callout-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 0.95;
    color: var(--color-ink);
}

.callout-description {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    color: var(--color-ink);
    margin-bottom: 3rem;
    line-height: 1.8;
    opacity: 0.8;
    max-width: 600px;
}

.callout-button {
    background: transparent;
    color: var(--color-ink);
    border: 2px solid var(--color-ink);
    padding: 1rem 2.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.callout-button:hover {
    background: var(--color-ink);
    color: var(--color-paper);
}

.callout-button svg {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.callout-button:hover svg {
    transform: translateX(6px);
}

/* ========================
   OUTSIDE SHOPIFY MODAL
   ======================== */

.outside-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-paper);
    z-index: 10000;
    overflow-y: auto;
}

.outside-modal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.outside-modal-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 80px 60px 120px;
    position: relative;
}

.close-modal {
    position: fixed;
    top: 40px;
    right: 40px;
    background: transparent;
    border: 2px solid var(--color-ink);
    color: var(--color-ink);
    font-size: 40px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 300;
}

.close-modal:hover {
    background: var(--color-ink);
    color: var(--color-paper);
    transform: rotate(90deg);
}
    transform: rotate(90deg);
    border-color: white;
}

.modal-header {
    text-align: left;
    margin-bottom: 100px;
    color: var(--color-ink);
    border-bottom: 2px solid var(--color-ink);
    padding-bottom: 50px;
}

.modal-header h1 {
    font-family: var(--font-serif);
    font-size: 80px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    line-height: 0.9;
}

.modal-subtitle {
    font-size: 18px;
    color: var(--color-muted);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.6;
}

/* ========================
   BENTO GRID
   ======================== */

.bento-grid {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
}

.bento-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    position: relative;
    display: inline-block;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.bento-item img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%) contrast(1.05);
    transition: filter 0.3s ease;
}

.bento-item:hover img {
    filter: grayscale(0%) contrast(1);
}

/* Responsive */
    background: rgba(0,0,0,0.02);
}

/* Bento Grid Sizes */
.bento-large {
    grid-column: span 8;
    grid-row: span 3;
}

.bento-wide {
    grid-column: span 8;
    grid-row: span 2;
}

.bento-tall {
    grid-column: span 4;
    grid-row: span 4;
}

.bento-medium {
    grid-column: span 4;
    grid-row: span 2;
}

.bento-small {
    grid-column: span 4;
    grid-row: span 2;
}

/* Responsive Bento Grid */
@media (max-width: 1200px) {
    .bento-grid {
        column-count: 2;
    }
        grid-row: span 3;
    }
    
    .bento-medium {
        grid-column: span 4;
        grid-row: span 2;
    }
    
    .bento-small {
        grid-column: span 4;
        grid-row: span 2;
    }
}

@media (max-width: 768px) {
    .callout-title {
        font-size: 42px;
    }
    
    .callout-description {
        font-size: 18px;
    }
    
    .outside-modal-content {
        padding: 60px 20px 80px;
    }
    
    .modal-header h1 {
        font-size: 48px;
    }
    
    .modal-subtitle {
        font-size: 16px;
    }
    
    .close-modal {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    
    .bento-grid {
        column-count: 1;
    }
}
