/* ==========================================================================
   Variables & Base Styles
   ========================================================================== */
:root {
    /* Color Palette - Coolors Gradient */
    --color-background: #F7F6F2;
    /* Start color - White/Cream */
    --color-bg-alt: #DDE2DB;
    /* Mid light green */
    --color-primary: #5F7A65;
    /* End color - Sage/Olive Dark Green */
    --color-primary-light: #9BACA0;
    /* Mid green */
    --color-primary-dark: #3F5243;

    /* Text Colors */
    --color-text-main: #2D3A30;
    /* Very dark green for readability */
    --color-text-muted: #5C6A60;
    --color-text-light: #F7F6F2;

    /* Typography */
    --font-heading: 'Lora', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --border-radius: 8px;
    --border-radius-lg: 16px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary-dark);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

main {
    overflow: clip;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 122, 101, 0.3);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(247, 246, 242, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo-img {
    height: 68px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    vertical-align: middle;
    transition: var(--transition-normal);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--color-primary);
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-primary-dark);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 180px 5% 120px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-background);
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    width: min(100%, 800px);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-md);
    line-height: 1.08;
}

.hero-title-line {
    display: block;
}

.hero-portrait-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.hero-portrait-frame {
    width: min(100%, 440px);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: anywhere;
}

.hero-shape {
    position: absolute;
    right: -10%;
    top: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-bg-alt) 0%, rgba(247, 246, 242, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.6;
}

/* ==========================================================================
   General Sections
   ========================================================================== */
.section {
    padding: var(--spacing-xl) 0;
}

.bg-secondary {
    background-color: var(--color-bg-alt);
}

.section-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.section-container.reverse {
    flex-direction: row-reverse;
}

.section-text {
    flex: 1;
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

/* Add a delicate underline accent to section headings */
.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.text-center .section-heading::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtext {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

.section-intro {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-end;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.split-intro {
    gap: 2rem;
}

.profile-link {
    font-weight: 600;
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.profile-link:hover {
    color: var(--color-primary);
}

.eyebrow {
    margin: 0 0 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Image Placeholders */
.section-image {
    flex: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.section-image-featured {
    box-shadow: none;
}

.about-container {
    max-width: 840px;
}

.about-text {
    flex: none;
    width: 100%;
    text-align: center;
}

.placeholder-image {
    background-color: var(--color-primary-light);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.placeholder-image.alt {
    background-color: var(--color-primary);
}

.portrait-shell {
    position: relative;
    height: 540px;
    padding: 1.2rem;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.75), transparent 30%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.9), rgba(221, 226, 219, 0.9));
    border-radius: 32% 68% 59% 41% / 36% 30% 70% 64%;
    box-shadow: 0 26px 70px rgba(63, 82, 67, 0.16);
}

.portrait-shell-featured {
    display: block;
    overflow: hidden;
}

.portrait-media-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 40% 60% 44% 56% / 56% 32% 68% 44%;
}

.portrait-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.portrait-shell::before {
    content: '';
    position: absolute;
    inset: 3%;
    border: 1px solid rgba(95, 122, 101, 0.2);
    border-radius: 40% 60% 44% 56% / 56% 32% 68% 44%;
}

.portrait-shell-alt {
    border-radius: 57% 43% 31% 69% / 39% 56% 44% 61%;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.42), transparent 28%),
        linear-gradient(145deg, rgba(95, 122, 101, 0.16), rgba(255, 255, 255, 0.92));
}

.portrait-glow {
    position: absolute;
    width: 160px;
    height: 160px;
    right: -18px;
    top: -18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(155, 172, 160, 0.58), rgba(155, 172, 160, 0));
    z-index: 0;
}

.portrait-shell-copy {
    align-items: stretch;
    justify-content: flex-end;
    text-align: left;
    color: var(--color-primary-dark);
}

