@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===========================
   CSS CUSTOM PROPERTIES
=========================== */
:root {
    --color-white: #FFFFFF;
    --color-gray-light: #F5F5F5;
    --color-gray-medium: #E8E8E8;
    --color-gray-text: #333333;
    --color-gray-secondary: #666666;
    --color-gray-meta: #888888;
    --color-gray-placeholder: #AAAAAA;
    --color-black: #000000;
    --color-near-black: #1A1A1A;
    --color-red: #DC143C;
    --color-red-hover: #B8102C;
    --color-red-light: rgba(220, 20, 60, 0.1);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;

    --container-width: 1200px;
    --header-height: 60px;
    --border-radius: 8px;
    --border-radius-sm: 6px;
    --border-radius-lg: 12px;

    --transition-fast: all 0.2s ease;
    --transition-std: all 0.3s ease;
}

/* Legacy variable aliases — keep backward compat with inline styles on other pages */
:root {
    --bg-primary: var(--color-white);
    --bg-secondary: var(--color-gray-light);
    --bg-dark: var(--color-near-black);
    --text-primary: var(--color-black);
    --text-secondary: var(--color-gray-secondary);
    --text-white: var(--color-white);
    --accent: var(--color-red);
    --accent-hover: var(--color-red-hover);
    --gray-light: var(--color-gray-medium);
    --gray-mid: var(--color-gray-meta);
    --gray-dark: #333333;
    --shadow-soft: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-bold: 0 8px 24px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition-smooth: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-white);
    color: var(--color-gray-text);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    color: var(--color-black);
    line-height: 1.2;
}

h1 { font-size: 48px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 36px; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 20px; font-weight: 500; }

p { color: var(--color-gray-text); }

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

ul { list-style: none; }

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

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

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 60px 0;
}

.grid {
    display: grid;
    gap: 20px;
}

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

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

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

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

/* ===========================
   SECTION HEADERS
=========================== */
.section-header {
    margin-bottom: 48px;
}

.section-header.text-center {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.section-heading {
    font-size: 36px;
    font-weight: 600;
    color: var(--color-black);
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    line-height: 1.3;
}

.section-heading span {
    color: var(--color-red);
}

.section-sub {
    font-size: 16px;
    color: var(--color-gray-secondary);
    line-height: 1.7;
    max-width: 560px;
}

/* ===========================
   NAVIGATION
=========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--color-white);
    border-bottom: 0.5px solid var(--color-gray-medium);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--color-red);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-gray-text);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-red);
}

.cta-btn {
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.cta-btn:hover {
    background-color: var(--color-red-hover);
    color: var(--color-white);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-black);
    border-radius: 2px;
    transition: var(--transition-std);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav overlay — NEVER display:block when closed.
   display:none is the only 100% reliable way to prevent iOS Safari
   from treating a transparent fixed element as a touch target. */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 80vw);
    height: 100vh;
    background: var(--color-white);
    z-index: 999;
    padding: 80px 0 40px;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.mobile-nav-drawer.open { right: 0; }

.mobile-nav-drawer a {
    display: block;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-gray-text);
    border-bottom: 0.5px solid var(--color-gray-medium);
}

.mobile-nav-drawer a:hover { color: var(--color-red); background: var(--color-gray-light); }

.mobile-nav-drawer a:last-child {
    margin: 20px 24px 0;
    background: var(--color-red);
    color: var(--color-white);
    text-align: center;
    border-radius: var(--border-radius-sm);
    border-bottom: none;
}

.mobile-nav-drawer a:last-child:hover {
    background: var(--color-red-hover);
    color: var(--color-white);
}

/* ===========================
   BUTTONS
=========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    text-decoration: none;
    min-height: 44px;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-red);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-red-hover);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.3);
}

.btn-primary:active { transform: scale(0.98); }

.btn-outline {
    background-color: transparent;
    color: var(--color-red);
    border: 1px solid var(--color-red);
}

.btn-outline:hover {
    background-color: var(--color-gray-light);
    color: var(--color-red);
    border-color: var(--color-red);
}

.btn-outline:active { background-color: var(--color-gray-medium); }

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    min-height: 40px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
    min-height: 48px;
}

/* ===========================
   HERO SECTION (Homepage)
=========================== */
.hero {
    min-height: 600px;
    padding: calc(var(--header-height) + 80px) 0 80px;
    background: var(--color-white);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative element */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, var(--color-gray-light) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Legacy shape elements – hidden in new design */
.hero-gradient-layer,
.hero-grid-overlay,
.shape,
.scroll-indicator {
    display: none;
}

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

.hero-content {
    max-width: 680px;
    animation: heroFadeIn 0.8s ease forwards;
}

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

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    background: var(--color-red-light);
    border: 1px solid rgba(220, 20, 60, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
}

.tagline-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-red);
    flex-shrink: 0;
}

.hero-headline {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-black);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-headline-accent {
    color: var(--color-red);
}

