/* ==========================================
   SHAILY SHARMA — PERSONA WEBSITE
   Design System & Styles
   ========================================== */

/* ---------- Design Tokens ---------- */
:root {
    /* Palette — warm, editorial, muted luxury */
    --clr-bg: #F7F2E9;
    --clr-bg-warm: #F0E7D7;
    --clr-bg-card: #FFFFFF;
    --clr-surface: #EFE6D5;
    --clr-border: rgba(58, 46, 28, 0.14);
    --clr-border-hover: rgba(150, 116, 66, 0.42);

    --clr-text: #3B342A;
    --clr-text-muted: #746B5C;
    --clr-text-dim: #9E9484;
    --clr-heading: #211C14;

    --clr-accent: #A67C3C;
    --clr-accent-soft: rgba(166, 124, 60, 0.14);
    --clr-accent-glow: rgba(166, 124, 60, 0.10);

    --clr-white: #FFFFFF;

    /* Typography */
    --ff-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --ff-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --fs-hero: clamp(2.6rem, 7vw, 6.5rem);
    --fs-h2: clamp(1.8rem, 4.5vw, 3.8rem);
    --fs-h3: clamp(1.4rem, 3vw, 2.4rem);
    --fs-body: clamp(0.95rem, 1.15vw, 1.15rem);
    --fs-body-lg: clamp(1.05rem, 1.4vw, 1.35rem);
    --fs-small: clamp(0.8rem, 0.9vw, 0.875rem);
    --fs-xs: clamp(0.65rem, 0.8vw, 0.75rem);

    --lh-tight: 1.1;
    --lh-snug: 1.3;
    --lh-body: 1.75;

    /* Spacing — fluid */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: clamp(1.5rem, 3vw, 2rem);
    --space-lg: clamp(2.5rem, 5vw, 4rem);
    --space-xl: clamp(3.5rem, 7vw, 6rem);
    --space-2xl: clamp(5rem, 10vw, 10rem);

    /* Layout */
    --max-width: 1200px;
    --nav-height: 72px;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast: 0.3s;
    --dur-med: 0.6s;
    --dur-slow: 1s;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--ff-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--clr-text);
    background-color: var(--clr-bg);
    overflow-x: hidden;
}

::selection {
    background: var(--clr-accent);
    color: var(--clr-bg);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

em {
    font-family: var(--ff-serif);
    font-style: italic;
    color: var(--clr-accent);
}

strong {
    color: var(--clr-heading);
    font-weight: 500;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(to right, var(--clr-accent), #E8D5B0);
    z-index: 2000;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(200, 168, 114, 0.4);
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--clr-accent), rgba(200, 168, 114, 0.4));
    border-radius: 10px;
    border: 2px solid var(--clr-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--clr-accent);
}

/* ---------- Cursor Glow ---------- */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle,
            rgba(200, 168, 114, 0.04) 0%,
            transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    opacity: 0;
}

.cursor-glow.active {
    opacity: 1;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
    z-index: 1000;
    background: rgba(247, 242, 233, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.nav.scrolled {
    border-bottom-color: var(--clr-border);
    background: rgba(247, 242, 233, 0.92);
}

.nav-logo {
    font-family: var(--ff-serif);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    font-weight: 500;
    color: var(--clr-heading);
    letter-spacing: 0.02em;
    transition: opacity var(--dur-fast) ease, color var(--dur-fast) ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: clamp(24px, 3vw, 32px);
    width: auto;
    display: block;
}

.nav-logo:hover {
    opacity: 0.6;
}

/* --- Subtle motion --- */
@keyframes navIn {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: 1; transform: none; }
}
.nav { animation: navIn 0.9s var(--ease-out) both; }

.nav-toggle:not(.active):hover span:nth-child(1) { transform: translateX(2px); }
.nav-toggle:not(.active):hover span:nth-child(3) { transform: translateX(-2px); }

.section-cta svg, .hero-cta svg, .linkedin-cta svg {
    transition: transform var(--dur-fast) var(--ease-out);
}
.section-cta:hover svg, .linkedin-cta:hover svg { transform: translate(3px, -3px); }
.hero-cta:hover svg { transform: translateY(3px); }

.nav-logo:hover {
    color: var(--clr-accent);
}

.nav-links {
    display: none;
    gap: clamp(1rem, 2.5vw, 2rem);
}

.nav-links a {
    font-size: var(--fs-small);
    color: var(--clr-text-muted);
    letter-spacing: 0.04em;
    position: relative;
    transition: color var(--dur-fast) ease;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--clr-accent);
    transition: width var(--dur-fast) var(--ease-out);
}

