/* ============================================
   T.FINCH - Strategic Brand Consultancy
   Brand Colors: Cyan #00ABBE | Amber #FDBA56 | Black #191919
   ============================================ */

/* ===== CSS Variables ===== */
:root {
    --cyan: #00ABBE;
    --cyan-dark: #008A9A;
    --cyan-light: #E6F7F9;
    --amber: #FDBA56;
    --amber-light: #FFF4E0;
    --black: #191919;
    --dark: #2D2D2D;
    --text: #4A4A4A;
    --text-light: #7A7A7A;
    --text-muted: #9B9B9B;
    --border: #E8E8E8;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --white: #FFFFFF;

    --font-primary: 'Segoe UI Variable', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    --font-serif: 'DM Serif Display', 'Georgia', 'Times New Roman', serif;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s ease;
    --container-width: 1280px;
    --section-padding: 120px;
    --section-padding-mobile: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

::selection {
    background-color: var(--cyan);
    color: var(--white);
}

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

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

ul, ol {
    list-style: none;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== Page Loader ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    width: 120px;
}

.loader-bar {
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: var(--cyan);
    animation: loaderSlide 1s ease-in-out infinite;
}

@keyframes loaderSlide {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* ===== Floating Pill Navbar (Top Center) ===== */
.site-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floating-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 8px 8px 16px;
    background: var(--cyan);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.20),
                0 2px 8px rgba(0, 0, 0, 0.14),
                inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1002;
}

.floating-pill:hover {
    background: var(--cyan-dark);
}

/* Pill Logo */
.pill-logo {
    display: flex;
    align-items: center;
    padding: 0 4px;
    flex-shrink: 0;
    max-width: 120px;
    opacity: 1;
    overflow: hidden;
    transition: max-width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease,
                padding 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                margin 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pill-logo-img {
    height: 24px;
    width: auto;
}

/* Navbar hides its logo while the hero section is in view */
.site-header.hero-visible .pill-logo {
    max-width: 0;
    opacity: 0;
    padding: 0;
    margin-left: -6px;
    pointer-events: none;
}

/* Pill Menu Button */
.pill-menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pill-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
}

.pill-menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 16px;
    position: relative;
}

.pill-bar {
    display: block;
    width: 100%;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

/* X icon when open */
.pill-menu-toggle.active .pill-bar:first-child {
    transform: rotate(45deg) translate(1.5px, 1.5px);
}

.pill-menu-toggle.active .pill-bar:last-child {
    transform: rotate(-45deg) translate(1.5px, -1.5px);
}

.pill-menu-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.01em;
}

/* Pill CTA */
.pill-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: var(--white);
    color: var(--cyan-dark);
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.25s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.pill-cta:hover {
    background: var(--black);
    color: var(--white);
    transform: scale(1.03);
}

/* ===== Menu Popup Card ===== */
.menu-card {
    position: absolute;
    top: calc(100%);
    left: 50%;
    transform: translateX(-50%) translateY(8px) scale(0.96);
    width: 420px;
    background: #F5F1EB;
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25),
                0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 1001;
    transform-origin: top center;
}

.menu-card.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(12px) scale(1);
}

.menu-card-nav {
    padding: 24px 28px 20px;
}

/* Primary links - large */
.menu-card-primary {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-card-primary li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.menu-card-primary li:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.menu-card-link {
    display: block;
    font-size: 28px;
    font-weight: 600;
    color: var(--black);
    padding: 18px 0;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
    transform: translateY(8px);
    opacity: 0;
}

.menu-card.open .menu-card-link {
    transform: translateY(0);
    opacity: 1;
}

.menu-card.open .menu-card-primary li:nth-child(1) .menu-card-link { transition-delay: 0.06s; }
.menu-card.open .menu-card-primary li:nth-child(2) .menu-card-link { transition-delay: 0.10s; }
.menu-card.open .menu-card-primary li:nth-child(3) .menu-card-link { transition-delay: 0.14s; }
.menu-card.open .menu-card-primary li:nth-child(4) .menu-card-link { transition-delay: 0.18s; }
.menu-card.open .menu-card-primary li:nth-child(5) .menu-card-link { transition-delay: 0.22s; }
.menu-card.open .menu-card-primary li:nth-child(6) .menu-card-link { transition-delay: 0.26s; }

.menu-card-link:hover {
    color: var(--cyan);
}

.menu-card-link.active {
    color: var(--cyan);
}

/* Secondary links - smaller, inline */
.menu-card-secondary {
    display: flex;
    gap: 24px;
    padding-top: 20px;
    transform: translateY(8px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.menu-card.open .menu-card-secondary {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.18s;
}

.menu-card-sub {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.menu-card-sub:hover {
    color: var(--black);
}

.menu-card-sub.active {
    color: var(--cyan);
}

/* Backdrop overlay when menu open */
.menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* Header hide on scroll */
.site-header.header-hidden {
    transform: translateX(-50%) translateY(-120%);
    opacity: 0;
}

/* ===== Section Styles ===== */
.section {
    padding: var(--section-padding) 0;
}

.section.bg-light {
    background-color: var(--bg-light);
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--black);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 640px;
    line-height: 1.7;
}

.section-header {
    margin-bottom: 72px;
}

.section-header .section-subtitle {
    margin-top: 8px;
}

/* ===== Text Utilities ===== */
.text-accent {
    color: var(--cyan);
}

.body-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 20px;
}

.body-text:last-child {
    margin-bottom: 0;
}

.body-text strong {
    color: var(--black);
    font-weight: 600;
}

/* Text Link */
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--cyan);
    margin-top: 16px;
    transition: gap var(--transition);
}