.hero-subheading {
    font-size: 18px;
    color: var(--color-gray-text);
    margin-bottom: 40px;
    max-width: 560px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Override legacy btn styles inside hero */
.hero-btns .btn-primary {
    background-color: var(--color-red);
    color: var(--color-white);
    border: none;
}

.hero-btns .btn-primary:hover {
    background-color: var(--color-red-hover);
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.3);
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    background: transparent;
    color: var(--color-red);
    border: 1px solid var(--color-red);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-hero-outline:hover {
    background: var(--color-gray-light);
    color: var(--color-red);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-stat strong {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1;
}

.hero-stat span {
    font-size: 13px;
    color: var(--color-gray-secondary);
    font-weight: 400;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-gray-medium);
}

/* ===========================
   PAGE HERO (Inner Pages)
=========================== */
.page-hero {
    padding: calc(var(--header-height) + 60px) 0 60px;
    background: var(--color-white);
    border-bottom: 0.5px solid var(--color-gray-medium);
    position: relative;
}

/* Hide legacy dark decorative elements */
.page-hero-gradient,
.page-hero-grid,
.page-hero-glow {
    display: none;
}

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

.page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    background: var(--color-red-light);
    border: 1px solid rgba(220, 20, 60, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.page-hero h1 span {
    color: var(--color-red);
}

.page-hero p {
    font-size: 18px;
    color: var(--color-gray-secondary);
    max-width: 560px;
    line-height: 1.7;
}

/* About Page Hero — two-column with personal photo */
.about-hero {
    padding: calc(var(--header-height) + 48px) 0 52px;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
    align-items: center;
}

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

.about-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.about-hero-tags span {
    display: inline-block;
    padding: 5px 13px;
    background: var(--color-gray-light);
    color: var(--color-gray-secondary);
    border: 0.5px solid var(--color-gray-medium);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Photo — compact portrait card */
.about-hero-photo {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.about-hero-photo-wrap {
    position: relative;
    width: 280px;
}

.about-hero-photo-frame {
    border-radius: 20px;
    overflow: hidden;
    width: 280px;
    height: 340px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.14);
    border: 0.5px solid var(--color-gray-medium);
}

.about-hero-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.about-hero-photo-accent { display: none; }

.about-hero-photo-badge {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    border: 0.5px solid var(--color-gray-medium);
    border-radius: 10px;
    padding: 8px 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    z-index: 2;
}

.about-hero-photo-badge .badge-icon {
    width: 28px;
    height: 28px;
    background: var(--color-red-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-red);
    flex-shrink: 0;
}

.about-hero-photo-badge .badge-text {
    display: flex;
    flex-direction: column;
}

.about-hero-photo-badge .badge-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1.2;
}

.about-hero-photo-badge .badge-label {
    font-size: 10px;
    color: var(--color-gray-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ===========================
   ABOUT PAGE — scoped spacing
=========================== */
.page-about .about-hero {
    padding: calc(var(--header-height) + 24px) 0 28px;
}

.page-about .section {
    padding: 44px 0;
}

.page-about .section-header {
    margin-bottom: 28px;
}

.page-about .about-preview-grid {
    gap: 48px;
    align-items: stretch;
}

.page-about .about-img-col {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.13);
    height: 480px;
    position: relative;
}

.page-about .about-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.page-about .about-img-col.creative-img {
    background: #1a1a1a;
    position: relative;
}

.page-about .about-img-col.creative-img img {
    object-fit: contain;
    object-position: center center;
    height: 100%;
}

.creative-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.40);
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    z-index: 2;
}

.creative-img-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-red);
    background: rgba(220, 20, 60, 0.15);
    border: 1px solid rgba(220, 20, 60, 0.4);
    border-radius: 100px;
    padding: 4px 12px;
    margin-bottom: 12px;
    width: fit-content;
}

.creative-img-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.creative-img-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-style: italic;
}

.page-about .about-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-about .about-text-col p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.page-about .timeline-item {
    margin-bottom: 24px;
}

.page-about .divider {
    margin: 10px 0 14px;
}

.page-about .section-sub {
    margin-top: 6px;
}

/* ===========================
   CARDS
=========================== */
.card {
    background: var(--color-white);
    border: 0.5px solid var(--color-gray-medium);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: var(--transition-std);
}

.card:hover {
    border-color: var(--color-red);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ===========================
   SERVICE CARDS
=========================== */
.service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--color-white);
    border: 0.5px solid var(--color-gray-medium);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    transition: var(--transition-std);
}

.service-card:hover {
    border-color: var(--color-red);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--color-gray-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--color-red);
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--color-gray-text);
    line-height: 1.6;
}

/* ===========================
   PORTFOLIO / WORK CARDS
=========================== */
.portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    background: var(--color-white);
    border: 0.5px solid var(--color-gray-medium);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-std);
}