.nav-links a:hover {
    color: var(--clr-heading);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--clr-text);
    border-radius: 2px;
    transition: all var(--dur-fast) var(--ease-out);
    transform-origin: center;
}

/* Distinctive asymmetric burger: short gold middle line, right-aligned, grows on hover */
.nav-toggle span:nth-child(2) {
    width: 12px;
    margin-left: auto;
    background: var(--clr-accent);
}

.nav-toggle:hover span:nth-child(2),
.nav-toggle:focus-visible span:nth-child(2) {
    width: 22px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(247, 242, 233, 0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-med) var(--ease-out);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-family: var(--ff-serif);
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    color: var(--clr-text-muted);
    transition: color var(--dur-fast) ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-link:hover {
    color: var(--clr-accent);
}

/* ---------- HERO ---------- */
.hero {
    overflow: hidden;
}

.hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--ff-serif);
    font-size: clamp(12rem, 30vw, 26rem);
    font-weight: 300;
    color: rgba(58, 52, 43, 0.05);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    letter-spacing: 0.05em;
}

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    padding: calc(var(--nav-height) + var(--space-lg)) 0 var(--space-lg);
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem);
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-eyebrow {
    font-size: var(--fs-xs);
    letter-spacing: 0.25em;
    color: var(--clr-accent);
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.hero-headline {
    font-family: var(--ff-serif);
    font-size: var(--fs-hero);
    font-weight: 300;
    line-height: var(--lh-tight);
    color: var(--clr-heading);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.01em;
}

.hero-headline em {
    font-weight: 400;
}

.hero-body {
    max-width: 520px;
    margin-bottom: var(--space-md);
}

.hero-body p {
    color: var(--clr-text-muted);
    font-size: var(--fs-body-lg);
    line-height: var(--lh-body);
    margin-bottom: var(--space-xs);
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: var(--space-lg);
}

.hero-role {
    font-size: var(--fs-small);
    color: var(--clr-text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-companies {
    font-family: var(--ff-serif);
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: var(--clr-text-muted);
    letter-spacing: 0.05em;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-small);
    color: var(--clr-accent);
    letter-spacing: 0.06em;
    padding: 14px 0;
    border-bottom: 1px solid var(--clr-accent);
    transition: gap var(--dur-fast) var(--ease-out), color var(--dur-fast) ease;
    -webkit-tap-highlight-color: transparent;
}

.hero-cta:hover {
    gap: 16px;
}

.hero-cta svg {
    transition: transform var(--dur-fast) var(--ease-out);
}

.hero-cta:hover svg {
    transform: translateY(3px);
}

/* Portrait */
.hero-portrait {
    display: flex;
    justify-content: center;
    align-items: center;
}

.portrait-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 40px 80px rgba(40, 30, 14, 0.18),
        0 0 0 1px var(--clr-border);
}

.portrait-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(200, 168, 114, 0.1);
    z-index: 2;
    pointer-events: none;
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%) contrast(1.02);
    transition: filter var(--dur-slow) ease, transform var(--dur-slow) var(--ease-out);
}

.portrait-frame:hover img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.03);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--clr-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ---------- ABOUT ---------- */
.about {
    padding: var(--space-2xl) 0;
}

