/* ═══════════════════════════════════════════════════════════
   DCG Web — Main Stylesheet
   Theme: Terminal Editorial — dark, precise, electric
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────── */
:root {
    /* Colors */
    --bg:          #08080f;
    --bg-1:        #0e0e1d;
    --bg-2:        #131326;
    --bg-card:     #10101f;
    --accent:      #3fffa8;
    --accent-dim:  color-mix(in srgb, var(--accent) 12%, transparent);
    --accent-glow: color-mix(in srgb, var(--accent) 25%, transparent);
    --accent-2:    #7b61ff;
    --text:        #dde0f0;
    --text-muted:  #5a5a7a;
    --border:      rgba(255, 255, 255, 0.055);
    --border-h:    color-mix(in srgb, var(--accent) 20%, transparent);

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body:    'DM Sans', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    /* Spacing */
    --section-gap: clamp(80px, 10vw, 140px);
    --container:   1200px;

    /* Cursor spotlight position (updated by JS) */
    --cx: -500px;
    --cy: -500px;

    /* Transitions */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

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

ul, ol {
    list-style: none;
}

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

/* ── Cursor Spotlight ───────────────────────────────────── */
#cursor-spotlight {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(
        700px circle at var(--cx) var(--cy),
        color-mix(in srgb, var(--accent) 5%, transparent) 0%,
        rgba(123, 97, 255, 0.02) 40%,
        transparent 70%
    );
    transition: background 0.1s linear;
}

/* ── Grain Overlay ──────────────────────────────────────── */
.grain-overlay {
    position: fixed;
    inset: -200%;
    z-index: 9999;
    pointer-events: none;
    width: 400%;
    height: 400%;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    animation: grain-shift 0.5s steps(2) infinite;
}

@keyframes grain-shift {
    0%   { transform: translate(0,    0);    }
    10%  { transform: translate(-5%,  -8%);  }
    20%  { transform: translate(8%,   3%);   }
    30%  { transform: translate(-3%,  9%);   }
    40%  { transform: translate(6%,   -4%);  }
    50%  { transform: translate(-9%,  5%);   }
    60%  { transform: translate(4%,   -7%);  }
    70%  { transform: translate(-7%,  2%);   }
    80%  { transform: translate(9%,   -6%);  }
    90%  { transform: translate(-4%,  7%);   }
    100% { transform: translate(3%,   -2%);  }
}

/* ── Typography Utilities ───────────────────────────────── */
.mono {
    font-family: var(--font-mono);
    font-size: 0.82em;
    letter-spacing: 0.02em;
}

.accent {
    color: var(--accent);
}

.accent-text {
    color: var(--accent);
}

/* ── Container ──────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85em;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    border: 1.5px solid var(--accent);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    transition: opacity 0.2s;
}

.btn-primary:hover::before {
    opacity: 0.1;
}

.btn-primary:hover {
    box-shadow: 0 0 28px var(--accent-glow), 0 0 60px color-mix(in srgb, var(--accent) 10%, transparent);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--border-h);
    color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-2px);
}

/* ── Section Shared ─────────────────────────────────────── */
.section-label {
    display: block;
    color: var(--accent);
    font-size: 0.78em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.8;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--text);
    letter-spacing: -0.02em;
}

.section-header {
    margin-bottom: clamp(48px, 6vw, 72px);
}

/* ── Animated Section Divider ───────────────────────────── */
.section-divider {
    height: 1px;
    margin: 0 auto;
    max-width: var(--container);
    padding: 0 clamp(20px, 5vw, 60px);
    position: relative;
    overflow: hidden;
}

.section-divider::after {
    content: '';
    display: block;
    height: 1px;
    width: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent) 30%,
        var(--accent-2) 60%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: divider-slide 4s linear infinite;
    opacity: 0.35;
}

@keyframes divider-slide {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ── Scroll Reveal Animations ───────────────────────────── */
.reveal-up {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.7s var(--ease),
        transform 0.7s var(--ease);
    transition-delay: var(--delay, 0ms);
}

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

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
    border-bottom: 1px solid transparent;
}