.portfolio-item:hover {
    border-color: var(--color-red);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--color-gray-light);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.04);
}

.portfolio-content {
    padding: 16px;
}

.portfolio-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-gray-secondary);
    background: var(--color-gray-light);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.portfolio-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 8px;
}

.portfolio-content p {
    font-size: 14px;
    color: var(--color-gray-secondary);
    line-height: 1.5;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--color-red);
    font-weight: 500;
    margin-top: 12px;
}

.portfolio-link:hover {
    color: var(--color-red-hover);
    text-decoration: underline;
}

/* Legacy overlay style (kept for compatibility) */
.portfolio-overlay {
    display: none;
}

/* ===========================
   ABOUT PREVIEW
=========================== */
.about-preview .grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.about-preview img {
    border-radius: var(--border-radius-lg);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-preview h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-preview h2 span {
    color: var(--color-red);
}

.about-preview p {
    font-size: 16px;
    color: var(--color-gray-text);
    margin-bottom: 16px;
    line-height: 1.7;
}

/* ===========================
   STATS SECTION
=========================== */
.stats-section {
    background: var(--color-gray-light);
}

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

.stat-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 32px 24px;
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-red);
    line-height: 1;
    margin-bottom: 12px;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--color-gray-text);
    font-weight: 400;
}

/* ===========================
   BLOG CARDS
=========================== */
.blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.blog-card {
    background: var(--color-white);
    border: 0.5px solid var(--color-gray-medium);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-std);
}

.blog-card:hover {
    border-color: var(--color-red);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.blog-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--color-gray-light);
    display: block;
}

.blog-card-body {
    padding: 16px;
}

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

.blog-card-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 14px;
    color: var(--color-gray-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--color-gray-meta);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-gray-medium);
}

.blog-read-more {
    font-size: 13px;
    color: var(--color-red);
    font-weight: 500;
    display: inline-block;
    margin-top: 8px;
}

.blog-read-more:hover {
    color: var(--color-red-hover);
    text-decoration: underline;
}

/* ===========================
   FORM ELEMENTS
=========================== */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    height: 44px;
    padding: 12px 16px;
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--color-gray-text);
    background: var(--color-white);
    border: 1px solid var(--color-gray-medium);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    outline: none;
    appearance: none;
}

.form-control::placeholder {
    color: var(--color-gray-placeholder);
}

.form-control:focus {
    border: 2px solid var(--color-red);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.08);
}

textarea.form-control {
    height: auto;
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ===========================
   ABOUT HIGHLIGHTS
=========================== */
.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-gray-text);
    font-weight: 500;
}

.about-highlight-item i {
    color: var(--color-red);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* ===========================
   TIMELINE
=========================== */
.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--color-gray-medium);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -28px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-red);
    border: 2px solid var(--color-white);
    box-shadow: 0 0 0 2px var(--color-red);
}

.timeline-content {
    padding-left: 8px;
}

.timeline-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-red);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 6px;
}

.timeline-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 8px;
    line-height: 1.4;
}

.timeline-content p {
    font-size: 14px;
    color: var(--color-gray-secondary);
    line-height: 1.7;
}

/* ===========================
   CONTACT PAGE
=========================== */
.contact-grid {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-form-wrap {
    flex: 0 0 60%;
}

.contact-info-wrap {
    flex: 1;
}

.contact-info-box {
    background: var(--color-gray-light);
    border-radius: var(--border-radius);
    padding: 32px;
    margin-bottom: 24px;
}

.contact-detail {
    margin-bottom: 20px;
}

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

.contact-detail-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-gray-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.contact-detail-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-black);
}

.contact-detail-value a {
    color: var(--color-red);
}

.contact-detail-value a:hover {
    text-decoration: underline;
}

/* ===========================
   FOOTER
=========================== */
.footer {
    background: var(--color-near-black);
    color: var(--color-white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-white);
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo span {
    color: var(--color-red);
}

.footer-about p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 280px;
}

.footer h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* Legacy copyright class */
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

/* ===========================
   HERO 2-COLUMN LAYOUT
=========================== */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: center;
    gap: 60px;
}

.hero-photo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-photo-frame {
    width: 380px;
    height: 440px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--color-gray-medium);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* ===========================
   ABOUT PREVIEW GRID
=========================== */
.about-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-col img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--border-radius-lg);
    border: 0.5px solid var(--color-gray-medium);
}

.about-text-col h2 {
    font-size: 36px;
    line-height: 1.25;
    margin-bottom: 16px;
}

/* ===========================
   CLIENT TYPE CARDS
=========================== */
.client-type-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-white);
    border: 0.5px solid var(--color-gray-medium);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-text);
    transition: var(--transition-fast);
}

.client-type-card:hover {
    border-color: var(--color-red);
    color: var(--color-black);
}