.portrait-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.9rem;
    width: 100%;
    height: 100%;
    padding: 2rem;
    border-radius: 26% 74% 47% 53% / 51% 33% 67% 49%;
    background:
        linear-gradient(180deg, rgba(247, 246, 242, 0.28), rgba(247, 246, 242, 0.95) 58%),
        radial-gradient(circle at top right, rgba(155, 172, 160, 0.24), transparent 28%);
}

.portrait-copy-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(95, 122, 101, 0.14);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portrait-copy h3 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.portrait-copy p {
    margin: 0;
    max-width: 28ch;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Cards (Specialties)
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.card {
    background-color: #ffffff;
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition-normal);
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-bottom-color: var(--color-primary);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* ==========================================================================
   Instagram Feed
   ========================================================================== */
.articles-section {
    background: linear-gradient(180deg, rgba(221, 226, 219, 0.35), rgba(247, 246, 242, 0.9));
}

.carousel-hint {
    margin: 0.25rem 0 1.1rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.articles-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.articles-feed-frame {
    flex: 1;
    overflow: hidden;
    padding: 0 0.35rem;
}

.articles-grid {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.35rem;
    scrollbar-width: none;
    cursor: grab;
    padding: 0.15rem 0.35rem 0.75rem;
    scroll-behavior: smooth;
    touch-action: pan-y pinch-zoom;
    --drag-offset: 0px;
    --carousel-progress: 0;
}

.articles-grid::-webkit-scrollbar {
    display: none;
}

.articles-grid.is-dragging {
    cursor: grabbing;
}

.article-card {
    flex: 0 0 calc((100% - 2.5rem) / 3.25);
    min-width: 0;
    scroll-snap-align: center;
    background: #ffffff;
    border-radius: 22px;
    padding: 1rem;
    display: grid;
    gap: 0.85rem;
    box-shadow: 0 16px 32px rgba(45, 58, 48, 0.08);
    border: 1px solid rgba(95, 122, 101, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease;
    transform: translateX(calc(var(--drag-offset) * 0.35)) scale(0.985);
    opacity: 0.92;
}

.articles-grid .article-card:first-child {
    margin-left: max(0px, calc(7.5% - 0.35rem));
}

.articles-grid .article-card:last-child {
    margin-right: max(0px, calc(7.5% - 0.35rem));
}

.articles-grid:not(.is-dragging) .article-card {
    transform: translateX(0) scale(1);
}

.articles-grid.is-dragging .article-card {
    transition-duration: 0.08s;
}

.articles-grid.is-dragging .article-card:nth-child(odd) {
    transform: translateX(calc(var(--drag-offset) * 0.42)) rotate(-0.35deg) scale(0.987);
}

.articles-grid.is-dragging .article-card:nth-child(even) {
    transform: translateX(calc(var(--drag-offset) * 0.3)) rotate(0.35deg) scale(0.982);
}

.articles-grid.is-dropped .article-card {
    transition-duration: 0.18s;
}

.articles-grid .article-card:hover {
    box-shadow: 0 20px 38px rgba(45, 58, 48, 0.12);
}

.article-image {
    aspect-ratio: 4 / 4.2;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(155, 172, 160, 0.25), rgba(221, 226, 219, 0.45));
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    display: grid;
    gap: 0.8rem;
    padding: 0.15rem 0.15rem 0.25rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.92rem;
    color: var(--color-text-muted);
}

.article-preview {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 500;
    color: var(--color-primary-dark);
}

.article-card p {
    margin: 0;
    color: var(--color-text-muted);
}

.article-tag {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    font-weight: 700;
}

.article-link {
    font-weight: 600;
    color: var(--color-primary);
}

.article-link:hover {
    color: var(--color-primary-dark);
}

.article-nav {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(63, 82, 67, 0.92);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(45, 58, 48, 0.18);
    transition: transform var(--transition-fast), opacity var(--transition-fast), background-color var(--transition-fast);
}

.article-nav:hover:not(:disabled) {
    transform: translateY(-2px);
    background: rgba(63, 82, 67, 1);
}

.article-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.skeleton {
    min-height: 280px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.55);
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.8s infinite;
}

@keyframes shimmer {
    to {
        transform: translateX(100%);
    }
}

.ig-feed-wrapper {
    position: relative;
    margin-top: var(--spacing-lg);
    padding: 0 3.75rem;
}

.ig-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(33.333% - 1rem);
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
}