.text-link:hover {
    gap: 14px;
    color: var(--cyan-dark);
}

.text-link .arrow {
    transition: transform var(--transition);
}

/* ===== Content Grid (2-column) ===== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.content-left .section-title {
    margin-bottom: 0;
}

/* ===== Hero Cinematic (Full Screen Dark) ===== */
.hero-cinematic {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-cinematic-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(253, 186, 86, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 55%),
        linear-gradient(160deg, var(--cyan) 0%, var(--cyan-dark) 100%);
    background-color: var(--cyan);
}

.hero-cinematic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.05) 60%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

.hero-cinematic-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    padding: 0 40px;
}

.hero-cinematic-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.18em;
    margin: 0 auto 48px;
    font-family: var(--font-primary);
    font-size: clamp(56px, 9vw, 120px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #F5EDE4;
    opacity: 0;
    transform: translateY(-8px);
    animation: hero-logo-in 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

.hero-cinematic-logo-mark {
    width: 1.2em;
    height: 0.9em;
    display: block;
    flex-shrink: 0;
}

.hero-cinematic-logo-text {
    display: block;
    line-height: 1;
    /* Subtle kerning tweak so glyph ink-area feels balanced next to the bird. */
    padding-top: 0.03em;
}

@keyframes hero-logo-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cinematic-title {
    font-family: var(--font-primary);
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.hero-cinematic-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: #F5EDE4;
    --pulse-delay: 0s;
    animation: hero-em-pulse 4.8s ease-in-out var(--pulse-delay) infinite;
}

.hero-cinematic-title em:nth-of-type(2) { --pulse-delay: 1.2s; }
.hero-cinematic-title em:nth-of-type(3) { --pulse-delay: 2.4s; }
.hero-cinematic-title em:nth-of-type(4) { --pulse-delay: 3.6s; }

.hero-cinematic-title u {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(245, 237, 228, 0.5);
    animation: hero-u-pulse 4.8s ease-in-out var(--pulse-delay) infinite;
}

@keyframes hero-em-pulse {
    0%, 30%, 70%, 100% { color: #F5EDE4; }
    50%                { color: var(--amber); }
}

@keyframes hero-u-pulse {
    0%, 30%, 70%, 100% { text-decoration-color: rgba(245, 237, 228, 0.5); }
    50%                { text-decoration-color: var(--amber); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-cinematic-title em,
    .hero-cinematic-title u {
        animation: none;
    }
}

/* ===== Buttons ===== */
.btn-primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: var(--cyan);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.01em;
}

.btn-primary-cta:hover {
    background: var(--cyan-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 171, 190, 0.25);
}

.btn-secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: transparent;
    color: var(--black);
    font-size: 15px;
    font-weight: 600;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-secondary-cta:hover {
    border-color: var(--black);
    color: var(--black);
}

.btn-full {
    width: 100%;
}

/* ===== Intro Section ===== */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.intro-left .section-title {
    margin-bottom: 0;
}

.intro-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 20px;
}

/* ===== Philosophy Section ===== */
.philosophy-section {
    position: relative;
    overflow: hidden;
}

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

.philosophy-pattern {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 60%;
    z-index: 0;
    pointer-events: none;
    transform: translate3d(0, -50%, 0);
    opacity: 0.22;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

.philosophy-pattern-track {
    position: absolute;
    top: 0;
    left: -50%;
    width: 300%;
    height: 100%;
    background-image: url('../images/materials/tfinch_brandpattern.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: left center;
    transform: translate3d(var(--pattern-shift, 0px), 0, 0);
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .philosophy-pattern-track {
        transform: none;
    }
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.philosophy-card {
    padding: 48px 40px;
    background: var(--bg-light);
    border-radius: 16px;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.philosophy-card:hover {
    background: var(--bg-white);
    border-color: var(--border);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.philosophy-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 24px;
    font-variant-numeric: tabular-nums;
}

.philosophy-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
    line-height: 1.3;
}

.philosophy-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

/* ===== Services Section — Bento Grid ===== */
.services-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 280px 280px;
    gap: 0;
}

.services-bento-tile {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    padding: 36px;
    color: var(--white);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    isolation: isolate;
    background-color: #1a1c20;
}

.services-bento-tile-image {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transform-origin: center;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.services-bento-tile:hover .services-bento-tile-image {
    transform: scale(1.06);
}

/* Brand-color tint over the image */
.services-bento-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, rgba(0,171,190,0.55) 0%, rgba(0,119,133,0.65) 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Bottom-up dark scrim for text legibility */
.services-bento-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(15,17,21,0) 35%, rgba(15,17,21,0.65) 100%);
    pointer-events: none;
}

.services-bento-tile--cyan::before {
    background: linear-gradient(135deg, rgba(0,171,190,0.50) 0%, rgba(0,119,133,0.62) 100%);
}
.services-bento-tile--dark::before {
    background: linear-gradient(135deg, rgba(35,38,44,0.55) 0%, rgba(15,17,21,0.78) 100%);
}
.services-bento-tile--amber::before {
    background: linear-gradient(135deg, rgba(253,186,86,0.48) 0%, rgba(222,143,39,0.65) 100%);
}
.services-bento-tile--teal::before {
    background: linear-gradient(135deg, rgba(0,138,154,0.55) 0%, rgba(0,82,92,0.72) 100%);
}

.services-bento-tile:hover::before {
    opacity: 0.85;
}

.services-bento-tile--featured {
    grid-column: 1 / span 6;
    grid-row: 1 / span 2;
    padding: 56px;
}
.services-bento-tile:nth-child(2) {
    grid-column: 7 / span 6;
    grid-row: 1 / span 1;
}
.services-bento-tile:nth-child(3) {
    grid-column: 7 / span 3;
    grid-row: 2 / span 1;
}
.services-bento-tile:nth-child(4) {
    grid-column: 10 / span 3;
    grid-row: 2 / span 1;
}

.services-bento-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.services-bento-title {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--white);
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.12;
    font-size: clamp(22px, 2vw, 28px);
}
.services-bento-tile--featured .services-bento-title {
    font-size: clamp(32px, 3.4vw, 48px);
}

.services-bento-desc {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
    margin: 0;
    max-width: 560px;
}

.services-bento-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--black);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    align-self: flex-start;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.3s ease;
}
.services-bento-cta i {
    font-size: 14px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.services-bento-tile:hover .services-bento-cta {
    background: var(--white);
    transform: translateX(4px);
}
.services-bento-tile:hover .services-bento-cta i {
    transform: translateX(3px);
}


@media (max-width: 1024px) {
    .services-bento {
        grid-template-rows: auto;
        grid-auto-rows: 240px;
    }
    .services-bento-tile,
    .services-bento-tile--featured,
    .services-bento-tile:nth-child(2),
    .services-bento-tile:nth-child(3),
    .services-bento-tile:nth-child(4) {
        grid-column: span 6;
        grid-row: auto;
    }
    .services-bento-tile--featured {
        grid-row: span 2;
        padding: 40px;
    }
}

@media (max-width: 640px) {
    .services-bento {
        grid-auto-rows: 220px;
        gap: 0;
    }
    .services-bento-tile,
    .services-bento-tile--featured,
    .services-bento-tile:nth-child(2),
    .services-bento-tile:nth-child(3),
    .services-bento-tile:nth-child(4) {
        grid-column: 1 / -1;
        grid-row: auto;
        padding: 28px;
    }
    .services-bento-tile--featured {
        grid-row: span 1;
        min-height: 320px;
        padding: 32px;
    }
}

/* ===== Process Section ===== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.process-card {
    padding: 40px 32px;
    position: relative;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--cyan);
    border-radius: 2px;
}

.process-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--cyan-light);
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
}

.process-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}

.process-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

/* ===== Team Section ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.team-card {
    padding: 40px 32px;
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.team-section.bg-light .team-card {
    background: var(--bg-white);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

.team-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    overflow: hidden;
    flex-shrink: 0;
}

.team-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.avatar-initials {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
}

.team-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
}

.team-role {
    font-size: 13px;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.team-bio {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
}

/* ===== Quote Section ===== */
.quote-section {
    background: var(--amber);
    padding: var(--section-padding) 0;
}

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

.quote-text {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 40px;
    font-style: italic;
    letter-spacing: -0.01em;
}

.quote-text::before {
    content: '\201C';
    display: block;
    font-size: 72px;
    color: var(--white);
    line-height: 0.5;
    margin-bottom: 24px;
    font-style: normal;
    opacity: 0.65;
}

.quote-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quote-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}