.client-type-card i {
    color: var(--color-red);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* ===========================
   SCROLL ANIMATIONS
=========================== */

/* ── Base: hidden state ── */
.sa {
    opacity: 0;
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

/* ── Animation variants (hidden states) ── */
.sa[data-anim="up"]    { transform: translateY(36px); }
.sa[data-anim="down"]  { transform: translateY(-36px); }
.sa[data-anim="left"]  { transform: translateX(-40px); }
.sa[data-anim="right"] { transform: translateX(40px); }
.sa[data-anim="scale"] { transform: scale(0.88); }
.sa[data-anim="fade"]  { transform: none; }
.sa[data-anim="flip"]  { transform: rotateX(18deg) translateY(20px); transform-origin: top center; }

/* ── Active (visible) state ── */
.sa.sa-active {
    opacity: 1;
    transform: none !important;
}

/* ── Legacy .reveal support ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.reveal.active {
    opacity: 1;
    transform: none;
}

/* ===========================
   SCROLL PROGRESS BAR
=========================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-red);
    z-index: 2000;
    transition: width 0.1s linear;
}

/* ===========================
   BACK TO TOP BUTTON
=========================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--color-red);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background-color 0.2s ease;
    font-size: 18px;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--color-red-hover);
    color: var(--color-white);
}

/* ===========================
   FILTER TABS
=========================== */
.filter-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.filter-tab {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-secondary);
    padding: 8px 16px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.filter-tab:hover { color: var(--color-red); background: var(--color-gray-light); }

.filter-tab.active {
    color: var(--color-red);
    background: var(--color-red-light);
    font-weight: 600;
}

/* ===========================
   NEWSLETTER STRIP
=========================== */
.newsletter-strip {
    background: var(--color-near-black);
    padding: 60px 0;
}

.newsletter-strip h2 {
    font-size: 32px;
    color: var(--color-white);
    margin-bottom: 12px;
}

.newsletter-strip p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 28px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    flex: 1;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-form .form-control:focus {
    border-color: var(--color-red);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.15);
}

/* ===========================
   CTA STRIP
=========================== */
.cta-strip {
    background: var(--color-gray-light);
    padding: 80px 0;
    text-align: center;
}

.cta-strip h2 {
    font-size: 36px;
    color: var(--color-black);
    margin-bottom: 16px;
}

.cta-strip p {
    font-size: 18px;
    color: var(--color-gray-secondary);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Override dark cta-strip from services inline CSS */
.services-overview .cta-strip,
section.cta-strip[style*="0a0a0a"] {
    background: var(--color-gray-light) !important;
}

/* ===========================
   UNIFORM SERVICE CARDS (svc-card)
=========================== */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.svc-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-medium);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.3s ease,
                border-color 0.25s ease;
}

.svc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    border-color: var(--color-red);
}

/* Icon strip at top */
.svc-card-icon {
    width: 52px;
    height: 52px;
    background: var(--color-red-light);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-red);
    margin: 24px 24px 0;
    transition: background 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

.svc-card:hover .svc-card-icon {
    background: var(--color-red);
    color: var(--color-white);
}

.svc-card-icon i { width: 22px; height: 22px; }

/* Body */
.svc-card-body {
    padding: 16px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.svc-card-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 10px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.svc-card-body > p {
    font-size: 13.5px;
    color: var(--color-gray-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
}

/* Benefits list */
.svc-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.svc-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-gray-text);
    font-weight: 500;
}

.svc-check {
    color: var(--color-red);
    flex-shrink: 0;
    width: 14px !important;
    height: 14px !important;
}

/* "Solving" pain point */
.svc-solving {
    margin-top: auto;
    font-size: 12px;
    color: var(--color-gray-meta);
    font-style: italic;
    background: var(--color-gray-light);
    border-left: 3px solid var(--color-red);
    border-radius: 0 6px 6px 0;
    padding: 10px 12px;
    line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 1199px) {
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .svc-grid { grid-template-columns: 1fr; gap: 14px; }
    .svc-card-icon { margin: 20px 20px 0; }
    .svc-card-body { padding: 14px 20px 20px; }
    .svc-card-body h3 { font-size: 16px; }
}

/* ===========================
   SEO · AEO · GEO TRIO SECTION
=========================== */
.seo-trio-section { background: var(--color-white); }

/* ── Evolution timeline ── */
.trio-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
}

.trio-tl-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.trio-tl-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.06);
}

.trio-tl-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-gray-secondary);
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.trio-tl-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gray-medium), var(--color-gray-medium));
    min-width: 60px;
    max-width: 140px;
    margin-bottom: 22px;
    opacity: 0.6;
}

/* ── Cards grid ── */
.trio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

/* ── Card base ── */
.trio-card {
    border-radius: 20px;
    border: 1.5px solid var(--color-gray-medium);
    background: var(--color-white);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.trio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.1);
    border-color: var(--trio-color, var(--color-red));
}