#nav.scrolled {
    background: rgba(8, 8, 15, 0.82);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom-color: var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container);
    margin: 0 auto;
    padding: 22px clamp(20px, 5vw, 60px);
    height: 72px;
    box-sizing: content-box;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    transition: color 0.2s;
    position: relative;
    z-index: 1001;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.82em;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a:hover::after {
    color: var(--accent);
    width: 100%;
}

.nav-links a.nav-cta {
    border: 1px solid var(--accent);
    padding: 8px 18px;
    border-radius: 4px;
    color: var(--accent);
    background: transparent;
    font-weight: 600;
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-links a.nav-cta::after {
    display: none;
}

.nav-links a.nav-cta:hover {
    background: var(--accent);
    color: var(--bg);
}

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

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

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

/* Mobile Nav */
.nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(8, 8, 15, 0.97);
    backdrop-filter: blur(20px);
    transition: max-height 0.4s var(--ease), padding 0.3s;
    border-top: 1px solid transparent;
}

.nav-mobile.open {
    max-height: 400px;
    border-top-color: var(--border);
    padding: 12px 0 20px;
}

.nav-mobile a {
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--text-muted);
    padding: 14px clamp(20px, 5vw, 60px);
    border-bottom: 1px solid var(--border);
    transition: color 0.2s, background 0.2s;
    display: block;
}

.nav-mobile a:last-child {
    border-bottom: none;
    color: var(--accent);
}

.nav-mobile a:hover {
    color: var(--accent);
    background: var(--accent-dim);
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px clamp(20px, 5vw, 60px) 80px;
    position: relative;
    overflow: hidden;
}

/* Radial bg glow behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 4%, transparent) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: -5%;
    width: 40%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(123, 97, 255, 0.04) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.82em;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 28px;
    animation: fade-up 0.8s var(--ease) 0.1s both;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 9vw, 8.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.035em;
    margin-bottom: 32px;
    color: var(--text);
    animation: fade-up 0.9s var(--ease) 0.2s both;
}

.hero-headline .scramble {
    display: inline-block;
    position: relative;
}

.hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 44px;
    animation: fade-up 0.9s var(--ease) 0.35s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fade-up 0.9s var(--ease) 0.5s both;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: clamp(20px, 5vw, 60px);
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
    font-size: 0.7em;
    letter-spacing: 0.12em;
    animation: fade-up 1s var(--ease) 0.8s both;
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    animation: scroll-pulse 2s ease-in-out infinite 1.5s;
}

@keyframes scroll-pulse {
    0%   { left: -100%; opacity: 1; }
    100% { left: 100%;  opacity: 0; }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Text glitch ─────────────────────────────────────── */
/*
   Close keyframe pairs (e.g. 20%/21%) create instant jumps —
   the animation stays at the first value, then snaps to the next.
   This mimics a real digital glitch without steps() hacks.
*/
@keyframes text-glitch {
    0%,  19% { text-shadow: none;                                                                      transform: none; }
    20%, 32% { text-shadow: -3px 0 rgba(255,0,128,.65), 3px 0 rgba(0,229,255,.65);                    transform: skewX(-1.5deg) translateX(-2px); }
    33%, 44% { text-shadow:  2px 0 rgba(255,0,128,.5), -2px 0 rgba(0,229,255,.6);                     transform: skewX( 1deg)   translateX( 2px); }
    45%, 62% { text-shadow: none;                                                                      transform: translateX(-1px); }
    63%, 63% { text-shadow: none;                                                                      transform: none; }
    64%, 74% { text-shadow: -1px 0 rgba(255,0,128,.4),  1px 0 rgba(0,229,255,.4);                     transform: skewX(-.5deg); }
    75%,100% { text-shadow: none;                                                                      transform: none; }
}

.is-glitching {
    display: inline-block; /* enables transform on inline spans */
    animation: text-glitch 0.38s linear forwards;
}