.quote-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

/* ===== Page Header ===== */
.page-header {
    position: relative;
    min-height: 58vh;
    padding-top: 180px;
    padding-bottom: 80px;
    background-color: var(--black);
    background-image: url('../images/materials/tfinch_brandpattern.png');
    background-repeat: repeat;
    background-size: 360px auto;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        135deg,
        rgba(25, 25, 25, 0.90) 0%,
        rgba(25, 25, 25, 0.78) 45%,
        rgba(0, 138, 154, 0.58) 100%
    );
}

.page-header > .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.page-header .section-label {
    color: var(--amber);
}

.page-title {
    font-size: clamp(44px, 6vw, 84px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 960px;
}

.page-header .page-header-subtitle {
    color: rgba(255, 255, 255, 0.75);
}

/* ===== Service Detail Cards ===== */
.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-detail-card {
    padding: 48px;
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.service-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

.service-detail-header {
    margin-bottom: 20px;
}

.service-detail-number {
    font-size: 13px;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 12px;
    display: block;
}

.service-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.3;
}

.service-detail-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 28px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-features li {
    font-size: 15px;
    color: var(--text);
    padding-left: 24px;
    position: relative;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 2px;
    background: var(--cyan);
    border-radius: 1px;
}

/* ===== Process Timeline ===== */
.process-timeline {
    max-width: 800px;
}

.process-timeline-item {
    display: flex;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.process-timeline-item:first-child {
    border-top: 1px solid var(--border);
}

.process-timeline-marker {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-timeline-marker span {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
}

.process-timeline-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.process-timeline-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

/* ===== Contact Section ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
    align-items: start;
}

.contact-form-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.contact-form-subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.7;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.form-label .optional {
    font-weight: 400;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    font-family: var(--font-primary);
    color: var(--black);
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 171, 190, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239B9B9B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 48px;
}

/* Contact Info */
.contact-info-card {
    padding: 36px;
    background: var(--bg-light);
    border-radius: 16px;
    margin-bottom: 24px;
}

.contact-info-card:last-child {
    margin-bottom: 0;
}

.contact-info-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 24px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-details-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--cyan-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--cyan);
    font-size: 16px;
}

.contact-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-value {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
}

a.contact-value:hover {
    color: var(--cyan);
}

.collaborate-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.collaborate-list li {
    font-size: 15px;
    color: var(--text);
    padding-left: 20px;
    position: relative;
}

.collaborate-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--cyan);
    color: var(--white);
}

