/* ============================================
   CHISEL & BRAND — Master Stylesheet
   ============================================

   TABLE OF CONTENTS
   -----------------
   1.  Fonts & Variables
   2.  Reset
   3.  Base Typography
   4.  Utility: Highlights
   5.  Utility: Backgrounds
   6.  Utility: Layout
   7.  Buttons
   8.  Navigation
   9.  Eyebrow
   10. Page Intro
   11. Section Components
   12. CTA Banner
   13. Footer
   14. Homepage: Hero
   15. Homepage: Tools / Services
   16. Homepage: About Preview
   17. Homepage: Clients, Testimonial & Popups
   18. About Page
   19. Services Page
   20. Contact Page
   21. For Clients Page
   22. Responsive
   23. Case Studies Page
   ============================================ */

/* ============================================
   1. FONTS & VARIABLES
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Lora:ital,wght@0,400..700;1,400..700&display=swap");

:root {
    /* Brand colors */
    --yellow: #ffc001;
    --purple: #8419b5;
    --blue: #0c71c3;
    --red: #e0306a;
    --dark: #1a1a1a;
    --darker: #0f0f0f;
    --mid: #2a2a42;
    --light-bg: #f5f5f8;
    --white: #ffffff;
    --text: #1a1a1a;
    --text-light: #5a5a5a;
    --border: #e0e0ea;

    /* Gradient */
    --gradient: linear-gradient(135deg, #1389ed 0%, #8a12b1 50%, #f53b55 100%);
    --gradient-text: linear-gradient(
        135deg,
        #1389ed 0%,
        #8a12b1 50%,
        #f53b55 100%
    );

    /* Typography */
    --font-display: "Roboto Condensed", "Arial Narrow", Impact, sans-serif;
    --font-body: "Lora", "Helvetica Neue", Arial, sans-serif;

    /* Layout */
    --max-width: 1160px;
    --nav-height: 72px;
    --section-pad: 5rem;
}

/* ============================================
   2. RESET
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   3. BASE TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1em;
}
h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
}
h2 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    color: var(--dark);
}
h3 {
    font-size: clamp(2rem, 4vw, 3.75rem);
    color: var(--dark);
}
h4 {
    font-size: clamp(1.2rem, 2vw, 1.875rem);
    color: var(--dark);
}
p.boldish {
    color: rgba(0, 0, 0, 0.75);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    font-weight: 700;
}
p {
    line-height: 1.75;
}

/* ============================================
   4. UTILITY: HIGHLIGHTS (inline color)
   ============================================ */

.highlight-yellow {
    color: var(--yellow);
}
.highlight-blue {
    color: var(--blue);
}
.highlight-purple {
    color: var(--purple);
}
.highlight-red {
    color: var(--red);
}
.highlight-white {
    color: var(--white);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   5. UTILITY: BACKGROUNDS
   ============================================ */

.bg-white {
    background: var(--white);
}
.bg-light {
    background: var(--light-bg);
}
.bg-yellow {
    background: var(--yellow);
}
.bg-purple {
    background: var(--purple);
}
.bg-dark {
    background: var(--dark);
}
.bg-darker {
    background: var(--darker);
}
.bg-grey {
    background: #ccc !important);
}

/* Text color helpers for dark backgrounds */
.bg-purple h2,
.bg-purple h3,
.bg-purple h4 {
    color: var(--white);
}
.bg-purple p {
    color: rgba(255, 255, 255, 0.85);
}

.bg-dark h2,
.bg-dark h3,
.bg-dark h4 {
    color: var(--white);
}
.bg-dark p {
    color: rgba(255, 255, 255, 0.75);
}

.bg-darker h2,
.bg-darker h3,
.bg-darker h4 {
    color: var(--white);
}
.bg-darker p {
    color: rgba(255, 255, 255, 0.75);
}

/* ============================================
   6. UTILITY: LAYOUT
   ============================================ */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Standard section padding */
.section {
    padding: var(--section-pad) 0;
}
.section-sm {
    padding: 3rem 0;
}
.section-lg {
    padding: 7rem 0;
}

/* Two-column split layout */
.section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Three-column grid */
.col-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Centered text block */
.text-center {
    text-align: center;
}

.purple-box {
    padding: 3em;
    margin-top: 2em;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.purple-box.item-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   7. BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 0.7rem 2rem;
    height: 2.8rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    border: none;
}
.btn-text {
    position: relative;
    display: block;
    transition: transform 0.3s ease;
    z-index: 1;
}
.btn::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    transform: translateY(130%);
    transition: transform 0.3s ease;
    z-index: 1;
}
.btn:hover .btn-text {
    transform: translateY(-130%);
}
.btn:hover::after {
    transform: translateY(0);
}

