/* ==========================================================================
   ENGAGE DIGITALS — design tokens
   Ink navy is pulled from the brand mark; accent blue extends the existing
   brand color; coral is the one warm "engagement" pop used sparingly on
   case-study tags and the odd highlight. Space Grotesk carries headline
   personality, Inter stays quiet for reading.
   ========================================================================== */

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

:root {
    --ink: #0b0f2b;
    --ink-soft: #171f52;
    --paper: #f3f4f8;
    --paper-raise: #ffffff;
    --accent: #2f5bff;
    --accent-dim: #6f8bff;
    --coral: #ff6b4a;
    --line: #dde1ea;
    --text: #171a2e;
    --muted: #5b6478;
    --on-ink: #eef0fb;
    --on-ink-muted: #a7addd;

    --radius-s: 10px;
    --radius-m: 18px;
    --gutter: clamp(1.25rem, 5vw, 3rem);
    --measure: 1240px;

    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--paper);
    overflow-x: hidden;
}

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

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

a {
    color: inherit;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.section-kicker {
    display: block;
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 46ch;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Respect reduced motion everywhere */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Visible keyboard focus, consistently */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ==========================================================================
   Loader — quick, calm, gone before it's noticed
   ========================================================================== */
#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    animation: loader-pulse 1.1s ease-in-out infinite;
}

@keyframes loader-pulse {
    0%, 100% { opacity: 0.55; transform: scale(0.94); }
    50% { opacity: 1; transform: scale(1); }
}

#loader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ==========================================================================
   Nav
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.35rem var(--gutter);
    background: rgba(11, 15, 43, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.logo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.logo span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--on-ink);
    letter-spacing: 0.01em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.4rem;
}

.nav-links a {
    color: var(--on-ink);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; right: 100%; bottom: 0;
    height: 2px;
    background: var(--accent-dim);
    transition: right 0.25s ease;
}

.nav-links a:hover::after { right: 0; }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    width: 32px;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--on-ink);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

@media (max-width: 860px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: center;
        gap: 1.4rem;
        padding: 1.75rem 0 2.25rem;
        background: var(--ink);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .hamburger { display: flex; }
}

/* ==========================================================================
   Hero — headline + a real feed of their own work, not stock art
   ========================================================================== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--on-ink);
    padding: 6rem 0 4rem;
}

#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 120%;
    min-height: 100%;
    transform: translate(-50%, -50%) scale(0.9);
    object-fit: cover;
    z-index: -2;
}

.hero::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(200deg, rgba(6, 9, 30, 0.92) 10%, rgba(11, 15, 43, 0.72) 55%, rgba(11, 15, 43, 0.88));
}

.hero-content {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding: 0 var(--gutter);
    max-width: var(--measure);
    margin: 0 auto;
}

.text-btn {
    text-align: left;
}

.eyebrow-stat {
    display: inline-flex;
    gap: 1.4rem;
    margin-bottom: 1.6rem;
    font-size: 0.85rem;
    color: var(--on-ink-muted);
}

.eyebrow-stat strong {
    color: var(--on-ink);
    font-family: var(--font-display);
    font-weight: 600;
}

.text-btn h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--on-ink);
    max-width: 15ch;
}

.text-btn p {
    margin-top: 1.1rem;
    font-size: 1.1rem;
    color: var(--on-ink-muted);
    max-width: 40ch;
    line-height: 1.6;
}

.hero-button {
    display: inline-block;
    margin-top: 2.1rem;
    padding: 0.9rem 1.9rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-s);
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-button:hover {
    background: #4570ff;
    transform: translateY(-2px);
}

/* the hero logo mark */
.hero-mark {
    position: relative;
    height: clamp(280px, 34vw, 400px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-mark-glow {
    position: absolute;
    width: min(70%, 320px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 91, 255, 0.55), rgba(47, 91, 255, 0) 70%);
    filter: blur(6px);
}

.hero-mark-logo {
    position: relative;
    width: min(48%, 220px);
    border-radius: 50%;
    background: var(--paper-raise);
    padding: 1.4rem;
    box-shadow: 0 20px 50px rgba(2, 4, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 980px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .text-btn { text-align: center; }
    .text-btn h1 { max-width: none; margin: 0 auto; }
    .text-btn p { margin-left: auto; margin-right: auto; }
    .eyebrow-stat { justify-content: center; width: 100%; }
    .hero-mark { margin-top: 1.5rem; height: clamp(220px, 50vw, 300px); }
}

@media (max-width: 480px) {
    .hero { padding: 5.5rem 0 3rem; }
    .eyebrow-stat { flex-direction: column; gap: 0.5rem; }
}

/* ==========================================================================
   CEO
   ========================================================================== */
.ceo {
    padding: 6.5rem 0;
    background: var(--paper-raise);
}

.ceo .sub-container {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.ceo-image {
    display: flex;
    justify-content: center;
}

.ceo-frame {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.ceo-frame::before {
    content: '';
    position: absolute;
    top: 0.5rem; left: 0.5rem;
    width: 100%; height: 100%;
    background: var(--accent);
    border-radius: var(--radius-m);
    z-index: 0;
}

.ceo-frame img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-m);
    border: 6px solid var(--paper-raise);
}

.ceo .desc {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--muted);
}

.ceo .desc .role {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

@media (max-width: 780px) {
    .ceo .sub-container { grid-template-columns: 1fr; text-align: center; }
    .ceo-frame { max-width: 280px; margin: 0 auto 1rem; }
}

/* ==========================================================================
   Mission & Passion — one statement, one support, not twin cards
   ========================================================================== */
.mission-passion-section {
    padding: 6.5rem 0;
    background: var(--ink);
    color: var(--on-ink);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
}

.text-block.mission h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 600;
    line-height: 1.3;
}

.text-block.passion {
    border-left: 2px solid var(--accent-dim);
    padding-left: 1.8rem;
}

.text-block.passion h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-dim);
    margin-bottom: 0.9rem;
}