.footer-cta {
    text-align: center;
    padding: 100px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-cta-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.footer-cta-text {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.footer-cta .btn-primary-cta {
    background: var(--white);
    color: var(--cyan-dark);
}

.footer-cta .btn-primary-cta:hover {
    background: var(--black);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.footer-main {
    padding: 80px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
}

.footer-logo {
    height: 112px;
    width: auto;
    margin-bottom: 16px;
    display: block;
}

.footer-tagline {
    font-size: 14px;
    font-weight: 600;
    color: var(--amber);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-links span {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-fast);
}

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

.footer-contact-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer-contact-list i {
    color: var(--white);
    font-size: 14px;
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 28px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.social-link:hover {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}

/* ===== Back to Top Button ===== */
/* ===== Floating WhatsApp FAB ===== */
.whatsapp-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 997;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.25s ease,
                background-color 0.25s ease;
}
.whatsapp-fab::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.35);
    opacity: 0;
    animation: whatsapp-pulse 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}
@keyframes whatsapp-pulse {
    0%   { opacity: 0.55; transform: scale(1); }
    70%  { opacity: 0;    transform: scale(1.5); }
    100% { opacity: 0;    transform: scale(1.5); }
}
.whatsapp-fab:hover {
    background: #1fbd5a;
    color: var(--white);
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55), 0 2px 8px rgba(0, 0, 0, 0.14);
}
.whatsapp-fab i {
    line-height: 1;
}
@media (prefers-reduced-motion: reduce) {
    .whatsapp-fab::before {
        animation: none;
    }
}
@media (max-width: 768px) {
    .whatsapp-fab {
        width: 54px;
        height: 54px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
}

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 34px;
    width: 48px;
    height: 48px;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition);
}

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