/* Gradient fill */
.btn-primary {
    background: var(--gradient);
    color: #ffffff !important;
}
.btn-primary::after {
    color: #ffffff;
}
.btn-primary:hover {
    background: var(--dark);
    opacity: 1;
}

/* White outline (for dark/colored backgrounds) */
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline::after {
    color: var(--dark);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

/* Dark outline (for light backgrounds) */
.btn-outline-dark {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}
.btn-outline-dark::after {
    color: var(--white);
}
.btn-outline-dark:hover {
    background: var(--dark);
    color: var(--white);
}

/* ============================================
   8. NAVIGATION
   ============================================ */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    height: var(--nav-height);
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 200px;
}
.nav-logo img {
    height: 36px;
    width: auto;
    max-width: 100%;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--purple);
}
.nav-links .btn {
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

/* ============================================
   9. EYEBROW
   Used on all inner pages above headings.
   ============================================ */

.eyebrow {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.eyebrow::before {
    content: "—";
    color: var(--text-light);
}
/* Eyebrow on dark/colored backgrounds */
.bg-dark .eyebrow,
.bg-darker .eyebrow,
.bg-purple .eyebrow {
    color: rgba(255, 255, 255, 0.5);
}
.bg-dark .eyebrow::before,
.bg-darker .eyebrow::before,
.bg-purple .eyebrow::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   10. PAGE INTRO
   Standard white split-screen header used
   on all inner pages. Eyebrow + headline left,
   image or content right.
   ============================================ */

.page-intro {
    background: var(--white);
    padding: calc(var(--nav-height) + 4rem) 0 5rem;
}
.page-intro-copy h1 {
    color: var(--dark);
    margin-bottom: 1.5rem;
}
.page-intro-copy p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 1rem;
    max-width: 520px;
}
.page-intro-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

/* ============================================
   11. SECTION COMPONENTS
   ============================================ */

/* ---- Testimonial cards (image bg) ---- */
.testimonial-card {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.testimonial-card.card-visible { opacity: 1; transform: translateY(0); }
.col-3 .testimonial-card:nth-child(2) { transition-delay: 0.15s; }
.col-3 .testimonial-card:nth-child(3) { transition-delay: 0.3s; }
.testimonial-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}
.testimonial-card-content {
    position: relative;
    z-index: 1;
}
.testimonial-card .card-logo {
    height: 75px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 1;
    margin-bottom: 1rem;
    display: block;
}
.testimonial-card blockquote p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    font-weight: 600;
    font-family: open sans;
    margin-bottom: 1rem;
}
.testimonial-card cite {
    font-style: normal;
    color: white;
    font-size: 0.82rem;
}
.testimonial-card cite strong {
    display: block;
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.1rem;
}