/* Middle card — slightly elevated */
.trio-card--mid {
    margin-top: -8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

/* Hot card (GEO) */
.trio-card--hot {
    background: var(--color-near-black);
}

/* ── Card top band ── */
.trio-card-top {
    padding: 28px 28px 22px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(0,0,0,0.02), transparent);
}

.trio-card--hot .trio-card-top {
    border-bottom-color: rgba(255,255,255,0.08);
    background: linear-gradient(135deg, rgba(220,20,60,0.08), transparent);
}

/* Big acronym */
.trio-acronym {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--trio-color, var(--color-red));
    line-height: 1;
}

/* Badge pill */
.trio-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trio-new-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-red);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ── Card body ── */
.trio-card-body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.trio-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.trio-card--hot .trio-name { color: var(--color-white); }

.trio-desc {
    font-size: 13.5px;
    color: var(--color-gray-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.trio-card--hot .trio-desc { color: rgba(255,255,255,0.65); }

/* How it works box */
.trio-how {
    background: var(--color-gray-light);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.trio-card--hot .trio-how {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
}

.trio-how-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--trio-color, var(--color-red));
    margin-bottom: 6px;
}

.trio-how p {
    font-size: 12.5px;
    color: var(--color-gray-secondary);
    line-height: 1.65;
    margin: 0;
}

.trio-card--hot .trio-how p { color: rgba(255,255,255,0.55); }

/* Benefits list */
.trio-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trio-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-gray-text);
    font-weight: 500;
}

.trio-benefits li svg {
    color: var(--trio-color, var(--color-red));
    flex-shrink: 0;
}

.trio-card--hot .trio-benefits li { color: rgba(255,255,255,0.8); }

/* Best for */
.trio-best-for {
    margin-top: auto;
    font-size: 12px;
    color: var(--color-gray-meta);
    background: var(--color-gray-light);
    border-radius: 8px;
    padding: 10px 14px;
}

.trio-best-for span {
    font-weight: 700;
    color: var(--trio-color, var(--color-red));
}

.trio-card--hot .trio-best-for {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
}

.trio-card--hot .trio-best-for span { color: var(--color-red); }

/* ── Pro tip note ── */
.trio-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--color-red-light);
    border: 1px solid rgba(220,20,60,0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 8px;
}

.trio-note svg { color: var(--color-red); flex-shrink: 0; margin-top: 2px; }

.trio-note p {
    font-size: 13.5px;
    color: var(--color-gray-text);
    line-height: 1.65;
    margin: 0;
}

.trio-note strong { color: var(--color-black); }

/* ── Responsive ── */
@media (max-width: 1199px) {
    .trio-grid { gap: 16px; }
    .trio-acronym { font-size: 28px; }
    .trio-name { font-size: 18px; }
    .trio-card--mid { margin-top: 0; }
}

@media (max-width: 767px) {
    .trio-timeline { display: none; }
    .trio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .trio-card--mid { margin-top: 0; box-shadow: none; }
    .trio-card-top { padding: 20px 20px 16px; }
    .trio-card-body { padding: 18px 20px 22px; }
    .trio-acronym { font-size: 30px; }
    .trio-name { font-size: 17px; }
}

/* ===========================
   KEY TAKEAWAYS — WHY CLIENTS CHOOSE ME
=========================== */
.kt-section {
    margin-bottom: 36px;
}

/* ── Centered header ── */
.kt-head {
    text-align: center;
    margin-bottom: 24px;
}

.kt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--color-red);
    background: var(--color-red-light);
    border: 1px solid rgba(220,20,60,0.25);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.kt-heading {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 6px;
}

.kt-heading span { color: var(--color-red); }