.back-to-top:hover {
    background: var(--cyan);
    transform: translateY(-2px);
}

/* ===== Works Page ===== */
.page-header-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 640px;
    line-height: 1.7;
    margin-top: 20px;
}

/* Filter Bar */
.works-filter-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
}

.works-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-primary);
    color: var(--text-light);
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    color: var(--black);
    border-color: var(--black);
}

.filter-btn.active {
    color: var(--white);
    background: var(--cyan);
    border-color: var(--cyan);
}

/* Works Grid */
.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.work-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.work-card-wide {
    grid-column: span 2;
}

.work-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-card-wide .work-card-image {
    aspect-ratio: 21 / 9;
}

.work-card-placeholder {
    opacity: 0.6;
}

.work-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-card:hover .work-card-overlay {
    opacity: 1;
}

.work-card-view {
    padding: 12px 28px;
    background: var(--white);
    color: var(--black);
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    transform: translateY(8px);
    transition: transform 0.3s ease;
}

.work-card:hover .work-card-view {
    transform: translateY(0);
}

.work-card-info {
    padding: 28px 32px 32px;
}

.work-card-category {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 8px;
    display: block;
}

.work-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
    line-height: 1.3;
}

.work-card-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

/* Stats Section */
.stats-section {
    background: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    padding: 40px 24px;
}

.stat-number {
    display: block;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    color: var(--cyan);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.01em;
}