/* ---- Client logo grid ---- */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}
.client-logo {
    padding: 1.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.client-logo:hover {
    transform: translateY(-4px);
}
.client-logo img {
    max-height: 84px;
    max-width: 100%;
    width: auto;
    opacity: 1;
}

/* ---- Services bullet list ---- */
.services-list {
    list-style: none;
}
.services-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.service-bullet {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid #1a9a8a;
    flex-shrink: 0;
    margin-top: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.service-bullet::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #1a9a8a;
    animation: bullet-ping 2s ease-out infinite;
    opacity: 0;
}
.service-bullet::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a9a8a;
    position: relative;
    z-index: 1;
}
@keyframes bullet-ping {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}
.services-list li:nth-child(2) .service-bullet::before { animation-delay: 0.5s; }
.services-list li:nth-child(3) .service-bullet::before { animation-delay: 1s; }
.services-list li:nth-child(4) .service-bullet::before { animation-delay: 1.5s; }
.service-item-text h4 {
    margin-bottom: 0.25rem;
    line-height: 1.1;
}
.service-item-text p {
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ============================================
   12. CTA BANNER
   ============================================ */

.cta-banner {
    background: var(--white);
    padding: var(--section-pad) 0;
    text-align: center;
    border-top: 1px solid var(--border);
}
.cta-banner h2 {
    color: var(--dark);
    margin-bottom: 0.2rem;
}
.cta-banner h2 em {
    font-style: italic;
    background: linear-gradient(
        135deg,
        #1389ed 0%,
        #8a12b1 20%,
        #f53b55 35%,
        #f53b55 65%,
        #8a12b1 80%,
        #1389ed 100%
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s linear infinite;
}
@keyframes gradient-shift {
    0%   { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}
.cta-banner .btn {
    margin-top: 2rem;
}

/* ============================================
   13. FOOTER
   ============================================ */

.site-footer {
    background: var(--darker);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    align-items: center;
    gap: 3rem;
    padding-bottom: 2.5rem;
}
.footer-logo img {
    height: 40px;
    margin-bottom: 0.75rem;
}
.footer-logo p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    max-width: 360px;
}
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: color 0.2s;
}
.footer-contact a:hover {
    color: var(--white);
}
.footer-social a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
    display: flex;
    align-items: center;
}
.footer-social a:hover {
    color: var(--white);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
}
.footer-bottom a {
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.2s;
}
.footer-bottom a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   14. HOMEPAGE: HERO
   ============================================ */

.hero {
    background: var(--darker);
    position: relative;
    overflow: hidden;
    margin-top: var(--nav-height);
}
.hero-photo {
    position: absolute;
    inset: 0;
}
.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-attachment: fixed;
}

@supports (background-attachment: fixed) {
    .hero-photo {
        background-image: url('images/dc-purple-1.png');
        background-size: cover;
        background-position: center bottom;
        background-attachment: fixed;
    }
    .hero-photo img { display: none; }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(19,137,237,0.55) 0%,
        rgba(139,47,201,0.5) 20%,
        rgba(245,59,85,0.45) 35%,
        rgba(245,59,85,0.45) 65%,
        rgba(139,47,201,0.5) 80%,
        rgba(19,137,237,0.55) 100%
    );
    background-size: 400% 400%;
    animation: hero-sweep 12s linear infinite;
    z-index: 1;
}
@keyframes hero-sweep {
    0%   { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}
.hero-inner {
    position: relative;
    display: flex;
    justify-content: flex-end;
    min-height: 520px;
    z-index: 2;
}
.hero-panels {
    width: 45%;
    display: flex;
    flex-direction: column;
}
.hero-panel-top {
    background: #0f0f1a;
    padding: 2.5rem 3rem 2rem;
    margin: 3.5rem 7.5rem 0 0;
}
.hero-panel-top .eyebrow {
    color: white;
    margin: 0 0 0 0.75rem;
}
.hero-panel-top .eyebrow::before {
    display: none;
}
.hero-logo {
    max-width: 100%;
    height: auto;
    display: block;
}
.hero-panel-bottom {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 120px;
}
.hero-copy {
    background: var(--white);
    padding: 2.25rem 2.5rem 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 20px solid black;
}
.hero-copy p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0.6rem;
}
.hero-copy p em {
    font-style: italic;
}
.hero-yellow {
    background: var(--yellow);
}

/* ============================================
   15. HOMEPAGE: TOOLS / SERVICES
   ============================================ */