.section-label {
    font-size: var(--fs-xs);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: var(--space-lg);
    font-weight: 500;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.about-headline {
    font-family: var(--ff-serif);
    font-size: var(--fs-h2);
    font-weight: 300;
    line-height: var(--lh-snug);
    color: var(--clr-heading);
    position: sticky;
    top: calc(var(--nav-height) + var(--space-md));
}

.about-image {
    margin-top: var(--space-lg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(40, 30, 14, 0.14);
    border: 1px solid var(--clr-border);
}

.about-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.05);
    transition: filter var(--dur-slow) ease, transform var(--dur-slow) var(--ease-out);
}

.about-image:hover img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.03);
}

.about-body p {
    font-size: var(--fs-body-lg);
    color: var(--clr-text-muted);
    margin-bottom: var(--space-md);
    line-height: var(--lh-body);
}

.about-questions {
    border-left: 2px solid var(--clr-accent);
    padding-left: var(--space-md);
    margin: var(--space-lg) 0;
}

.about-questions p {
    font-family: var(--ff-serif);
    font-size: var(--fs-h3);
    font-weight: 400;
    color: var(--clr-heading);
    line-height: var(--lh-snug);
    margin-bottom: var(--space-sm);
}

/* ---------- BUSINESSES INTRO ---------- */
.businesses-intro {
    padding: var(--space-2xl) 0;
    text-align: center;
}

.big-statement {
    font-family: var(--ff-serif);
    font-size: var(--fs-h2);
    font-weight: 300;
    line-height: var(--lh-snug);
    color: var(--clr-heading);
    margin-bottom: var(--space-lg);
}

.text-muted {
    color: var(--clr-text-muted);
}

.businesses-intro-body {
    max-width: 560px;
    margin: 0 auto;
}

.businesses-intro-body p {
    font-size: var(--fs-body-lg);
    color: var(--clr-text-muted);
    margin-bottom: var(--space-xs);
}

.highlight-text {
    font-family: var(--ff-serif);
    font-size: var(--fs-h3);
    color: var(--clr-heading) !important;
    margin-top: var(--space-md) !important;
}

/* ---------- BUSINESS SECTIONS ---------- */
.business-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
}

.business-visual {
    position: relative;
    overflow: hidden;
}

.business-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.05);
    transition: filter var(--dur-slow) ease;
}

.business-section:hover .business-visual img {
    filter: grayscale(0%) contrast(1);
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(247, 242, 233, 0.3) 60%,
            rgba(247, 242, 233, 0.85) 100%);
}

.business-content {
    display: flex;
    align-items: center;
    padding: var(--space-xl) 0;
    background: var(--clr-bg);
}

.business-content .container {
    max-width: 600px;
    margin: 0;
    padding-left: var(--space-lg);
}

.business-label {
    font-size: var(--fs-xs);
    letter-spacing: 0.2em;
    color: var(--clr-accent);
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.business-name {
    font-family: var(--ff-serif);
    font-size: var(--fs-h2);
    font-weight: 300;
    color: var(--clr-heading);
    line-height: var(--lh-tight);
    margin-bottom: var(--space-xs);
}

.business-tagline {
    font-family: var(--ff-serif);
    font-size: var(--fs-body-lg);
    color: var(--clr-text-muted);
    font-style: italic;
    margin-bottom: var(--space-lg);
}

.business-body p {
    font-size: var(--fs-body);
    color: var(--clr-text-muted);
    margin-bottom: var(--space-sm);
    line-height: var(--lh-body);
}

.value-words {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: var(--space-md) 0;
    padding-left: var(--space-md);
    border-left: 2px solid var(--clr-accent);
    margin: var(--space-md) 0;
}

.value-words span {
    font-family: var(--ff-serif);
    font-size: var(--fs-h3);
    color: var(--clr-heading);
    font-weight: 400;
    line-height: var(--lh-snug);
}

.business-close {
    font-family: var(--ff-serif);
    font-size: var(--fs-body-lg);
    color: var(--clr-text-muted) !important;
}

.section-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-small);
    color: var(--clr-accent);
    letter-spacing: 0.04em;
    padding: 12px 24px;
    border: 1px solid rgba(200, 168, 114, 0.3);
    border-radius: 100px;
    margin-top: var(--space-md);
    transition: all var(--dur-fast) var(--ease-out);
    background: transparent;
    -webkit-tap-highlight-color: transparent;
}