/* ===== Reveal Animations ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 88px;
    }

    .container {
        padding: 0 32px;
    }

    .header-inner {
        padding: 0 32px;
    }

    .content-grid,
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .philosophy-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-detail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .hero-cinematic-content {
        padding: 0 32px;
    }

    .works-grid {
        gap: 24px;
    }

    .work-card-wide {
        grid-column: span 2;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }

    .container {
        padding: 0 24px;
    }

    .hero-cinematic {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-cinematic-content {
        padding: 0 24px;
    }

    .hero-cinematic-title {
        font-size: clamp(28px, 7vw, 42px);
    }

    .site-header {
        top: 12px;
    }

    .floating-pill {
        padding: 6px 6px 6px 14px;
    }

    .pill-menu-label {
        font-size: 13px;
    }

    .pill-menu-toggle {
        min-height: 44px;
    }

    /* Mobile: hide the pill Contact CTA — it lives inside the submenu instead */
    .pill-cta {
        display: none;
    }

    /* Mobile: make the Contact item in the submenu look like a CTA */
    .menu-card-contact {
        border-bottom: none !important;
        padding-top: 12px;
    }
    .menu-card-link-cta {
        color: var(--cyan) !important;
    }
    .menu-card-link-cta .menu-card-link-arrow {
        display: inline-block;
        transition: transform 0.25s ease;
        margin-left: 6px;
    }
    .menu-card-link-cta:hover .menu-card-link-arrow {
        transform: translateX(4px);
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .menu-card {
        width: calc(100vw - 32px);
        max-width: 420px;
    }

    .menu-card-link {
        font-size: 24px;
        padding: 16px 0;
    }

    .menu-card-nav {
        padding: 20px 24px 16px;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .philosophy-card {
        padding: 32px 28px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-card {
        padding: 32px;
    }

    .process-timeline-item {
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-cta {
        padding: 72px 0;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .page-header {
        min-height: 46vh;
        padding-top: 140px;
        padding-bottom: 60px;
        background-size: 260px auto;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .quote-text {
        font-size: 22px;
    }

    .works-filter-section {
        position: relative;
        top: auto;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .work-card-wide {
        grid-column: span 1;
    }

    .work-card-wide .work-card-image {
        aspect-ratio: 16 / 10;
    }

    .work-card-info {
        padding: 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-item {
        padding: 28px 16px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 13px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .header-inner {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .btn-primary-cta,
    .btn-secondary-cta {
        padding: 14px 28px;
        font-size: 14px;
    }

    .contact-info-card {
        padding: 28px;
    }

    /* Let hero & page-title text flow naturally on narrow screens */
    .hero-cinematic-title br,
    .page-title br {
        display: none;
    }

    .page-header {
        padding-top: 120px;
        padding-bottom: 48px;
        min-height: 44vh;
        background-size: 220px auto;
    }

    .page-title {
        font-size: clamp(34px, 9vw, 44px);
    }
}

/* ============================================================
   ARTICLES (Insights)
   ============================================================ */

/* ---------- Filter Bar ---------- */
.articles-filter-section {
    padding: 32px 0 8px;
    border-bottom: 1px solid var(--border);
}
.articles-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.articles-filter .filter-btn {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    transition: all var(--transition-fast);
}
.articles-filter .filter-btn:hover {
    color: var(--black);
    border-color: var(--black);
}
.articles-filter .filter-btn.active {
    color: var(--white);
    background: var(--cyan);
    border-color: var(--cyan);
}

/* ---------- Featured Article Card ---------- */
.articles-featured-section {
    padding-top: 72px;
    padding-bottom: 24px;
}
.article-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}
.article-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.08);
    border-color: var(--border);
}
.article-featured-media {
    position: relative;
    aspect-ratio: 5 / 4;
    overflow: hidden;
}
.article-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.article-featured:hover .article-featured-media img {
    transform: scale(1.04);
}
.article-featured-placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%),
        radial-gradient(ellipse at 30% 70%, rgba(253, 186, 86, 0.4) 0%, transparent 50%);
}
.article-featured-body {
    padding: 48px 48px 48px 0;
}
.article-featured-title {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--black);
    margin: 16px 0 16px;
}
.article-featured-excerpt {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 24px;
}
.article-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-weight: 600;
    font-size: 15px;
    margin-top: 8px;
}
.article-featured-cta .arrow {
    transition: transform 0.25s ease;
}
.article-featured:hover .article-featured-cta .arrow {
    transform: translateX(4px);
}

/* ---------- Article Grid Cards ---------- */
.articles-grid-section {
    padding-top: 48px;
}
.articles-grid-section-top {
    padding-top: 80px;
}
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.article-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
}
.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}
.article-card-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}
.article-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.article-card:hover .article-card-media img {
    transform: scale(1.04);
}
.article-card-placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, var(--cyan-light) 0%, var(--amber-light) 100%);
}
.article-card-body {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.article-card-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--black);
    margin: 12px 0 12px;
    letter-spacing: -0.01em;
}
.article-card-excerpt {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-light);
    margin-bottom: 20px;
    flex: 1;
}

/* ---------- Category Badge ---------- */
.article-category-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    padding: 4px 0;
}
.article-category-badge-light {
    color: var(--amber);
}

/* ---------- Article Meta (author, date, read time) ---------- */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}
.article-meta-small { font-size: 12px; margin-bottom: 0; }
.article-meta-dot { color: var(--text-muted); }
.article-meta-author {
    color: var(--black);
    font-weight: 600;
}

/* ---------- Empty State ---------- */
.articles-empty {
    padding: 80px 0;
    text-align: center;
}
.articles-empty-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}
.articles-empty-text {
    color: var(--text-light);
}

/* ============================================================
   ARTICLE DETAIL
   ============================================================ */

.article-hero {
    padding: 180px 0 48px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}
.article-breadcrumb {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.article-breadcrumb a {
    color: var(--text-light);
    transition: color var(--transition-fast);
}
.article-breadcrumb a:hover {
    color: var(--cyan);
}
.article-breadcrumb-sep {
    color: var(--text-muted);
}
.article-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--black);
    max-width: 900px;
    margin: 18px 0 24px;
}
.article-hero-excerpt {
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.6;
    color: var(--text);
    max-width: 780px;
    margin-bottom: 40px;
}
.article-hero-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.article-author-inline {
    display: flex;
    align-items: center;
    gap: 14px;
}
.article-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.article-author-name {
    font-weight: 700;
    color: var(--black);
    font-size: 15px;
}
.article-author-role {
    font-size: 13px;
    color: var(--text-light);
}
.article-meta-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
    flex-wrap: wrap;
}