.tools-section {
    background: var(--yellow);
    padding: 3.5rem 0 4rem;
}
.tools-headline {
    padding-bottom: 30px;
}
.tools-body {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.tools-left .btn {
    margin-top: 1.5rem;
}
.tools-right {
    margin-bottom: 20px;
}

/* ============================================
   16. HOMEPAGE: ABOUT PREVIEW
   ============================================ */

.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}
.about-image {
    overflow: hidden;
    transform: translateX(-60px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}
.about-image.slide-in {
    transform: translateX(0);
    opacity: 1;
}
.about-image img {
    width: 90%;
    height: auto;
    max-width: 1056px;
    object-fit: contain;
    display: block;
}
.about-copy {
    background: var(--darker);
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-copy h2 {
    color: var(--white);
    margin-bottom: 1rem;
}
.about-copy p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

/* ============================================
   17. HOMEPAGE: CLIENTS & TESTIMONIAL
   ============================================ */

.clients-section {
    background: var(--purple);
    padding: 4rem 0 0;
}
.clients-section h2,
.clients-section h4 {
    color: var(--white);
    margin-bottom: 0.25em;
}
.clients-section .sub {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2.5rem;
}
.testimonial-homepage {
    background: var(--purple);
    padding: 4rem 0 5rem;
    text-align: center;
    position: relative;
    margin: 2em 0px 0px 15%;
}
.testimonial-homepage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("images/keegan2-1.png");
    background-size: cover;
    background-position: center top;
    opacity: 0.55;
}
.testimonial-homepage .container {
    position: relative;
}
.testimonial-homepage blockquote {
    max-width: 720px;
    margin: 0 auto;
}
.testimonial-homepage blockquote p {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    font-weight: 500;
    color: var(--white);
    line-height: 1.35;
    margin-bottom: 1.5rem;
}
.testimonial-homepage cite {
    font-style: normal;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}
.testimonial-homepage cite strong {
    display: block;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

/* Client logo popups — desktop only */
.client-logo.has-popup { position: relative; }
.client-popup { display: none; }

@media (hover: hover) and (pointer: fine) {
    .client-popup {
        display: block;
        position: absolute;
        bottom: calc(100% + 12px);
        left: 50%;
        transform: translateX(-50%) translateY(6px);
        background: var(--white);
        border-radius: 6px;
        padding: 1rem 1.25rem;
        width: 220px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.18);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
        z-index: 50;
        text-align: left;
    }
    .client-popup::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 7px solid transparent;
        border-top-color: var(--white);
    }
    .client-logo.has-popup:hover .client-popup { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
    .client-logo.has-popup:nth-child(6n+1) .client-popup { left: 0; transform: translateX(0) translateY(6px); }
    .client-logo.has-popup:nth-child(6n+1) .client-popup::after { left: 20%; }
    .client-logo.has-popup:nth-child(6n+1):hover .client-popup { transform: translateX(0) translateY(0); }
    .client-logo.has-popup:nth-child(6n) .client-popup { left: auto; right: 0; transform: translateX(0) translateY(6px); }
    .client-logo.has-popup:nth-child(6n):hover .client-popup { transform: translateX(0) translateY(0); }
}
.cp-name { font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--purple); margin-bottom: 0.5rem; }
.cp-stat { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--dark); line-height: 1; margin-bottom: 0.1rem; }
.cp-stat-label { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; font-family: var(--font-display); letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.cp-quote { font-size: 0.78rem; color: var(--text-light); line-height: 1.55; font-style: italic; margin-bottom: 0.75rem; font-family: var(--font-body); }
.cp-desc  { font-size: 0.78rem; color: var(--text-light); line-height: 1.55; margin-bottom: 0.75rem; font-family: var(--font-body); }
.cp-tags  { display: flex; flex-wrap: wrap; gap: 4px; }
.cp-tags span { font-family: var(--font-display); font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; background: var(--yellow); color: var(--dark); padding: 2px 8px; border-radius: 20px; }

/* ============================================
   18. ABOUT PAGE
   ============================================ */

/* Team section (yellow) */
.about-team {
    padding: 4rem 0 5rem;
}
.about-team h2 {
    margin-bottom: 3rem;
}
.team-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}
.team-member-left,
.team-member-right {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.8);
}
.team-member-left p strong,
.team-member-right p strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.team-photos {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}
.team-photos img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.7s ease, opacity 0.7s ease;
}
.team-photos img:nth-child(2) {
    transition-delay: 0.2s;
}
.team-photos.team-visible img {
    transform: scale(1);
    opacity: 1;
}
.about-intro-image {
    margin-right: -15em;
    transform: translateX(60px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}
.about-intro-image.slide-in {
    transform: translateX(0);
    opacity: 1;
}

/* Testimonials section (purple) */
.about-testimonials {
    padding: 5rem 0;
}
.testimonials-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
}
.testimonials-header h2 {
    color: var(--white);
    transform: translateX(-50px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}
.testimonials-header.header-visible h2 {
    transform: translateX(0);
    opacity: 1;
}
.testimonials-header h4 {
    color: var(--white);
    margin-bottom: 1rem;
}
.testimonials-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.7;
}