.text-block p {
    color: var(--on-ink-muted);
    line-height: 1.75;
    font-size: 1.05rem;
}

@media (max-width: 780px) {
    .content-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
    .text-block.passion { border-left: none; border-top: 2px solid var(--accent-dim); padding-left: 0; padding-top: 1.6rem; }
}

/* ==========================================================================
   Services — editorial rows, not a wall of identical cards
   ========================================================================== */
.services-section {
    padding: 6.5rem 0;
    background: var(--paper);
}

.services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    border-top: none;
}

.service-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 2rem 1.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--paper-raise);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.service-row:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 16px 30px rgba(2, 4, 20, 0.08);
}

.service-row i {
    color: var(--accent);
    font-size: 1.5rem;
}

.service-row h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.2rem;
}

.service-row p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .services-list { grid-template-columns: repeat(2, 1fr); }
}

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

/* ==========================================================================
   Projects — always-legible captions (works without hover on touch)
   ========================================================================== */
.projects-section {
    padding: 6.5rem 0;
    background: var(--paper-raise);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: var(--radius-m);
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(11, 15, 43, 0.06);
}

.project-card .thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img { transform: scale(1.06); }

.project-tag {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    background: rgba(11, 15, 43, 0.78);
    color: var(--on-ink);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
}

.project-card .case-body {
    padding: 1.3rem 1.4rem 1.5rem;
}

.project-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.55rem;
    line-height: 1.35;
}

.project-card p.excerpt {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-card p.full {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    display: none;
    margin-top: 0.6rem;
}

.project-card.is-open p.excerpt { display: none; }
.project-card.is-open p.full { display: block; }

.read-more {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.6rem 0 0;
    cursor: pointer;
}

.read-more:hover { text-decoration: underline; }

.btn-center {
    display: flex;
    justify-content: center;
    margin-top: 3.5rem;
}

.more-p-btn {
    padding: 0.95rem 2.3rem;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.25s ease;
    border: none;
    display: inline-block;
}

.more-p-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-section {
    padding: 6.5rem 0;
    background: var(--paper);
}

.testimonial-section .section-title,
.testimonial-section .section-kicker { text-align: center; margin-left: auto; margin-right: auto; }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    max-width: var(--measure);
}

.testimonial {
    background: var(--paper-raise);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 2rem;
    position: relative;
}

.testimonial::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--accent-dim);
    line-height: 1;
    display: block;
    margin-bottom: 0.4rem;
}

.quote {
    color: var(--text);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.4rem;
}

.client-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--ink);
}

.client-role {
    font-size: 0.88rem;
    color: var(--muted);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.get-in-touch {
    padding: 6.5rem 0;
    background: var(--paper-raise);
}

.get-in-touch .container {
    max-width: 760px;
    text-align: center;
    background: linear-gradient(135deg, var(--ink), var(--ink-soft));
    border-radius: var(--radius-m);
    padding: clamp(2.5rem, 5vw, 3.5rem);
}

.get-in-touch h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    color: var(--on-ink);
    margin-bottom: 0.8rem;
}

.get-in-touch p {
    color: var(--on-ink-muted);
    margin-bottom: 2.3rem;
    font-size: 1.02rem;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--on-ink-muted);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-s);
    background: rgba(255, 255, 255, 0.06);
    color: var(--on-ink);
    font: inherit;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--on-ink-muted); }

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-dim);
    background: rgba(255, 255, 255, 0.1);
}

.btn-submit {
    margin-top: 0.4rem;
    padding: 0.95rem 1.5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-s);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.25s ease;
}

.btn-submit:hover { background: #4570ff; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--ink);
    color: var(--on-ink-muted);
    padding: 4.5rem 0 2rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem;
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.footer-contact,
.footer-links {
    flex: 1 1 260px;
}

.footer h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--on-ink);
    margin-bottom: 1.3rem;
    font-weight: 600;
}

.footer p {
    margin: 0.6rem 0;
    font-size: 0.98rem;
    line-height: 1.5;
}

.footer p i { margin-right: 0.7rem; color: var(--accent-dim); width: 1em; }

.footer a { text-decoration: none; }
.footer a:hover { color: var(--on-ink); }

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.4rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--on-ink);
    font-size: 1rem;
}

.footer-social a:hover { background: var(--accent); }

.footer-bottom {
    text-align: center;
    margin-top: 3.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.88rem;
    color: var(--on-ink-muted);
}

@media (max-width: 640px) {
    .footer-container { text-align: center; }
    .footer-links ul { align-items: center; }
    .footer-social { justify-content: center; }
}

/* ==========================================================================
   Fade-in-on-scroll (single, restrained utility — used once per section)
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