/* ═══════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════ */
.services {
    padding: var(--section-gap) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.service-card {
    background: rgba(19, 19, 38, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    cursor: default;
    transition:
        border-color 0.35s var(--ease),
        transform 0.35s var(--ease),
        background 0.35s var(--ease);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Animated glow border on hover via pseudo element */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        var(--accent-glow) 0%,
        rgba(123, 97, 255, 0.12) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    z-index: 0;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.service-card:hover {
    border-color: transparent;
    transform: translateY(-6px);
    background: rgba(19, 19, 38, 0.85);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    opacity: 0.25;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card-icon {
    color: var(--accent);
    margin-bottom: 22px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
    transition: all 0.3s;
}

.service-card:hover .service-card-icon {
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 15%, transparent);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 22px;
}

.service-tag {
    font-size: 0.72em;
    color: var(--accent);
    opacity: 0.7;
    letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════ */
.about {
    padding: var(--section-gap) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.about-left p {
    color: var(--text-muted);
    margin-bottom: 16px;
    max-width: 480px;
    line-height: 1.75;
}

.about-left .section-title {
    margin-bottom: 24px;
}

.about-stats {
    display: flex;
    gap: 36px;
    margin-top: 40px;
    flex-wrap: wrap;
}

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

.stat-num {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 500;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.04em;
}

.stat-label {
    font-size: 0.8em;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* Terminal block */
.about-terminal {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(6, 6, 14, 0.9);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--accent) 5%, transparent),
        0 32px 64px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: box-shadow 0.4s var(--ease), border-color 0.4s;
}

.about-terminal:hover {
    border-color: color-mix(in srgb, var(--accent) 12%, transparent);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent),
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 60px color-mix(in srgb, var(--accent) 4%, transparent);
}

.terminal-bar {
    background: rgba(15, 15, 28, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}
.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }

.terminal-title {
    margin-left: auto;
    font-size: 0.72em;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.terminal-body {
    padding: 24px 22px;
    font-size: 0.83em;
    line-height: 1.85;
}

.t-prompt {
    color: var(--accent);
    margin-right: 6px;
}

.t-cmd {
    color: var(--text);
}

.t-out {
    color: var(--text-muted);
    padding-left: 2px;
}

.t-key {
    color: #7dd3fc;
}

.t-val {
    color: #86efac;
}

.t-cursor {
    margin-top: 4px;
}

.cursor-blink {
    color: var(--accent);
    animation: blink 1.2s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   WORK / PORTFOLIO
   ═══════════════════════════════════════════════════════════ */
.work {
    padding: var(--section-gap) 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.work-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--accent) 15%, transparent);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px color-mix(in srgb, var(--accent) 4%, transparent);
}

.work-card-img {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: hsl(var(--hue, 160), 40%, 8%);
}

/* Placeholder gradient pattern for project images */
.work-card-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, hsla(var(--hue, 160), 80%, 50%, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, hsla(calc(var(--hue, 160) + 40), 70%, 60%, 0.08) 0%, transparent 50%);
    animation: work-pulse 6s ease-in-out infinite alternate;
}

.work-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(16, 16, 31, 0.8) 100%
    );
}

@keyframes work-pulse {
    from { opacity: 0.6; }
    to   { opacity: 1; }
}

.work-card-overlay {
    position: absolute;
    inset: 0;
    background: hsla(var(--hue, 160), 50%, 40%, 0);
    transition: background 0.3s;
    z-index: 1;
}

.work-card:hover .work-card-overlay {
    background: hsla(var(--hue, 160), 50%, 40%, 0.06);
}

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

.work-type {
    font-size: 0.73em;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.75;
    display: block;
    margin-bottom: 8px;
}

.work-card-info h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.work-card-info p {
    font-size: 0.88em;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.6;
}

.work-link {
    font-family: var(--font-mono);
    font-size: 0.78em;
    color: var(--accent);
    letter-spacing: 0.05em;
    opacity: 0.8;
    transition: opacity 0.2s, letter-spacing 0.2s;
}