/* ============================================
   18b. SERVICES PAGE
   ============================================ */

/* ---- Services intro image — slide in from right ---- */
.services-intro .page-intro-media {
    transform: translateX(60px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}
.services-intro .page-intro-media.slide-in {
    transform: translateX(0);
    opacity: 1;
}

/* ---- Services intro image ---- */
.page-intro-media.services-media {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    align-items: stretch;
}
.services-intro .section-split {
    grid-template-columns: 2fr 1fr;
}
.services-media-top {
    background: var(--darker);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.services-media-top img {
    width: 80px;
    height: 80px;
}
.services-media-bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Services detail list ---- */
.services-detail {
    padding: 4rem 0;
    margin-top: -50px;
}
.services-detail-list {
    list-style: none;
}
.services-detail-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.services-detail-list li.item-visible { opacity: 1; transform: translateY(0); }
.services-detail-list li:nth-child(2) { transition-delay: 0.12s; }
.services-detail-list li:nth-child(3) { transition-delay: 0.24s; }
.services-detail-list li:nth-child(4) { transition-delay: 0.36s; }
.services-detail-list li:last-child {
    border-bottom: none;
}
.services-detail-list .service-bullet {
    flex-shrink: 0;
    margin-top: 0.3rem;
}
.services-detail-list h4 {
    margin-bottom: 0.5rem;
}
.services-detail-list p {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.75);
    line-height: 1.7;
}

/* ---- Specialty areas ---- */
.specialty-intro {
    padding-bottom: 0.5rem;
}
.specialty-intro .eyebrow {
    color: rgba(0, 0, 0, 0.5);
}
.specialty-intro .eyebrow::before {
    color: rgba(0, 0, 0, 0.5);
}
.specialty-intro h2 {
    margin-bottom: 1rem;
}
.specialty-intro p {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.75);
    max-width: 680px;
    line-height: 1.7;
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}
.specialty-item h4 {
    margin-bottom: 0.75rem;
}
.specialty-item p {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.7;
}
.specialty-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.specialty-item.item-visible { opacity: 1; transform: translateY(0); }
.specialty-grid .specialty-item:nth-child(2) { transition-delay: 0.15s; }
.specialty-grid .specialty-item:nth-child(3) { transition-delay: 0.3s; }

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

/* ============================================
   18c. CONTACT PAGE
   ============================================ */