.kt-sub {
    font-size: 13px;
    color: var(--color-gray-secondary);
    max-width: 380px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ── Cards grid ── */
.kt-cards {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* ── Individual card ── */
.kt-card {
    position: relative;
    background: var(--color-near-black);
    border-radius: 14px;
    padding: 20px 18px;
    overflow: hidden;
    cursor: default;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.35s ease;
    /* Staggered entrance animation */
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    animation: kt-card-in 0.6s cubic-bezier(0.22,1,0.36,1) forwards;
    animation-play-state: paused;
}

.kt-card.kt-visible {
    animation-play-state: running;
}

/* Stagger delays */
.kt-card:nth-child(1) { animation-delay: 0ms; }
.kt-card:nth-child(2) { animation-delay: 90ms; }
.kt-card:nth-child(3) { animation-delay: 180ms; }
.kt-card:nth-child(4) { animation-delay: 270ms; }
.kt-card:nth-child(5) { animation-delay: 360ms; }
.kt-card:nth-child(6) { animation-delay: 450ms; }

@keyframes kt-card-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.kt-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 24px 48px rgba(0,0,0,0.28);
}

/* Animated red glow that sharpens on hover */
.kt-card-glow {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(220,20,60,0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.7;
}

.kt-card:hover .kt-card-glow {
    transform: scale(1.5);
    opacity: 1;
}

/* Card number */
.kt-card-num {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(220,20,60,0.5);
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}

/* Icon circle */
.kt-card-icon {
    width: 36px;
    height: 36px;
    background: rgba(220,20,60,0.12);
    border: 1px solid rgba(220,20,60,0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-red);
    margin-bottom: 10px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.kt-card-icon svg { width: 17px; height: 17px; }

.kt-card:hover .kt-card-icon {
    background: var(--color-red);
    border-color: var(--color-red);
    color: white;
}

/* Big stat */
.kt-card-stat {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.01em;
    margin-bottom: 6px;
    line-height: 1;
}

/* Description */
.kt-card-text {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    line-height: 1.55;
    margin: 0;
}

.kt-card-text strong {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 1199px) {
    .kt-cards { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

@media (max-width: 767px) {
    .kt-section { margin-bottom: 28px; }
    .kt-head { margin-bottom: 18px; }
    .kt-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .kt-card { padding: 16px 14px; border-radius: 12px; }
    .kt-card-stat { font-size: 14px; }
    .kt-card-text { font-size: 11.5px; }
    .kt-card-icon { width: 32px; height: 32px; }
}

@media (max-width: 479px) {
    .kt-cards { grid-template-columns: 1fr; }
}

/* ===========================
   SERVICE PAGE SPECIFICS
=========================== */
.service-section-header {
    margin-bottom: 44px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-gray-medium);
}

.benefit-list { margin-top: 20px; }

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--color-gray-secondary);
}

.benefit-item i { color: var(--color-red); flex-shrink: 0; }

.pain-point {
    background: #fff5f5;
    padding: 18px 20px;
    border-radius: var(--border-radius);
    margin-top: 24px;
    border-left: 3px solid var(--color-red);
}

.pain-point h5 {
    color: var(--color-red);
    margin-bottom: 6px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.1em;
}

.pain-point p {
    font-size: 14px;
    color: var(--color-gray-secondary);
    font-style: italic;
}

/* ===========================
   TESTIMONIAL CARDS
=========================== */
.testimonial-card {
    background: var(--color-gray-light);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: var(--transition-std);
}

.testimonial-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.testimonial-quote {
    font-size: 14px;
    color: var(--color-gray-text);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
}

.testimonial-title {
    font-size: 12px;
    color: var(--color-gray-secondary);
    margin-top: 2px;
}

/* ===========================
   BREADCRUMB
=========================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-gray-meta);
    padding: 12px 0;
    margin-bottom: 20px;
}

.breadcrumb a { color: var(--color-red); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--color-gray-meta); }

/* ===========================
   TAG / BADGE
=========================== */
.tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--color-gray-light);
    color: var(--color-gray-secondary);
}

/* ===========================
   DIVIDER
=========================== */
.divider {
    width: 48px;
    height: 3px;
    background: var(--color-red);
    border-radius: 2px;
    margin: 16px 0;
}

.divider-center {
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   UTILITY CLASSES
=========================== */
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }

.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }

.text-red { color: var(--color-red); }
.text-gray { color: var(--color-gray-secondary); }
.text-black { color: var(--color-black); }
.text-white { color: var(--color-white); }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 18px; }

.bg-light { background: var(--color-gray-light); }
.bg-white { background: var(--color-white); }
.bg-dark { background: var(--color-near-black); }