.work-link:hover {
    opacity: 1;
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════
   PORTFOLIO MODAL
   ═══════════════════════════════════════════════════════════ */
.pf-modal {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    pointer-events: none;
}

.pf-modal:not([aria-hidden="true"]) {
    visibility: visible;
    pointer-events: auto;
}

.pf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 15, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pf-modal:not([aria-hidden="true"]) .pf-modal-backdrop {
    opacity: 1;
}

.pf-modal-panel {
    position: relative;
    background: #0f0f1a;
    border: 1px solid var(--border-h);
    border-radius: 14px;
    width: 100%;
    max-width: 560px;
    overflow: hidden;
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.pf-modal:not([aria-hidden="true"]) .pf-modal-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.pf-modal-hero {
    height: 180px;
    background: hsl(var(--pf-hue, 160), 60%, 18%);
    background-image:
        radial-gradient(ellipse at 30% 50%, hsl(var(--pf-hue, 160), 80%, 30%) 0%, transparent 65%),
        radial-gradient(ellipse at 75% 60%, hsl(calc(var(--pf-hue, 160) + 30), 70%, 22%) 0%, transparent 60%);
}

.pf-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.pf-modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text);
}

.pf-modal-body {
    padding: 28px 32px 32px;
}

.pf-modal-type {
    font-size: 0.72em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.8;
    display: block;
    margin-bottom: 10px;
}

.pf-modal-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
    color: var(--text);
}

.pf-modal-desc {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 28px;
    font-size: 0.95em;
}

.pf-modal-link {
    display: inline-flex;
}

.pf-modal-link[data-hidden="true"] {
    display: none;
}

/* Make work cards clearly clickable */
.work-card {
    cursor: pointer;
}

.work-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Card with real image — suppress gradient bg, keep fade overlay */
.work-card-img.has-image::before {
    display: none;
}

.work-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: object-position 4s ease-in-out;
}

.work-card:hover .work-card-img img {
    object-position: center bottom;
}

/* Gallery inside modal hero */
.pf-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.pf-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pf-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.pf-gallery-btn:hover {
    background: rgba(0,0,0,0.7);
}

.pf-gallery-prev { left: 10px; }
.pf-gallery-next { right: 10px; }

.pf-gallery-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.pf-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: background 0.2s;
}

.pf-dot.active {
    background: #fff;
}

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════ */
.testimonials { padding: var(--section-gap) 0; }

/* Outer mask — fades edges so the loop looks seamless */
.testimonials-track-wrap {
    margin-top: 48px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Inner scrolling row */
.testimonials-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: testimonials-scroll 35s linear infinite;
}

/* Pause on hover/focus */
.testimonials-track-wrap:hover .testimonials-track,
.testimonials-track-wrap:focus-within .testimonials-track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .testimonials-track { animation: none; }
    .testimonials-track-wrap {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

@keyframes testimonials-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    width: 320px;
    flex-shrink: 0;
}

.testimonial-stars { display: flex; gap: 3px; }
.star-filled { color: var(--accent); font-size: 1rem; }
.star-empty  { color: var(--border);  font-size: 1rem; }

.testimonial-content {
    font-size: .95rem;
    line-height: 1.7;
    color: var(--text);
    flex: 1;
    margin: 0;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: .9rem;
    font-weight: 700;
    overflow: hidden;
}
.testimonial-avatar img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.testimonial-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.testimonial-name {
    font-style: normal;
    font-weight: 600;
    font-size: .9rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.testimonial-role {
    font-size: .78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .testimonial-card { width: 280px; }
}

/* ═══════════════════════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════════════════════ */

/* Shared: listing page + homepage preview */
.blog-preview  { padding: var(--section-gap) 0; }
.blog-page     { padding: var(--section-gap) 0 calc(var(--section-gap) * 1.5); }

.blog-list-header { margin-bottom: 48px; }
.blog-list-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 12px;
    max-width: 560px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}