/* Colorful background section */
.contact-page {
    position: relative;
    padding: calc(var(--nav-height) + 5rem) 0 6rem;
    overflow: hidden;
}
.contact-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #8419b5 0%,
        #8419b5 60%,
        var(--yellow) 60%,
        var(--yellow) 100%
    );
    opacity: 0.9;
    z-index: 0;
}
.contact-split {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}
.contact-info .eyebrow {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}
.contact-info .eyebrow::before {
    color: rgba(255, 255, 255, 0.7);
}
.contact-info h1 {
    margin-bottom: 1.5rem;
    color: var(--white);
}
.contact-info h1 .highlight-blue {
    color: var(--white);
}
.contact-info > p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
    margin-bottom: 2rem;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.contact-details .detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.contact-details .detail-item svg {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.8);
}
.contact-details a {
    font-size: 1rem;
    color: var(--white);
    transition: color 0.2s;
}
.contact-details a:hover {
    color: rgba(255, 255, 255, 0.7);
}
.contact-details .contact-address {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Form box */
.contact-form-wrap {
    background: var(--white);
    border-radius: 4px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form input[type="email"],
.contact-form input[type="text"],
.contact-form textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    width: 100%;
    color: var(--text);
    background: #f9f9fb;
    transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--white);
}
.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}
.contact-form input[type="submit"] {
    background: var(--gradient);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.7rem 2rem;
    height: 2.8rem;
    cursor: pointer;
    align-self: flex-start;
    width: auto;
    transition: background 0.3s ease;
}
.contact-form input[type="submit"]:hover {
    background: var(--dark);
}

@media (max-width: 860px) {
    .contact-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contact-page::before {
        background: linear-gradient(
            180deg,
            #8419b5 0%,
            #8419b5 45%,
            var(--yellow) 45%,
            var(--yellow) 100%
        );
    }
}

/* ============================================
   18d. FOR CLIENTS PAGE
   ============================================ */

.for-clients-page {
    background: var(--white);
    padding: calc(var(--nav-height) + 5rem) 0 6rem;
}
.for-clients-intro {
    margin-bottom: 4rem;
}
.for-clients-intro h1 {
    margin-bottom: 1.5rem;
}
.for-clients-intro p {
    max-width: 900px;
}

/* Three contact columns */
.clients-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 3rem;
}
.clients-contact-col h4 {
    color: var(--dark);
    margin-bottom: 1.25rem;
}
.clients-contact-col .detail-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.6rem;
}
.clients-contact-col .detail-item svg {
    flex-shrink: 0;
    color: black;
}
.clients-contact-col a {
    font-size: 0.95rem;
    color: var(--blue);
    transition: color 0.2s;
}
.clients-contact-col a:hover {
    color: var(--dark);
}
.clients-contact-col .detail-address {
    font-size: 0.95rem;
    color: var(--text-light);
}


/* ============================================
   22. RESPONSIVE
   ============================================ */