.ig-carousel::-webkit-scrollbar {
    display: none;
}

.ig-card {
    scroll-snap-align: start;
    min-width: 0;
}

.ig-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(45, 58, 48, 0.08);
    border: 1px solid rgba(95, 122, 101, 0.12);
}

.ig-card-image {
    position: relative;
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, rgba(155, 172, 160, 0.35), rgba(221, 226, 219, 0.65));
    overflow: hidden;
}

.ig-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ig-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1rem 1.15rem;
    text-align: left;
    min-height: 220px;
}

.ig-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ig-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(95, 122, 101, 0.15);
}

.ig-username {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    word-break: break-word;
}

.ig-caption-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: auto;
}

.ig-caption {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    word-break: break-word;
}

.ig-caption.is-expanded {
    display: block;
    -webkit-line-clamp: initial;
    line-clamp: initial;
    overflow: visible;
}

.ig-more {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
}

.ig-more:hover {
    color: var(--color-primary-dark);
}

.ig-nav {
    position: absolute;
    top: 44%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(63, 82, 67, 0.92);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 2rem;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(45, 58, 48, 0.18);
}

.ig-prev {
    left: 0;
}

.ig-next {
    right: 0;
}

.ig-loading,
.ig-error,
.ig-empty {
    grid-column: 1 / -1;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    text-align: center;
    color: var(--color-text-muted);
}

.ig-status-meta {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: rgba(45, 58, 48, 0.6);
}

.ig-spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(95, 122, 101, 0.2);
    border-top-color: var(--color-primary);
    animation: ig-spin 0.9s linear infinite;
    margin-bottom: 0.75rem;
}