.blog-grid--preview { margin-top: 40px; }

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
}
.blog-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.blog-card-img-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--bg-card);
}
.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.blog-card:hover .blog-card-img { transform: scale(1.04); }
.blog-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-card) 0%, hsl(160 40% 8%) 100%);
}

.blog-card-body {
    padding: 20px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}
.blog-card-cat {
    font-size: .72rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.blog-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.blog-card-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}
.blog-card-title a:hover { color: var(--accent); }
.blog-card-excerpt {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.blog-card-date { font-size: .75rem; color: var(--text-muted); }
.blog-card-read { font-size: .78rem; color: var(--accent); text-decoration: none; }
.blog-card-read:hover { text-decoration: underline; }

.blog-preview-more { text-align: center; margin-top: 40px; }

/* Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 56px;
}

/* ── Blog post detail ─────────────────────────── */
.blog-post { padding: var(--section-gap) 0 calc(var(--section-gap) * 1.5); }

.blog-post-header {
    max-width: 760px;
    margin: 28px auto 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.blog-post-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}
.blog-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .83rem;
}

.blog-post-hero {
    max-width: 900px;
    margin: 0 auto 48px;
}
.blog-post-hero-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    border: 1px solid var(--border);
}

.blog-post-body {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
}
.blog-post-body h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5em 0 .75em;
    color: var(--text);
}
.blog-post-body h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2em 0 .5em;
    color: var(--text);
}
.blog-post-body p  { margin: 0 0 1.4em; }
.blog-post-body ul,
.blog-post-body ol { margin: 0 0 1.4em; padding-left: 1.6em; }
.blog-post-body li { margin-bottom: .4em; }
.blog-post-body a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.blog-post-body strong { color: var(--text); font-weight: 600; }
.blog-post-body code {
    font-family: var(--font-mono);
    font-size: .88em;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
}
.blog-post-body pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 0 0 1.4em;
}
.blog-post-body pre code { background: none; border: none; padding: 0; }
.blog-post-body blockquote {
    border-left: 3px solid var(--accent);
    margin: 1.4em 0;
    padding: .5em 0 .5em 1.4em;
    color: var(--text-muted);
    font-style: italic;
}
.blog-post-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1em 0;
    border: 1px solid var(--border);
}
.blog-post-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5em 0;
}