.section-cta:hover {
    background: var(--clr-accent-soft);
    border-color: var(--clr-accent);
    gap: 14px;
}

.section-cta svg {
    transition: transform var(--dur-fast) var(--ease-out);
    flex-shrink: 0;
}

.section-cta:hover svg {
    transform: translate(3px, -3px);
}

/* ---------- MEMORIAL GALLERY ---------- */
.memorial-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: var(--space-xl);
}

.memorial-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--clr-border);
    filter: grayscale(20%) contrast(1.05);
    transition: filter var(--dur-slow) ease, transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) ease;
    box-shadow: 0 20px 60px rgba(40, 30, 14, 0.14);
}

.memorial-gallery img:hover {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.03);
    box-shadow: 0 24px 70px rgba(40, 30, 14, 0.2);
}

@media (max-width: 768px) {
    .memorial-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .memorial-gallery img {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .memorial-gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ---------- TRANSITION ---------- */
.transition-section {
    padding: var(--space-2xl) 0;
    text-align: center;
    background: var(--clr-bg-warm);
    position: relative;
    overflow: hidden;
}

.transition-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--clr-accent));
}

.transition-lead {
    font-size: var(--fs-body-lg);
    color: var(--clr-text-muted);
    margin-bottom: var(--space-md);
}

.transition-question {
    font-family: var(--ff-serif);
    font-size: var(--fs-h2);
    font-weight: 300;
    color: var(--clr-heading);
    line-height: var(--lh-snug);
}

.transition-question span {
    display: block;
    color: var(--clr-accent);
    margin-top: 8px;
}

/* ---------- ETERNAL INTRO ---------- */
.eternal-intro {
    padding: var(--space-2xl) 0;
    background: var(--clr-bg-warm);
}

.eternal-intro-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.eternal-intro-tagline {
    font-family: var(--ff-serif);
    font-size: var(--fs-body-lg);
    color: var(--clr-text-muted);
    font-style: italic;
    margin-top: var(--space-sm);
}

.eternal-intro-body {
    max-width: 680px;
    margin: 0 auto;
}

.eternal-intro-body p {
    font-size: var(--fs-body-lg);
    color: var(--clr-text-muted);
    margin-bottom: var(--space-md);
    line-height: var(--lh-body);
}

.life-stages {
    margin-bottom: var(--space-lg);
}

.life-stages>p {
    margin-bottom: var(--space-sm);
}

.stages-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: var(--space-md);
    margin: var(--space-sm) 0 var(--space-md);
}

.stages-list span {
    font-family: var(--ff-serif);
    font-size: var(--fs-h3);
    color: var(--clr-heading);
    font-weight: 300;
    opacity: 0.8;
    transition: opacity var(--dur-fast) ease;
}

.stages-list span:hover {
    opacity: 1;
}

.emphasis-text {
    color: var(--clr-heading) !important;
    font-weight: 500;
}

/* Eternal Repos Detail */
.eternal-statement {
    font-family: var(--ff-serif);
    font-size: var(--fs-h2);
    font-weight: 300;
    color: var(--clr-heading);
    line-height: var(--lh-snug);
    margin-bottom: var(--space-lg);
}

.eternal-section .value-words span {
    font-size: var(--fs-body-lg);
    font-family: var(--ff-sans);
    font-weight: 400;
    color: var(--clr-text-muted);
}

/* ---------- THREAD ---------- */
.thread-section {
    padding: var(--space-2xl) 0;
    background: var(--clr-bg);
}

.section-title {
    font-family: var(--ff-serif);
    font-size: var(--fs-h2);
    font-weight: 300;
    color: var(--clr-heading);
    line-height: var(--lh-snug);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.thread-grid {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.thread-body p {
    font-size: var(--fs-body-lg);
    color: var(--clr-text-muted);
    margin-bottom: var(--space-sm);
    line-height: var(--lh-body);
}

.thread-highlight {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    position: relative;
}

.thread-highlight::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 30%;
    right: 30%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--clr-accent), transparent);
}