/* ---------- Cover Image ---------- */
.article-cover {
    padding-top: 48px;
    padding-bottom: 0;
}
.article-cover-figure {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bg-light);
}
.article-cover-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Body + Share Rail ---------- */
.article-body-section {
    padding: 72px 0 80px;
}
.article-body-container {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 40px;
    max-width: 920px;
    margin: 0 auto;
}
.article-share {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    align-self: start;
}
.article-share-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding-bottom: 8px;
}
.article-share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}
.article-share-btn:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    background: var(--cyan-light);
    transform: translateY(-2px);
}

/* ---------- Article Body Typography ---------- */
.article-body {
    font-size: 18px;
    line-height: 1.85;
    color: var(--text);
    max-width: 720px;
}
.article-body p {
    margin-bottom: 1.4em;
}
.article-body h2 {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--black);
    margin: 2em 0 0.7em;
}
.article-body h3 {
    font-size: clamp(22px, 2.2vw, 26px);
    font-weight: 700;
    line-height: 1.35;
    color: var(--black);
    margin: 1.8em 0 0.6em;
}
.article-body h4 {
    font-size: 19px;
    font-weight: 700;
    color: var(--black);
    margin: 1.6em 0 0.5em;
}
.article-body ul,
.article-body ol {
    margin: 0 0 1.4em 1.4em;
    padding: 0;
    list-style: disc;
}
.article-body ol { list-style: decimal; }
.article-body li {
    margin-bottom: 0.6em;
    line-height: 1.75;
}
.article-body a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color var(--transition-fast);
}
.article-body a:hover {
    color: var(--cyan-dark);
}
.article-body blockquote {
    margin: 2em 0;
    padding: 8px 0 8px 32px;
    border-left: 4px solid var(--cyan);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.45;
    color: var(--black);
    letter-spacing: -0.01em;
}
.article-body figure {
    margin: 2em 0;
}

/* ---- CKEditor image variants ---- */
.article-body figure.image {
    margin: 2em 0;
    text-align: center;
}
.article-body figure.image img,
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}
/* Inline images inside paragraphs */
.article-body p > img {
    display: inline-block;
    vertical-align: middle;
    margin: 0 4px;
    max-width: 100%;
}
/* Floated side image */
.article-body figure.image-style-side,
.article-body figure.image.image-style-side {
    float: right;
    max-width: 50%;
    margin: 0 0 1.4em 1.8em;
}
/* Legacy/new CKEditor alignment classes */
.article-body figure.image.image-style-align-left,
.article-body figure.image.image-style-block-align-left {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}
.article-body figure.image.image-style-align-right,
.article-body figure.image.image-style-block-align-right {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}
.article-body figure.image.image-style-align-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
/* Resized images with inline width set by the editor */
.article-body figure.image.image_resized {
    max-width: 100%;
}
.article-body figure.image.image_resized img {
    width: 100%;
}

.article-body figcaption {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

/* ---- CKEditor tables ---- */
.article-body figure.table {
    margin: 2em 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
}
.article-body table th,
.article-body table td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.article-body table th {
    background: var(--bg-light);
    font-weight: 700;
    color: var(--black);
}
.article-body table tr:nth-child(even) td {
    background: rgba(248, 249, 250, 0.5);
}

/* ---- CKEditor media embeds ---- */
.article-body figure.media {
    margin: 2em 0;
    position: relative;
}
.article-body figure.media [data-oembed-url] {
    position: relative;
    padding-top: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}
.article-body figure.media iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}
/* Fallback when oembed preview is not embedded as iframe */
.article-body figure.media oembed {
    display: block;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 14px;
    word-break: break-all;
}
.article-body figure.media oembed::after {
    content: attr(url);
    display: block;
    color: var(--cyan);
    margin-top: 4px;
}

/* ---- Misc inline formatting CKEditor may emit ---- */
.article-body s {
    text-decoration: line-through;
}
.article-body u {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-body mark {
    background: #FFF4E0;
    padding: 0 4px;
    border-radius: 3px;
}
/* Paragraph alignment emitted as inline style by CKEditor — trust it. */
.article-body hr {
    margin: 3em auto;
    width: 80px;
    border: 0;
    border-top: 2px solid var(--cyan);
}
.article-body strong { color: var(--black); font-weight: 700; }
.article-body em { font-style: italic; }
.article-body code {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--black);
}
.article-body pre {
    background: var(--bg-light);
    padding: 20px 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.6em 0;
    font-size: 14px;
    line-height: 1.6;
}
.article-body pre code {
    background: transparent;
    padding: 0;
}