@media (max-width: 960px) {
    .section-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .cs-card             { min-height: auto; }
    .cs-card-bg          { background-attachment: scroll; }
    .cs-card-box         { max-width: 100%; margin: 2rem 1rem; }
    .cs-card:nth-child(even) .cs-card-box { margin: 2rem 1rem; }
    .cs-card-yellow      { display: none; }
    .process-row-3       { grid-template-columns: 1fr; }
    .process-row-3 .process-step { padding-right: 0; margin-bottom: 2rem; }    .services-intro .page-intro-copy { order: 1; }
    .services-intro .page-intro-media { order: 2; }
    .services-intro .section-split { grid-template-columns: 1fr; }
    .col-3 {
        grid-template-columns: 1fr;
    }
    .about-preview {
        grid-template-columns: 1fr;
    }
    .about-image {
        height: 320px;
    }
    .about-copy {
        padding: 3rem 2rem;
    }
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .team-photos {
        margin: 1.5rem 0;
    }
    .testimonials-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .case-study-card {
        grid-template-columns: 1fr;
    }
    .case-study-card:nth-child(even) .case-study-image {
        order: 0;
    }
    .case-study-card:nth-child(even) .case-study-copy {
        order: 0;
    }
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contact-info {
        margin-bottom: 5em;
    }
    .tools-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-panels {
        width: 100%;
    }
    .hero-panel-bottom {
        grid-template-columns: 1fr;
    }
    .hero-yellow {
        height: 40px;
        margin-bottom: -40px;
    }
    .about-intro-image {
        width: 100%
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open {
        display: flex;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    .cta-banner h2 {
        font-size: clamp(1.6rem, 5.5vw, 2.5rem);
    }
    .clients-contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .cs-stats { gap: 1.5rem; }
    .cs-stat  { text-align: left; min-width: 0; }
}

@media (max-width: 540px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-block {
        justify-content: center;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   23. CASE STUDIES PAGE
   ============================================ */

/* Case study cards */
.cs-card {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.cs-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.cs-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,10,20,0.65);
}
.cs-card-inner { position: relative; z-index: 1; width: 100%; }
.cs-card-box {
    background: #000;
    padding: 3rem 3.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-top: 5rem;
    margin-bottom: 5rem;
}
.cs-card:nth-child(even) .cs-card-box { margin-left: 0; margin-right: auto; }
.cs-card-box-wrap { display: flex; align-items: stretch; }
.cs-card:nth-child(even) .cs-card-box-wrap { flex-direction: row-reverse; }
.cs-card h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 1rem; color: var(--white); }
.cs-card p  { font-size: 0.95rem; color: var(--white); line-height: 1.75; margin-bottom: 0; }
.cs-card .cs-stats-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--white);
    margin: 1.5rem 0 0.5rem;
    font-style: italic;
}
.cs-stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 0.5rem; }
.cs-stat  { text-align: center; min-width: 80px; }
.cs-stat-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    display: inline-block;
    font-variant-numeric: tabular-nums;
}
.cs-stat-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    line-height: 1.3;
    margin-top: 0.3rem;
    display: block;
}
.cs-work-img { width: 100%; margin-top: 1.5rem; display: block; }

/* Process timeline */
.process-section { background: var(--yellow); padding: 5rem 0; }
.process-section .eyebrow        { color: rgba(0,0,0,0.5); }
.process-section .eyebrow::before { color: rgba(0,0,0,0.5); }
.process-section h2  { margin-bottom: 1rem; }
.process-section .sub { font-size: 1rem; color: rgba(0,0,0,0.7); max-width: 900px; line-height: 1.7; margin-bottom: 3.5rem; }

.process-step-full  { position: relative; padding-top: 1.5rem; margin-bottom: 3rem; }
.process-step-last  { position: relative; padding-top: 1.5rem; }
.process-step-full::before,
.process-step-last::before {
    content: "";
    position: absolute;
    top: 0.45rem; left: 0; right: 0;
    height: 2px;
    background: rgba(0,0,0,0.2);
}
.process-step-full::after,
.process-step-last::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 3px solid var(--dark);
    background: var(--yellow);
}
.process-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 3rem; }
.process-row-3 .process-step { position: relative; padding-top: 1.5rem; padding-right: 2rem; }
.process-row-3 .process-step::before {
    content: "";
    position: absolute;
    top: 0.45rem; left: 0; right: 0;
    height: 2px;
    background: rgba(0,0,0,0.2);
}
.process-row-3 .process-step::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 3px solid var(--dark);
    background: var(--yellow);
}
.step-num {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--dark);
    display: block;
    margin-bottom: 0.25rem;
}
.step-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; text-transform: uppercase; color: var(--dark); margin-bottom: 0.5rem; }
.step-body  { font-size: 0.95rem; color: rgba(0,0,0,0.7); line-height: 1.7; max-width: 900px; }

/* Timeline animations */
.process-step-full,
.process-row-3 .process-step,
.process-step-last {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.process-step-full.step-visible,
.process-row-3 .process-step.step-visible,
.process-step-last.step-visible { opacity: 1; transform: translateY(0); }
.process-row-3 .process-step:nth-child(2) { transition-delay: 0.15s; }
.process-row-3 .process-step:nth-child(3) { transition-delay: 0.3s; }

@media (max-width: 960px) {
    .process-row-3 { grid-template-columns: 1fr; }
    .process-row-3 .process-step { padding-right: 0; margin-bottom: 2rem; }
}