.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.items-center { align-items: center; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

.w-full { width: 100%; }

/* ===========================
   PARALLAX + SCROLL EFFECTS
=========================== */

/* GPU compositing layer — only on elements actually translated by parallax JS.
   will-change is intentionally narrow: over-using it wastes GPU memory. */
.hero-visual, .hero-svg-wrap,
.hero-blob, .hero-blob-ring, .hero-dot-grid, .hero-dot-grid-2,
.hero-years-badge, .hero-float-card,
.about-img-col img, .portfolio-img-wrap, .portfolio-case-img-wrap,
.blog-card-img, .blog-feature-img, .article-hero,
.page-hero, .kt-bg-deco,
.plx-orb, .plx-dot, .plx-ring, .plx-bar {
    will-change: transform;
    /* Force GPU layer — eliminates compositor thread hand-off jank */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Ensure parallax image containers clip overflow */
.about-img-col, .about-preview,
.portfolio-img-wrap, .blog-card-img-wrap,
.portfolio-case-img-wrap {
    overflow: hidden;
}

/* ── Bidirectional scroll animation exit states ── */
/* Injected via JS (plx-deco-style) — listed here for reference:
   .sa.sa-exit-up   → element sliding/fading up (scrolled past going down)
   .sa.sa-exit-down → element sliding/fading down (scrolled back up)
   Actual rules injected by JS to keep them close to the JS logic */

/* ── Floating parallax decoration base styles ── */
.plx-orb, .plx-dot, .plx-ring, .plx-bar {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* ===========================
   REDUCED MOTION
=========================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .sa, .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===========================
   RESPONSIVE — TABLET (768–1199px)
=========================== */
@media (max-width: 1199px) {
    .container { padding: 0 24px; }

    h1, .hero-headline, .page-hero h1 { font-size: 40px; }
    h2, .section-heading { font-size: 32px; }
    h3 { font-size: 22px; }

    .section { padding: 72px 0; }

    .grid-3, .service-grid, .portfolio-grid, .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .about-preview .grid { gap: 40px; }

    .hero-layout {
        grid-template-columns: 1fr 340px;
        gap: 40px;
    }

    .hero-photo-frame { width: 100%; height: 380px; }

    .about-preview-grid { gap: 40px; }

    .about-img-col img { height: 420px; }

    /* About hero — tighten on tablets */
    .about-hero-grid {
        grid-template-columns: 1fr 220px;
        gap: 36px;
    }
    .about-hero-photo-wrap { width: 220px; }
    .about-hero-photo-frame { width: 220px; height: 270px; }

    .cta-strip { padding: 64px 0; }
    .cta-strip h2 { font-size: 30px; }

    .newsletter-strip { padding: 52px 0; }
    .newsletter-strip h2 { font-size: 28px; }
}

/* About hero — small tablets (768–900px): stack photo below text */
@media (max-width: 900px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .about-hero-photo { order: 1; display: flex; justify-content: center; }
    .about-hero-photo-wrap { width: 100%; max-width: 260px; }
    .about-hero-photo-frame { width: 100%; height: 260px; }
    .about-hero-photo-badge { display: none; }
}

/* ===========================
   RESPONSIVE — MOBILE (< 768px)
=========================== */
@media (max-width: 767px) {
    .container { padding: 0 16px; }

    /* Fluid headings */
    h1, .hero-headline, .page-hero h1 {
        font-size: clamp(26px, 7vw, 34px);
    }
    h2, .section-heading {
        font-size: clamp(22px, 5.5vw, 28px);
    }
    h3 { font-size: clamp(17px, 4.5vw, 20px); }
    h4 { font-size: 16px; }

    .section { padding: 48px 0; }
    .section-sm { padding: 40px 0; }
    .section-header { margin-bottom: 32px; }

    /* Hide desktop nav, show hamburger */
    .nav-links, .cta-btn { display: none; }
    .hamburger { display: flex; }

    /* ── Hero ── */
    .hero {
        padding: calc(var(--header-height) + 40px) 0 48px;
        min-height: auto;
    }

    .hero::after { display: none; }

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

    /* Tighten translate distance on mobile so pre-animation state
       cannot overflow the viewport and shift the scroll origin */
    .sa[data-anim="left"]  { transform: translateX(-16px); }
    .sa[data-anim="right"] { transform: translateX(16px); }

    .about-text-col {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-tagline { justify-content: center; }

    .hero-headline {
        font-size: clamp(26px, 7vw, 34px);
        margin-bottom: 16px;
    }

    .hero-subheading {
        font-size: 15px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 28px;
        max-width: 100%;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 36px;
    }

    .hero-btns .btn-primary,
    .btn-hero-outline {
        width: 100%;
        max-width: 100%;
        padding: 14px 24px;
    }

    .hero-stats {
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    .hero-stat strong { font-size: 22px; }
    .hero-stat span { font-size: 12px; }
    .hero-stat-divider { height: 28px; }

    /* Hero 2-col → stack */
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-photo-frame {
        width: 100%;
        max-width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    /* ── Grids ── */
    .grid-3, .grid-2, .grid-4,
    .service-grid, .portfolio-grid, .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Stats: 2×2 on mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card { padding: 24px 16px; }
    .stat-number { font-size: 28px; }

    .about-preview .grid,
    .about-preview-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Portrait image — fills full width, shows face at top */
    .about-img-col {
        width: 100%;
        overflow: hidden;
        border-radius: 20px;
    }
    .about-img-col img {
        width: 100%;
        height: clamp(300px, 90vw, 420px);
        object-fit: cover;
        object-position: center 10%;
        border-radius: 20px;
        border: none;
        display: block;
        box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    }
    .about-preview img { height: 220px; }

    /* ── Cards ── */
    .service-card {
        padding: 20px;
    }

    .service-card h3 { font-size: 17px; }

    .service-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

    .portfolio-img-wrap { height: 180px; }

    .portfolio-content { padding: 14px; }
    .portfolio-content h3 { font-size: 16px; }

    .blog-card-img { height: 140px; }
    .blog-card-body { padding: 14px; }
    .blog-card-body h3 { font-size: 16px; }

    /* ── Page Hero ── */
    .page-hero {
        padding: calc(var(--header-height) + 32px) 0 36px;
    }
    .page-hero p { font-size: 15px; }

    /* ── About Hero ── */
    .about-hero {
        padding: calc(var(--header-height) + 16px) 0 20px;
    }
    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .about-hero-text { order: 0; }
    .about-hero-photo { order: 1; display: flex; justify-content: center; }
    .about-hero-photo-wrap { width: 100%; max-width: 100%; }
    .about-hero-photo-frame { width: 100%; height: 300px; border-radius: 16px; }
    .about-hero-tags { margin-top: 14px; gap: 6px; }
    .about-hero-tags span { font-size: 11px; padding: 4px 10px; }
    .about-hero-photo-badge { display: none; }

    /* ── About page sections ── */
    .page-about .section { padding: 24px 0; }
    .page-about .section-header { margin-bottom: 20px; }
    .page-about .about-preview-grid { gap: 16px; }
    .page-about .about-img-col { height: 240px; border-radius: 14px; }
    .page-about .about-text-col p { margin-bottom: 10px; font-size: 14px; }
    .page-about .about-highlights { gap: 6px; }
    .page-about .about-highlight-item { font-size: 13px; }
    .page-about .timeline-item { margin-bottom: 16px; }
    .page-about .timeline-content h4 { font-size: 14px; }
    .page-about .timeline-content p { font-size: 13px; }
    .page-about .divider { margin: 8px 0 12px; }

    /* ── About overlays ── */
    .creative-img-overlay { display: flex; }
    .creative-img-title { font-size: 18px; }
    .creative-img-overlay { padding: 16px; }

    /* ── About page headings ── */
    .about-text-col h2 { font-size: clamp(20px, 5vw, 26px); margin-bottom: 8px; }

    /* ── Contact ── */
    .contact-grid {
        flex-direction: column;
        gap: 32px;
    }

    .contact-form-wrap { flex: none; width: 100%; }

    .contact-info-box { padding: 24px 20px; }

    /* ── Footer ── */
    .footer { padding: 48px 0 0; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 32px;
    }

    .footer-about p { max-width: 100%; }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        padding: 20px 0;
    }

    /* ── CTA strip ── */
    .cta-strip {
        padding: 48px 0;
    }
    .cta-strip h2 {
        font-size: clamp(20px, 5.5vw, 26px);
        margin-bottom: 12px;
    }
    .cta-strip p { font-size: 15px; margin-bottom: 24px; }

    /* ── Newsletter ── */
    .newsletter-strip { padding: 48px 0; }
    .newsletter-strip h2 { font-size: clamp(20px, 5.5vw, 26px); }
    .newsletter-strip p { font-size: 14px; }
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    .newsletter-form .btn { width: 100%; }

    /* ── Filter tabs ── */
    .filter-tabs { gap: 6px; }
    .filter-tab { padding: 8px 12px; font-size: 13px; }

    /* ── Section sub ── */
    .section-sub { font-size: 15px; }

    /* ── Buttons full-width on small screens ── */
    .btn-lg { padding: 14px 28px; font-size: 15px; }

    /* ── Floating buttons: avoid overlap ── */
    /* WhatsApp: bottom: 88px, Back-to-top: bottom: 16px */
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    /* ── Timeline ── */
    .timeline-item { margin-bottom: 28px; }

    /* ── Testimonials ── */
    .testimonial-card { padding: 20px; }

    /* ── Breadcrumb ── */
    .breadcrumb { flex-wrap: wrap; }

    /* ── Divider ── */
    .divider { margin: 12px 0; }

    /* ── Utility margin overrides on mobile ── */
    .mb-48 { margin-bottom: 32px; }
    .mt-48 { margin-top: 32px; }
    .mb-40 { margin-bottom: 28px; }
    .mt-40 { margin-top: 28px; }
}

/* ===========================
   SERVICES PAGE — auto-fit grid overflow fix
=========================== */
@media (max-width: 480px) {
    /* services.html uses minmax(320px,1fr) — override to prevent overflow */
    .grid[style*="minmax(320px"] {
        grid-template-columns: 1fr !important;
    }
    .grid[style*="minmax(240px"] {
        grid-template-columns: 1fr !important;
    }
    .grid[style*="minmax(220px"] {
        grid-template-columns: 1fr !important;
    }
}

/* ===========================
   RESPONSIVE — SMALL PHONES (< 400px)
=========================== */
@media (max-width: 399px) {
    .container { padding: 0 12px; }

    h1, .hero-headline, .page-hero h1 { font-size: 24px; }
    h2, .section-heading { font-size: 20px; }
    h3 { font-size: 16px; }

    .hero-tagline { font-size: 10px; padding: 5px 10px; }

    .hero-btns .btn-primary,
    .btn-hero-outline {
        font-size: 14px;
        padding: 12px 20px;
    }

    /* Stats: 2×2 still works; reduce number size */
    .stat-number { font-size: 24px; }
    .stat-card { padding: 18px 12px; }

    .mobile-nav-drawer { width: 88vw; }

    .footer-grid { gap: 20px; }

    .cta-strip h2 { font-size: 19px; }
    .newsletter-strip h2 { font-size: 19px; }
}