@keyframes ig-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-heading {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

/* Removes the underline from footer heading if you added it globally */
.footer-heading::after {
    display: none;
}

.footer-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.footer-text {
    margin-bottom: 2rem;
    color: rgba(247, 246, 242, 0.8);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.contact-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(247, 246, 242, 0.6);
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a:hover {
    color: var(--color-text-light);
}

.footer-version {
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media screen and (max-width: 968px) {
    .section {
        padding: 5rem 0;
    }

    .section-container,
    .section-container.reverse {
        flex-direction: column;
        text-align: center;
    }

    .section-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .placeholder-image {
        width: 100%;
        height: 400px;
    }

    .ig-feed-wrapper {
        padding: 0 3rem;
    }

    .article-card {
        flex-basis: calc((100% - 1.25rem) / 2.2);
    }
}

@media screen and (max-width: 768px) {
    .container {
        width: min(100% - 2rem, 1200px);
    }

    .nav-container {
        padding: 0.8rem 1.25rem;
        gap: 1rem;
    }

    .nav-logo {
        font-size: 1.2rem;
        max-width: calc(100% - 56px);
    }

    .nav-logo-img {
        height: 54px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 64px;
        flex-direction: column;
        background-color: var(--color-background);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        padding: 1.5rem 1.25rem 2rem;
        gap: 0.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        min-height: auto;
        padding: 120px 1rem 72px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(2.1rem, 11vw, 3.3rem);
        line-height: 1.06;
        max-width: 18ch;
        margin-inline: auto;
    }

    .hero-title-line {
        white-space: nowrap;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 34ch;
        margin-bottom: 2rem;
    }

    .hero-shape {
        width: 360px;
        height: 360px;
        right: -38%;
        top: 12%;
        opacity: 0.45;
    }

    .section-heading {
        font-size: 2rem;
    }

    .section-subtext {
        font-size: 1rem;
    }

    .section-text {
        width: 100%;
    }

    .section-text p,
    .section-text li {
        max-width: 36ch;
        margin-inline: auto;
        overflow-wrap: anywhere;
    }

    .hero-portrait-wrap {
        margin-top: 2rem;
    }

    .placeholder-image {
        height: 320px;
    }

    .portrait-shell {
        height: 420px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 2rem 1.25rem;
    }

    .contact-link {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1rem;
        text-align: center;
        flex-wrap: wrap;
    }

    .articles-shell {
        gap: 0.25rem;
    }

    .article-card {
        flex-basis: 84%;
        min-width: 84%;
    }

    .article-nav {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 1.5rem;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .section {
        padding: 4rem 0;
    }

    .hero {
        padding-top: 104px;
    }

    .hero-title {
        font-size: clamp(1.55rem, 9.8vw, 2.25rem);
        max-width: 18ch;
    }

    .hero-title-line {
        white-space: normal;
    }

    .hero-title-line:nth-child(1),
    .hero-title-line:nth-child(2),
    .hero-title-line:nth-child(3) {
        display: block;
    }

    .section-heading {
        font-size: 1.75rem;
    }

    .btn {
        width: 100%;
        max-width: 320px;
    }

    .carousel-hint {
        font-weight: 700;
    }

    .carousel-hint::after {
        content: " ->";
    }

    .article-nav {
        display: none;
    }

    .articles-feed-frame {
        padding-inline: 0;
    }

    .articles-grid {
        padding-inline: 0.75rem;
        gap: 0.9rem;
    }

    .article-card {
        flex-basis: 86%;
        min-width: 86%;
    }

    .portrait-shell {
        height: 360px;
        padding: 0.9rem;
    }
}

/* ==========================================================================
   Services List
   ========================================================================== */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.service-item {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background-color: rgba(95, 122, 101, 0.06);
    border-left: 4px solid var(--color-primary);
    transition: var(--transition-normal);
}

.service-item:hover {
    background-color: rgba(95, 122, 101, 0.10);
    transform: translateX(4px);
}

.service-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.service-title i {
    color: var(--color-primary);
    font-size: 1rem;
}

.service-desc {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Specialties grid: 2 cols on tablet */
@media screen and (max-width: 968px) and (min-width: 601px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   v.0.0.5 Enhancements
   ========================================================================== */
.section-text strong {
    color: var(--color-primary-dark);
    font-weight: 600;
}

.card {
    position: relative;
    padding-bottom: 4rem; /* Make room for arrow */
}

.card-arrow {
    position: absolute;
    bottom: 2rem;
    right: 2.5rem;
    color: var(--color-primary);
    font-size: 1.25rem;
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.btn-primary:hover .btn-icon {
    transform: translateX(5px);
}



/* === Warm Neuropsychology Theme v2 === */
:root {
    /* Palette sampled visually from hero2.jpg: warm brown + brain ivory */
    --color-background: #2B1D18;
    --color-bg-alt: #3A2922;
    --color-primary: #E7D6B4;
    --color-primary-light: #F2E7D0;
    --color-primary-dark: #C8AD7F;
    --color-text-main: #F4EBDD;
    --color-text-muted: #CDBEAA;
    --color-text-light: #FFF8EB;
}

html {
    background: #2B1D18;
}

body {
    background:
        radial-gradient(circle at 18% 8%, rgba(231, 214, 180, 0.07), transparent 30%),
        radial-gradient(circle at 82% 20%, rgba(200, 173, 127, 0.07), transparent 32%),
        linear-gradient(180deg, #2B1D18 0%, #33231D 54%, #241713 100%);
    color: var(--color-text-main);
}

h1, h2, h3, h4, h5, h6 {
    color: #F4EBDD;
    letter-spacing: -0.02em;
}

p,
.section-subtext,
.card-text,
.service-desc,
.article-card p,
.ig-caption,
.ig-status-meta {
    color: #CDBEAA;
}

.navbar {
    background: rgba(43, 29, 24, 0.88);
    border-bottom: 1px solid rgba(231, 214, 180, 0.14);
    box-shadow: 0 12px 34px rgba(12, 7, 5, 0.30);
    backdrop-filter: blur(18px);
}

.nav-logo,
.nav-link {
    color: #F4EBDD;
}

.nav-link:hover,
.nav-logo:hover,
.article-link,
.ig-more {
    color: #E7D6B4;
}

.nav-link::after,
.bar {
    background: linear-gradient(90deg, #E7D6B4, #C8AD7F);
}

.nav-logo-img {
    mix-blend-mode: normal;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(231, 214, 180, 0.22);
}

.hero {
    background:
        radial-gradient(circle at 50% 22%, rgba(231, 214, 180, 0.09), transparent 31%),
        radial-gradient(circle at 76% 42%, rgba(200, 173, 127, 0.08), transparent 36%),
        linear-gradient(180deg, #2B1D18 0%, #35251E 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.13;
    background-image:
        linear-gradient(rgba(231, 214, 180, 0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(231, 214, 180, 0.13) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.66), transparent 84%);
}

.hero-title {
    color: #F4EBDD;
    text-shadow: 0 0 26px rgba(231, 214, 180, 0.08);
}

.hero-title-line:nth-child(2) {
    color: #E7D6B4;
}

.hero-shape {
    background: radial-gradient(circle, rgba(231, 214, 180, 0.13), rgba(200, 173, 127, 0.05) 48%, transparent 72%);
    filter: blur(10px);
    opacity: 0.75;
}

.btn-primary {
    background: #E7D6B4;
    color: #2B1D18;
    font-weight: 700;
    border: 1px solid rgba(255, 248, 235, 0.16);
    box-shadow: 0 12px 30px rgba(8, 5, 4, 0.24);
}

.btn-primary:hover {
    background: #F2E7D0;
    color: #241713;
    box-shadow: 0 14px 34px rgba(8, 5, 4, 0.32);
}

.bg-secondary,
.articles-section {
    background: linear-gradient(180deg, rgba(58, 41, 34, 0.92), rgba(43, 29, 24, 0.96));
    border-top: 1px solid rgba(231, 214, 180, 0.08);
    border-bottom: 1px solid rgba(231, 214, 180, 0.08);
}

.section-heading::after {
    background: linear-gradient(90deg, #E7D6B4, #C8AD7F);
}

.card,
.article-card,
.ig-card-link,
.service-item {
    background: linear-gradient(180deg, rgba(70, 49, 40, 0.84), rgba(49, 33, 28, 0.94));
    border: 1px solid rgba(231, 214, 180, 0.13);
    box-shadow: 0 18px 42px rgba(10, 6, 4, 0.28);
    backdrop-filter: blur(9px);
}

.card:hover,
.article-card:hover,
.ig-card-link:hover,
.service-item:hover {
    border-color: rgba(231, 214, 180, 0.40);
    box-shadow: 0 22px 50px rgba(10, 6, 4, 0.36);
}

.card-title,
.service-title,
.article-preview,
.ig-username,
.section-text strong {
    color: #F4EBDD;
}

.card-icon,
.card-arrow,
.service-title i,
.article-link,
.ig-more {
    color: #E7D6B4;
}

.service-item {
    border-left: 3px solid #C8AD7F;
}

.portrait-shell,
.portrait-shell-alt {
    background:
        radial-gradient(circle at 24% 18%, rgba(231, 214, 180, 0.16), transparent 30%),
        linear-gradient(145deg, rgba(78, 53, 43, 0.94), rgba(43, 29, 24, 0.98));
    box-shadow:
        0 28px 70px rgba(10, 6, 4, 0.40),
        0 0 0 1px rgba(231, 214, 180, 0.16) inset;
}

.portrait-shell::before {
    border-color: rgba(231, 214, 180, 0.24);
}

.portrait-glow {
    background: radial-gradient(circle, rgba(231, 214, 180, 0.34), rgba(200, 173, 127, 0.10) 46%, transparent 72%);
}

.hero-portrait-frame {
    width: min(100%, 360px);
}

.hero-portrait-frame .portrait-shell {
    height: 360px;
    padding: 0;
    border-radius: 50%;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.hero-portrait-frame .portrait-shell::before {
    display: none;
}

.hero-portrait-frame .portrait-media-frame {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: #2B1D18;
    box-shadow:
        0 0 0 1px rgba(231, 214, 180, 0.28),
        0 18px 50px rgba(10, 6, 4, 0.42);
}

.hero-face-only {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 27%;
    transform: scale(1.95);
    transform-origin: 50% 30%;
    mix-blend-mode: multiply;
    filter: contrast(1.03) saturate(0.94) brightness(1.08);
    mask-image: radial-gradient(ellipse 43% 48% at 50% 40%, #000 54%, rgba(0,0,0,.94) 62%, transparent 74%);
    -webkit-mask-image: radial-gradient(ellipse 43% 48% at 50% 40%, #000 54%, rgba(0,0,0,.94) 62%, transparent 74%);
}

.article-image,
.ig-card-image {
    background: linear-gradient(135deg, rgba(231, 214, 180, 0.10), rgba(200, 173, 127, 0.11)), #3A2922;
}

.article-nav,
.ig-nav {
    background: #3A2922;
    color: #E7D6B4;
    border: 1px solid rgba(231, 214, 180, 0.20);
    box-shadow: 0 12px 28px rgba(10, 6, 4, 0.34);
}

.article-nav:hover:not(:disabled),
.ig-nav:hover {
    background: #4A342A;
}

.contact-link {
    background: rgba(58, 41, 34, 0.80);
    border: 1px solid rgba(231, 214, 180, 0.14);
    color: #F4EBDD;
}

.contact-link:hover {
    background: rgba(74, 52, 42, 0.95);
    border-color: rgba(231, 214, 180, 0.34);
}

.footer {
    background:
        radial-gradient(circle at 50% -10%, rgba(231, 214, 180, 0.08), transparent 36%),
        linear-gradient(180deg, #2B1D18 0%, #1C120F 100%);
    border-top: 1px solid rgba(231, 214, 180, 0.10);
}

.footer-heading,
.footer-links a:hover,
.social-links a:hover {
    color: #E7D6B4;
}

.footer-text,
.footer-bottom {
    color: #CDBEAA;
}

.footer-bottom {
    border-top-color: rgba(231, 214, 180, 0.10);
}

@media screen and (max-width: 768px) {
    .nav-menu {
        background: rgba(43, 29, 24, 0.98);
        border-top: 1px solid rgba(231, 214, 180, 0.10);
    }

    .hero-portrait-frame .portrait-shell {
        height: 310px;
    }

    .hero-portrait-frame .portrait-media-frame {
        width: 260px;
        height: 260px;
    }

    .hero-face-only {
        transform: scale(1.9);
        object-position: 50% 28%;
    }
}


/* === Editorial Brown Theme v3 === */
:root {
    --font-heading: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-body: 'Inter', sans-serif;
    --color-background: #17120F;
}

html,
body {
    background: #17120F;
}

body {
    color: var(--color-text-main);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: -0.025em;
}

.hero-title {
    font-weight: 500;
    letter-spacing: -0.035em;
}

.section-heading,
.card-title,
.service-title,
.article-preview,
.footer-heading {
    font-family: var(--font-heading);
}

.nav-logo {
    font-family: var(--font-body);
    gap: 0;
}

.navbar {
    background: rgba(23, 18, 15, 0.92);
}

.hero,
.section,
.bg-secondary,
.articles-section {
    background: #17120F;
}

.hero::before {
    background-image:
        linear-gradient(rgba(231, 214, 180, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(231, 214, 180, 0.08) 1px, transparent 1px);
}

.hero-shape {
    background: radial-gradient(circle, rgba(231, 214, 180, 0.10), rgba(23, 18, 15, 0) 72%);
}

.card,
.article-card,
.ig-card-link,
.service-item {
    background: #211915;
}

.portrait-shell,
.portrait-shell-alt {
    background:
        radial-gradient(circle at 24% 18%, rgba(231, 214, 180, 0.11), transparent 30%),
        #211915;
}

.hero-portrait-frame .portrait-media-frame {
    background: #17120F;
}

.article-image,
.ig-card-image {
    background: #211915;
}

.article-nav,
.ig-nav,
.contact-link {
    background: #211915;
}

.footer {
    background: #17120F;
}

@media screen and (max-width: 768px) {
    .nav-menu {
        background: rgba(23, 18, 15, 0.985);
    }
}


/* === Scroll Reveal + Instagram Fix v4 === */
.nav-logo {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: -0.025em;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 1.45s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

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

.article-card.reveal {
    transition:
        opacity 1.45s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s ease;
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .article-card.reveal {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}


/* === Mobile Polish + Reversible Reveal v5 === */

/* Slow, reversible reveal in both scroll directions. */
.reveal {
    opacity: 0;
    translate: 0 42px;
    transition:
        opacity 2.4s cubic-bezier(0.16, 1, 0.3, 1),
        translate 2.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, translate;
}

.reveal.visible {
    opacity: 1;
    translate: 0 0;
}

.article-card.reveal {
    transition:
        opacity 2.4s cubic-bezier(0.16, 1, 0.3, 1),
        translate 2.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.28s ease;
}

/* Instagram cards: image-led layout, without account label. */
.article-tag {
    display: none !important;
}

.article-card {
    padding: 0.72rem;
    gap: 0.55rem;
}

.article-link-wrapper {
    width: 100%;
}

.article-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    border-radius: 18px;
}

.article-image img {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    object-fit: cover;
    object-position: center center;
}

.article-body {
    gap: 1rem;
    padding: 0.9rem 0.45rem 0.55rem;
}

.article-preview {
    font-size: 1.15rem;
    line-height: 1.42;
}

/* Keep the card's Instagram image visually centered on phones. */
@media screen and (max-width: 768px) {
    .articles-feed-frame {
        width: 100%;
        padding-inline: 0;
    }

    .articles-grid {
        gap: 1rem;
        padding: 0.25rem 6vw 1rem;
        scroll-padding-inline: 6vw;
    }

    .article-card {
        flex: 0 0 min(88vw, 420px);
        min-width: min(88vw, 420px);
        max-width: min(88vw, 420px);
        padding: 0.62rem;
        border-radius: 24px;
        scroll-snap-align: center;
    }

    .articles-grid .article-card:first-child,
    .articles-grid .article-card:last-child {
        margin-left: 0;
        margin-right: 0;
    }

    .article-image {
        width: 100%;
        aspect-ratio: 1 / 1;
        border-radius: 19px;
    }

    .article-body {
        padding: 0.9rem 0.35rem 0.55rem;
    }
}

@media screen and (max-width: 480px) {
    .articles-grid {
        padding-inline: 5vw;
        scroll-padding-inline: 5vw;
    }

    .article-card {
        flex-basis: 90vw;
        min-width: 90vw;
        max-width: 90vw;
    }

    .article-preview {
        font-size: 1.08rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .article-card.reveal {
        opacity: 1;
        translate: none;
        transition: none;
        will-change: auto;
    }
}


/* === Real Instagram Grid v6 === */
.article-image {
    aspect-ratio: 4 / 5;
    display: grid;
    place-items: center;
    background: #17120F;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

@media screen and (max-width: 768px) {
    .article-image {
        aspect-ratio: 4 / 5;
    }

    .article-image img {
        object-fit: contain;
        object-position: center center;
    }
}