.thread-highlight p {
    font-family: var(--ff-serif);
    font-size: var(--fs-h3);
    color: var(--clr-heading);
    line-height: var(--lh-snug);
    margin-bottom: var(--space-xs);
}

.thread-highlight p:last-child {
    margin-bottom: 0;
}

.thread-highlight strong {
    color: var(--clr-accent);
    font-weight: 600;
}

.thread-close {
    font-family: var(--ff-serif);
    font-size: var(--fs-body-lg);
    color: var(--clr-text-muted) !important;
    margin-top: var(--space-lg);
}

/* ---------- PHILOSOPHY ---------- */
.philosophy-section {
    padding: var(--space-2xl) 0;
    background: var(--clr-bg-warm);
    position: relative;
    overflow: hidden;
}

.philosophy-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.12;
}

.philosophy-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
}

.philosophy-section .container {
    position: relative;
    z-index: 1;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.philosophy-poem {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-lg));
}

.philosophy-poem blockquote {
    border-left: 2px solid var(--clr-accent);
    padding-left: var(--space-md);
}

.philosophy-poem blockquote p {
    font-family: var(--ff-serif);
    font-size: var(--fs-h3);
    font-weight: 300;
    color: var(--clr-heading);
    line-height: 1.6;
    margin-bottom: 4px;
}

.philosophy-body p {
    font-size: var(--fs-body-lg);
    color: var(--clr-text-muted);
    margin-bottom: var(--space-md);
    line-height: var(--lh-body);
}

.philosophy-list {
    padding-left: var(--space-md);
    margin: var(--space-sm) 0 var(--space-md);
}

.philosophy-list p {
    color: var(--clr-text) !important;
    position: relative;
    padding-left: var(--space-sm);
}

.philosophy-list p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 4px;
    height: 4px;
    background: var(--clr-accent);
    border-radius: 50%;
}

/* ---------- THINKING ---------- */
.thinking-section {
    padding: var(--space-2xl) 0;
    background: var(--clr-bg);
}

.thinking-subtitle {
    font-family: var(--ff-serif);
    font-size: var(--fs-body-lg);
    color: var(--clr-text-muted);
    text-align: center;
    font-style: italic;
    margin-bottom: var(--space-xl);
}

.thinking-grid {
    display: grid;
    grid-template-columns: 0.45fr 1fr;
    gap: var(--space-xl);
    max-width: 960px;
    margin: 0 auto;
    align-items: center;
}

.thinking-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(40, 30, 14, 0.14);
    border: 1px solid var(--clr-border);
}

.thinking-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.05);
    transition: filter var(--dur-slow) ease, transform var(--dur-slow) var(--ease-out);
}

.thinking-image:hover img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.03);
}

.thinking-content {
    display: flex;
    flex-direction: column;
}

.thinking-body p {
    font-size: var(--fs-body-lg);
    color: var(--clr-text-muted);
    margin-bottom: var(--space-md);
    line-height: var(--lh-body);
}

.linkedin-cta {
    align-self: flex-start;
    margin-top: var(--space-sm);
}

/* ---------- FOOTER ---------- */
.footer {
    padding: var(--space-2xl) 0 var(--space-lg);
    border-top: 1px solid var(--clr-border);
    text-align: center;
    background: var(--clr-bg);
}

.footer-statement {
    margin-bottom: var(--space-xl);
}

.footer-lead {
    font-family: var(--ff-serif);
    font-size: var(--fs-h3);
    font-weight: 300;
    color: var(--clr-text-muted);
    margin-bottom: var(--space-xs);
}

.footer-emphasis {
    font-family: var(--ff-serif);
    font-size: var(--fs-h2);
    font-weight: 300;
    color: var(--clr-heading);
    line-height: var(--lh-snug);
}

.footer-info {
    margin-bottom: var(--space-lg);
}

.footer-name {
    font-family: var(--ff-serif);
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    color: var(--clr-heading);
    margin-bottom: 4px;
}