.blog-post-tags {
    max-width: 760px;
    margin: 32px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.blog-post-back {
    max-width: 760px;
    margin: 40px auto 0;
}

@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-post-title { font-size: 1.7rem; }
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact {
    padding: var(--section-gap) 0 calc(var(--section-gap) * 1.2);
}

.contact-grid {
    display: flex;
    gap: 48px;
    align-items: start;
}

.contact-left,
.contact-right {
    flex: 1 1 0;
    min-width: 0;
}

.contact-title {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    line-height: 1.05;
    margin-bottom: 28px;
}

.contact-sub {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 40px;
    font-size: 1.05em;
}

.contact-actions {
    margin-bottom: 28px;
}

.contact-note {
    color: var(--text-muted);
    font-size: 0.74em;
    letter-spacing: 0.06em;
    opacity: 0.6;
}

/* ── Contact form ────────────────────────────────────── */
.contact-alert {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 0.9em;
    line-height: 1.5;
}

.contact-alert-success {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    color: var(--accent);
}

.contact-alert-error {
    background: color-mix(in srgb, #ff5555 10%, transparent);
    border: 1px solid color-mix(in srgb, #ff5555 35%, transparent);
    color: #ff8888;
}

.contact-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    visibility: hidden;
    pointer-events: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.cf-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.cf-label {
    font-size: 0.78em;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.cf-input {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 11px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.cf-input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.cf-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

.cf-has-error .cf-input {
    border-color: #ff5555;
}

.cf-textarea {
    resize: vertical;
    min-height: 120px;
}

.cf-error {
    font-size: 0.8em;
    color: #ff8888;
    margin: 0;
}

.cf-submit {
    align-self: flex-start;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
#footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 32px;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.75em;
    opacity: 0.5;
}

.footer-links {
    margin-left: auto;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.78em;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 0.72em;
    color: var(--text-muted);
    opacity: 0.4;
    letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-right {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero-headline {
        font-size: clamp(1.8rem, 8vw, 5rem);
    }

    .about-stats {
        gap: 24px;
    }

    .contact-grid {
        flex-direction: column;
        gap: 48px;
    }

    .contact-left,
    .contact-right {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-links {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
        justify-content: center;
    }
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

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

    .grain-overlay {
        display: none;
    }
}

/* ══════════════════════════════════════════════
   CASE STUDY PAGE
══════════════════════════════════════════════ */

.cs-page { padding-bottom: 0; }

/* Back link */
.cs-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    margin: 36px 0 0;
}
.cs-back-link:hover { color: var(--accent); }

/* Header */
.cs-header { padding: 40px 0 48px; max-width: 780px; }
.cs-type {
    display: block;
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}
.cs-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 28px;
}
.cs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
}
.cs-meta-item { display: flex; flex-direction: column; gap: 4px; }
.cs-meta-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.cs-meta-value { font-size: 0.9rem; font-weight: 500; }

/* Slider */
.cs-slider { margin-bottom: 64px; }
.cs-slider-main {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 16/9;
    max-height: 500px;
    background: var(--bg-card);
    overflow: hidden;
}
.cs-slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s;
}
.cs-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8,8,15,0.75);
    border: 1px solid var(--border);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
}
.cs-slider-btn:hover { background: var(--accent); color: var(--bg); }
.cs-slider-prev { left: 20px; }
.cs-slider-next { right: 20px; }
.cs-slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.cs-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}
.cs-dot.active { background: var(--accent); }
.cs-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--container-pad, 24px);
}
.cs-thumb {
    width: 80px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: border-color 0.15s;
    flex-shrink: 0;
}
.cs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-thumb.active { border-color: var(--accent); }

/* Body content */
.cs-body { padding-bottom: 80px; }

.cs-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 0 40px;
}

.cs-tools-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}
.cs-stack-badges { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.cs-badge {
    font-size: 0.78rem;
    padding: 4px 12px;
    border: 1px solid var(--border-hl);
    border-radius: 4px;
    color: var(--text-muted);
}
.cs-link-btns { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

/* Pillars */
.cs-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}
.cs-pillar { display: flex; flex-direction: column; gap: 14px; }
.cs-pillar-label {
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.06em;
}
.cs-pillar p {
    font-size: 0.95rem;
    line-height: 1.78;
    color: var(--text-muted);
    margin: 0;
}

/* Write-up */
.cs-writeup {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

/* Testimonial */
.cs-testimonial {
    margin-bottom: 0;
    padding: 40px 48px;
    border-left: 3px solid var(--accent);
    background: var(--bg-card);
    border-radius: 0 10px 10px 0;
}
.cs-testimonial-text {
    font-size: 1.1rem;
    line-height: 1.75;
    font-style: italic;
    margin: 0 0 16px;
}
.cs-testimonial-author {
    font-size: 0.82rem;
    color: var(--accent);
    font-style: normal;
}

/* Contact section */
.cs-contact {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 80px 0 100px;
    margin-top: 80px;
}
.cs-contact-inner { max-width: 680px; }
.cs-contact-label { font-size: 0.82rem; margin-bottom: 10px; display: block; }
.cs-contact-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin: 0 0 12px;
}
.cs-contact-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}
.cs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Modal actions */
.pf-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* Responsive */
@media (max-width: 768px) {
    .cs-pillars { grid-template-columns: 1fr; gap: 40px; }
    .cs-testimonial { padding: 28px 32px; }
    .cs-form-row { grid-template-columns: 1fr; }
    .cs-tools-row { flex-direction: column; }
}
@media (max-width: 480px) {
    .cs-title { font-size: clamp(1.9rem, 9vw, 3.5rem); }
    .cs-thumbs { padding: 0 16px; }
}