/* ---------- Inline Share Section ---------- */
.article-share-inline-section {
    padding: 0 0 80px;
}
.article-share-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 720px;
    margin: 0 auto;
    padding: 36px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.article-share-inline-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.article-share-inline-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.article-share-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 44px;
}
.article-share-pill:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    background: var(--cyan-light);
}

/* ---------- Related ---------- */
.articles-related-section {
    background: var(--bg-light);
}

/* ============================================================
   ARTICLES RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .article-featured {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .article-featured-body {
        padding: 36px 36px 44px;
    }
    .article-featured-media {
        aspect-ratio: 16 / 10;
    }
}

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

    .article-hero {
        padding: 140px 0 40px;
    }
    .article-hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .article-body-section {
        padding: 48px 0 64px;
    }
    .article-body-container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .article-share {
        position: static;
        flex-direction: row;
        justify-content: flex-start;
        margin-bottom: 32px;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--border);
    }
    .article-share-label {
        writing-mode: horizontal-tb;
        transform: none;
        padding-bottom: 0;
        margin-right: 8px;
        align-self: center;
    }

    .article-body {
        font-size: 17px;
        line-height: 1.75;
    }

    .article-featured-body {
        padding: 28px 24px 32px;
    }
    .article-featured-title {
        font-size: 26px;
    }
}

/* ============================================================
   WORK DETAIL
   ============================================================ */

.work-detail-hero {
    padding: 180px 0 56px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}
.work-detail-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 18px;
}
.work-detail-title {
    font-family: var(--font-serif);
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--black);
    max-width: 980px;
    margin: 0 0 28px;
}
.work-detail-lead {
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.65;
    color: var(--text);
    max-width: 780px;
    margin: 0 0 40px;
}
.work-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 36px 56px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 36px;
}
.work-detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 80px;
}
.work-detail-meta-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-light);
}
.work-detail-meta-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
}
.work-detail-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.work-detail-cta i {
    font-size: 14px;
}

.work-detail-cover-section {
    padding: 56px 0 24px;
    background: var(--bg-light);
}
.work-detail-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.work-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-detail-body-section {
    padding: 64px 0 80px;
    background: var(--bg-light);
}
.work-detail-body {
    max-width: 760px;
    margin: 0 auto;
}
.work-detail-section-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 400;
    color: var(--black);
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}
.work-detail-paragraph {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
}

.work-detail-related-section {
    padding: 80px 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
}

.work-detail-gallery-section {
    padding: 16px 0 96px;
    background: var(--bg-light);
}
.work-detail-gallery-header {
    text-align: center;
    margin-bottom: 48px;
}
.work-detail-gallery-header .section-label {
    display: inline-block;
    margin-bottom: 12px;
}
.work-detail-gallery-header .work-detail-section-title {
    margin: 0;
}
.work-detail-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}
.work-detail-gallery-item {
    margin: 0;
    grid-column: span 6;
    border-radius: 14px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 1px 2px rgba(15, 17, 21, 0.06),
                0 12px 32px rgba(15, 17, 21, 0.06);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.work-detail-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 4px rgba(15, 17, 21, 0.08),
                0 24px 48px rgba(15, 17, 21, 0.10);
}
/* Feature every 5th image full-width for rhythm */
.work-detail-gallery-item:nth-child(5n + 1) {
    grid-column: span 12;
}
.work-detail-gallery-link {
    display: block;
    overflow: hidden;
}
.work-detail-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.work-detail-gallery-item:nth-child(5n + 1) img {
    aspect-ratio: 21 / 9;
}
.work-detail-gallery-item:hover img {
    transform: scale(1.02);
}
.work-detail-gallery-caption {
    padding: 16px 20px 20px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .work-detail-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .work-detail-gallery-item,
    .work-detail-gallery-item:nth-child(5n + 1) {
        grid-column: 1 / -1;
    }
    .work-detail-gallery-item img,
    .work-detail-gallery-item:nth-child(5n + 1) img {
        aspect-ratio: 4 / 3;
    }
    .work-detail-gallery-section {
        padding: 8px 0 64px;
    }
    .work-detail-gallery-header {
        margin-bottom: 32px;
    }
}

@media (max-width: 768px) {
    .work-detail-hero {
        padding: 140px 0 40px;
    }
    .work-detail-meta {
        gap: 20px 32px;
    }
    .work-detail-cover-section {
        padding: 32px 0 8px;
    }
    .work-detail-body-section {
        padding: 48px 0 64px;
    }
}