.footer-companies {
    font-size: var(--fs-small);
    color: var(--clr-text-muted);
    letter-spacing: 0.06em;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.footer-link {
    font-size: var(--fs-small);
    color: var(--clr-text-muted);
    letter-spacing: 0.04em;
    padding: 10px 22px;
    border: 1px solid var(--clr-border);
    border-radius: 100px;
    transition: all var(--dur-fast) ease;
    -webkit-tap-highlight-color: transparent;
}

.footer-link:hover {
    color: var(--clr-accent);
    border-color: var(--clr-accent);
    background: var(--clr-accent-soft);
}

.footer-divider {
    color: var(--clr-text-dim);
}

.footer-copy {
    font-size: var(--fs-xs);
    color: var(--clr-text-dim);
    letter-spacing: 0.04em;
}

/* ---------- Section Numbers ---------- */
.section-number {
    display: inline-block;
    font-family: var(--ff-sans);
    font-size: var(--fs-xs);
    color: var(--clr-accent);
    letter-spacing: 0.2em;
    margin-right: var(--space-sm);
    vertical-align: middle;
    opacity: 0.8;
}

.section-title .section-number {
    display: block;
    margin-right: 0;
    margin-bottom: var(--space-sm);
    text-align: center;
}

/* ---------- Magnetic Buttons ---------- */
.magnetic {
    transition: transform 0.3s var(--ease-out);
    will-change: transform;
}

/* ---------- Tilt Effect ---------- */
.tilt-effect {
    transition: transform 0.4s var(--ease-out);
    transform-style: preserve-3d;
    will-change: transform;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(200, 168, 114, 0.3);
    background: rgba(247, 242, 233, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--clr-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--dur-med) var(--ease-out);
    z-index: 900;
    -webkit-tap-highlight-color: transparent;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--clr-accent);
    color: var(--clr-bg);
    border-color: var(--clr-accent);
    box-shadow: 0 8px 30px rgba(200, 168, 114, 0.25);
}

.back-to-top svg {
    transition: transform var(--dur-fast) var(--ease-out);
}

.back-to-top:hover svg {
    transform: translateY(-3px);
}

/* ---------- Mobile Menu Stagger ---------- */
.mobile-link {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color var(--dur-fast) ease;
    transition-delay: calc(var(--i, 0) * 0.08s);
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity var(--dur-slow) var(--ease-out),
        transform var(--dur-slow) var(--ease-out);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

.delay-4 {
    transition-delay: 0.6s;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

/* ---------- LARGE TABLETS & SMALL LAPTOPS (<=1024px) ---------- */
@media (max-width: 1024px) {
    :root {
        --nav-height: 64px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }

    .hero-portrait {
        order: -1;
    }

    .hero-body {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-meta {
        align-items: center;
    }

    .hero-cta {
        margin: 0 auto;
    }

    .portrait-frame {
        max-width: 280px;
        aspect-ratio: 1;
        border-radius: 50%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .about-headline {
        position: static;
    }

    .about-image {
        max-width: 500px;
    }

    .business-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .business-visual {
        height: 50vh;
        min-height: 280px;
        max-height: 450px;
    }

    .visual-overlay {
        background: linear-gradient(to bottom,
                transparent 0%,
                rgba(247, 242, 233, 0.4) 60%,
                rgba(247, 242, 233, 1) 100%);
    }

    .business-content {
        padding: var(--space-lg) 0;
    }

    .business-content .container {
        padding-left: clamp(1.25rem, 5vw, 3rem);
        padding-right: clamp(1.25rem, 5vw, 3rem);
        max-width: var(--max-width);
        margin: 0 auto;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .philosophy-poem {
        position: static;
    }

    .thinking-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .thinking-image {
        max-width: 360px;
        margin: 0 auto;
    }

    .linkedin-cta {
        align-self: center;
    }
}

/* ---------- TABLETS (<=768px) ---------- */
@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding-top: calc(var(--nav-height) + var(--space-sm));
        padding-bottom: var(--space-md);
    }

    .hero-headline {
        font-size: clamp(2.2rem, 9vw, 3.5rem);
    }

    .portrait-frame {
        max-width: 220px;
    }

    .hero-scroll-indicator {
        bottom: 20px;
    }

    .scroll-line {
        height: 40px;
    }

    /* About */
    .about-questions {
        padding-left: var(--space-sm);
        margin: var(--space-md) 0;
    }

    .about-questions p {
        font-size: var(--fs-body-lg);
    }

    .about-image {
        max-width: 100%;
    }

    /* Business sections */
    .business-visual {
        height: 40vh;
        min-height: 250px;
        max-height: 350px;
    }

    .value-words {
        padding-left: var(--space-sm);
    }

    .value-words span {
        font-size: var(--fs-body-lg) !important;
    }

    /* Transition */
    .transition-section::before {
        height: 50px;
    }

    /* Eternal intro */
    .stages-list {
        padding-left: var(--space-sm);
    }

    .stages-list span {
        font-size: var(--fs-body-lg);
    }

    /* Thread */
    .thread-highlight {
        padding: var(--space-md);
        border-radius: 12px;
    }

    .thread-highlight p {
        font-size: var(--fs-body-lg);
    }

    /* Philosophy */
    .philosophy-poem blockquote {
        padding-left: var(--space-sm);
    }

    .philosophy-poem blockquote p {
        font-size: var(--fs-body-lg);
    }

    .philosophy-list {
        padding-left: var(--space-sm);
    }

    /* Thinking */
    .thinking-image {
        max-width: 280px;
    }

    .thinking-body {
        text-align: center;
    }

    .linkedin-cta {
        align-self: center;
    }

    /* Footer */
    .footer-links {
        gap: var(--space-xs);
    }

    .footer-divider {
        display: none;
    }

    .footer-link {
        padding: 10px 18px;
        font-size: var(--fs-xs);
    }
}

/* ---------- SMALL PHONES (<=480px) ---------- */
@media (max-width: 480px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    :root {
        --nav-height: 56px;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .hero-inner {
        gap: var(--space-md);
    }

    .hero-eyebrow {
        font-size: 0.6rem;
        letter-spacing: 0.2em;
        margin-bottom: var(--space-sm);
    }

    .hero-headline {
        font-size: clamp(2rem, 10vw, 2.8rem);
        margin-bottom: var(--space-md);
    }

    .hero-body p {
        font-size: var(--fs-body);
    }

    .portrait-frame {
        max-width: 180px;
        box-shadow: 0 20px 40px rgba(40, 30, 14, 0.14);
    }

    .hero-scroll-indicator {
        display: none;
    }

    /* About */
    .about-headline {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }

    .about-body p {
        font-size: var(--fs-body);
    }

    .about-questions p {
        font-size: var(--fs-body);
    }

    /* Big statement */
    .big-statement {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }

    .businesses-intro-body p {
        font-size: var(--fs-body);
    }

    .highlight-text {
        font-size: var(--fs-body-lg) !important;
    }

    /* Business sections */
    .business-visual {
        height: 35vh;
        min-height: 200px;
        max-height: 300px;
    }

    .business-name {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }

    .business-body p {
        font-size: var(--fs-small);
    }

    .value-words {
        gap: 4px;
        padding: var(--space-sm) 0;
        padding-left: var(--space-sm);
        margin: var(--space-sm) 0;
    }

    .value-words span {
        font-size: var(--fs-body) !important;
    }

    .section-cta {
        font-size: var(--fs-xs);
        padding: 10px 20px;
    }

    /* Transition */
    .transition-question {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }

    .transition-section::before {
        height: 40px;
    }

    /* Eternal intro */
    .stages-list span {
        font-size: var(--fs-body);
    }

    .eternal-intro-body p {
        font-size: var(--fs-body);
    }

    /* Eternal statement */
    .eternal-statement {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }

    /* Thread */
    .thread-highlight {
        padding: var(--space-sm);
    }

    .thread-highlight p {
        font-size: var(--fs-body);
    }

    .thread-body p {
        font-size: var(--fs-body);
    }

    /* Philosophy */
    .philosophy-poem blockquote p {
        font-size: var(--fs-body);
    }

    .philosophy-body p {
        font-size: var(--fs-body);
    }

    /* Thinking */
    .thinking-image {
        max-width: 220px;
    }

    .thinking-body p {
        font-size: var(--fs-body);
    }

    /* Footer */
    .footer-lead {
        font-size: var(--fs-body-lg);
    }

    .footer-emphasis {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .footer-link {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

/* ---------- VERY SMALL PHONES (<=360px) ---------- */
@media (max-width: 360px) {
    .container {
        padding: 0 1rem;
    }

    .nav {
        padding: 0 1rem;
    }

    .hero-headline {
        font-size: 1.8rem;
    }

    .portrait-frame {
        max-width: 150px;
    }

    .hero-meta {
        gap: 2px;
    }

    .hero-role {
        font-size: 0.65rem;
    }

    .hero-companies {
        font-size: 0.85rem;
    }

    .mobile-link {
        font-size: 1.4rem;
    }

    .section-cta {
        padding: 8px 16px;
        font-size: 0.7rem;
    }

    .footer-emphasis {
        font-size: 1.3rem;
    }
}

/* ---------- Landscape Phones ---------- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + var(--space-sm));
        padding-bottom: var(--space-sm);
    }

    .hero-inner {
        grid-template-columns: 1fr 0.5fr;
        text-align: left;
        gap: var(--space-md);
    }

    .hero-portrait {
        order: 0;
    }

    .hero-meta {
        align-items: flex-start;
    }

    .hero-cta {
        margin: 0;
    }

    .portrait-frame {
        max-width: 150px;
        border-radius: 50%;
        aspect-ratio: 1;
    }

    .hero-headline {
        font-size: 2rem;
        margin-bottom: var(--space-sm);
    }

    .hero-body p {
        font-size: var(--fs-small);
        margin-bottom: 2px;
    }

    .hero-scroll-indicator {
        display: none;
    }
}

/* ---------- TOUCH DEVICE INTERACTIONS ---------- */
@media (hover: none) {
    .cursor-glow {
        display: none;
    }

    .magnetic {
        transform: none !important;
    }

    .tilt-effect {
        transform: none !important;
    }

    .portrait-frame img {
        filter: grayscale(0%) contrast(1);
    }

    .about-image img {
        filter: grayscale(0%) contrast(1);
    }

    .thinking-image img {
        filter: grayscale(0%) contrast(1);
    }

    .business-visual img {
        filter: grayscale(0%) contrast(1);
    }
}

/* ---------- PREFERS REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-up {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ---------- Smooth Grain Texture ---------- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}
/* ---------- CREATIVES CAROUSEL ---------- */
.creatives-section {
    padding: var(--space-2xl) 0 var(--space-xl);
    background: var(--clr-bg-warm);
    overflow: hidden;
}
.creatives-header { margin-bottom: var(--space-xl); }
.creatives-sub {
    color: var(--clr-text-muted);
    max-width: 44ch;
    margin-top: var(--space-sm);
    font-size: var(--fs-body-lg);
    font-family: var(--ff-serif);
    font-style: italic;
}
.carousel {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.carousel-track {
    display: flex;
    gap: clamp(16px, 2vw, 28px);
    width: max-content;
    padding: 10px clamp(1.25rem, 5vw, 3rem);
    animation: creativesScroll 55s linear infinite;
}
.carousel:hover .carousel-track { animation-play-state: paused; }
.carousel-card {
    flex: 0 0 auto;
    width: clamp(230px, 23vw, 310px);
    aspect-ratio: 4 / 5;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--clr-border);
    box-shadow: 0 20px 60px rgba(40, 30, 14, 0.14);
    background: var(--clr-bg-card);
}
.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--dur-slow) var(--ease-out);
}
.carousel-card:hover img { transform: scale(1.04); }
@keyframes creativesScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .carousel-track { animation: none; }
    .carousel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
