/* ================================================================
   COCHICA CORPORATION  —  site.css
   Dark private-equity aesthetic
   ================================================================ */

/* ── Custom properties ─────────────────────────────────────────── */
:root {
    --c-bg:         #080c12;
    --c-bg-2:       #0d1219;
    --c-bg-card:    #111a24;
    --c-bg-card2:   #0f1720;
    --c-accent:     #c9a55a;
    --c-accent-glow:rgba(201, 165, 90, 0.10);
    --c-accent-bdr: rgba(201, 165, 90, 0.22);
    --c-text:       #dce5ee;
    --c-muted:      #6a7c8e;
    --c-border:     rgba(255, 255, 255, 0.06);
    --font-serif:   'Playfair Display', Georgia, serif;
    --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
    --nav-h:        72px;
    --pad-section:  120px;
    --max-w:        1200px;
    --pad-x:        48px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--c-accent);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: #d9b872; }

ul { list-style: none; }

/* ── Layout helpers ─────────────────────────────────────────────── */
.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

section {
    padding: var(--pad-section) 0;
}

.s-alt  { background: var(--c-bg-2); }
.s-dark { background: var(--c-bg); }

/* ── Shared type ────────────────────────────────────────────────── */
.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 3.8vw, 52px);
    font-weight: 500;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.section-lead {
    font-size: 17px;
    color: var(--c-muted);
    line-height: 1.75;
    max-width: 600px;
}

.section-body {
    font-size: 16px;
    color: var(--c-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

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

.section-header--center {
    text-align: center;
}
.section-header--center .section-lead {
    margin: 0 auto;
}

.divider {
    width: 44px;
    height: 2px;
    background: var(--c-accent);
    margin: 24px 0;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn-gold {
    display: inline-block;
    padding: 13px 34px;
    background: var(--c-accent);
    color: #06090e;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, color 0.2s;
}
.btn-gold:hover {
    background: #d9b872;
    color: #06090e;
    transform: translateY(-2px);
}

.btn-ghost {
    display: inline-block;
    padding: 12px 34px;
    background: transparent;
    color: var(--c-text);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s, color 0.2s;
}
.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 44px;
    font-size: 13px;
}

/* ── Navigation ─────────────────────────────────────────────────── */
.cochica-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(8, 12, 18, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--c-border);
    transition: background 0.35s, border-color 0.35s;
}
.cochica-nav.scrolled {
    background: rgba(8, 12, 18, 0.97);
    border-bottom-color: rgba(201, 165, 90, 0.14);
}

.nav-inner {
    max-width: var(--max-w);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo {
    height: 36px;
    width: auto;
    display: block;
    /* White logo on dark nav — no filter needed by default */
    filter: none;
    transition: opacity 0.2s, filter 0.2s;
}
.nav-brand:hover .nav-logo {
    opacity: 0.82;
}

/* ── Adaptive: add class="nav-light" to <nav> for light-bg contexts ── */
.cochica-nav.nav-light .nav-logo {
    filter: invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}
.nav-links a {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--c-muted);
    transition: color 0.2s;
    padding: 0 16px;
}
.nav-links a:hover { color: var(--c-text); }

.nav-pipe {
    color: #e07832;
    font-size: 13px;
    font-weight: 300;
    line-height: 1;
    user-select: none;
    flex-shrink: 0;
}

.nav-cta {
    padding: 8px 20px;
    border: 1px solid var(--c-accent-bdr);
    color: var(--c-accent) !important;
    border-radius: 2px;
    transition: all 0.2s !important;
}
.nav-cta:hover {
    background: var(--c-accent);
    color: #06090e !important;
    border-color: var(--c-accent) !important;
}

.nav-toggler {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 2px;
}
.nav-toggler span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--c-text);
    transition: all 0.25s;
    border-radius: 1px;
}

/* ── HERO — Split layout, contained ────────────────────────────── */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: calc(var(--nav-h) + 72px) 0 80px;
    background: var(--c-bg);
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 88px 88px;
    pointer-events: none;
}

.hero-bg-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 55% at 20% 100%, rgba(201,165,90,0.07) 0%, transparent 65%),
        radial-gradient(ellipse 55% 35% at 10% 50%, rgba(201,165,90,0.03) 0%, transparent 55%);
    pointer-events: none;
}

/* Shared container — same max-width & padding as every other section */
.hero-container {
    position: relative;
    z-index: 1;
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--pad-x);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch;      /* both columns fill the same row height */
    animation: fadeInUp 0.9s ease both;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;   /* vertically center text content */
}

.hero-right {
    display: flex;
    align-items: center;       /* vertically center the photo grid */
}

/* 3 cols × 4 rows of landscape-rectangular cells */
#hero .photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

#hero .photo-cell {
    aspect-ratio: 5 / 3;
    overflow: hidden;
    background: var(--c-bg-card);
}

#hero .photo-cell.photo-wide {
    grid-column: span 1;   /* keep all cells uniform */
}

.hero-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.hero-eyebrow::before {
    content: '';
    display: block;
    width: 36px;
    height: 1px;
    background: var(--c-accent);
    flex-shrink: 0;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3vw, 52px);
    font-weight: 500;
    line-height: 1.12;
    color: #fff;
    margin-bottom: 22px;
    letter-spacing: -0.015em;
}

.hero-sub {
    font-size: clamp(14px, 1.15vw, 16px);
    color: var(--c-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 48px;
}

.hero-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    color: var(--c-muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    animation: fadeIn 1.4s 0.6s ease both;
}
.scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(var(--c-accent), transparent);
    animation: scrollPulse 2s 1s ease-in-out infinite;
}

/* ── ABOUT ──────────────────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 88px;
    align-items: start;
}

.philosophy-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-bottom: 20px;
}

.philosophy-list {
    list-style: none;
}
.philosophy-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--c-border);
    font-size: 15px;
    color: var(--c-text);
    font-weight: 300;
}
.philosophy-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--c-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.about-statement {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-left: 3px solid var(--c-accent);
    padding: 28px 32px;
    margin-top: 36px;
    border-radius: 0 3px 3px 0;
}
.about-statement p {
    font-size: 16px;
    color: var(--c-text);
    line-height: 1.7;
    margin-bottom: 8px;
}
.about-statement p:last-child { margin-bottom: 0; }

/* ── STRATEGY ───────────────────────────────────────────────────── */
.strategy-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-bottom: 28px;
}

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

.strategy-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    padding: 40px 32px;
    border-radius: 3px;
    transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.strategy-card:hover {
    border-color: var(--c-accent-bdr);
    transform: translateY(-4px);
    background: var(--c-bg-card2);
}
.strategy-card--wide {
    grid-column: 2 / span 2;
}

.card-num {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--c-accent);
    margin-bottom: 20px;
}

.strategy-card h3 {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.strategy-card p {
    font-size: 14px;
    color: var(--c-muted);
    line-height: 1.75;
}

/* ── APPROACH ───────────────────────────────────────────────────── */
.approach-header { margin-bottom: 60px; }

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--c-border);
}

.approach-item {
    background: var(--c-bg-2);
    padding: 48px 44px;
    transition: background 0.25s;
}
.approach-item:hover { background: var(--c-bg-card); }

.approach-item--wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 32px 48px;
    align-items: start;
}
.approach-item--wide .approach-num {
    grid-row: span 2;
    display: flex;
    align-items: flex-start;
    margin-top: 6px;
}
.approach-item--wide h3 { margin-bottom: 0; }
.approach-item--wide p { grid-column: 2 / span 2; }

.approach-num {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 400;
    color: rgba(201, 165, 90, 0.18);
    line-height: 1;
    margin-bottom: 18px;
    display: block;
}

.approach-item h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.3;
}

.approach-item p {
    font-size: 14px;
    color: var(--c-muted);
    line-height: 1.75;
}

/* ── TECHNOLOGY / AI ────────────────────────────────────────────── */
.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 88px;
    align-items: start;
}

.tech-thesis {
    font-style: italic;
    color: var(--c-text) !important;
    font-size: 17px !important;
    border-left: 2px solid var(--c-accent);
    padding-left: 20px;
    margin-top: 28px;
}

.tech-areas-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-bottom: 24px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    display: inline-block;
    padding: 9px 18px;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: 2px;
    font-size: 13px;
    font-weight: 400;
    color: var(--c-text);
    letter-spacing: 0.02em;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.tech-tag:hover {
    border-color: var(--c-accent-bdr);
    color: var(--c-accent);
    background: var(--c-accent-glow);
}

/* ── PARTNERSHIP ────────────────────────────────────────────────── */
.partnership-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 64px;
    align-items: start;
}

.partnership-divider {
    background: var(--c-border);
    align-self: stretch;
}

.partnership-card-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-bottom: 24px;
}

.partnership-list {
    list-style: none;
}
.partnership-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--c-border);
    font-size: 16px;
    color: var(--c-text);
}
.partnership-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--c-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.partnership-statement blockquote {
    font-family: var(--font-serif);
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 400;
    font-style: italic;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 28px;
}

/* ── DIFFERENTIATORS ────────────────────────────────────────────── */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.diff-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    padding: 40px 32px;
    border-radius: 3px;
    transition: border-color 0.3s, transform 0.3s;
}
.diff-card:hover {
    border-color: var(--c-accent-bdr);
    transform: translateY(-3px);
}
.diff-card:nth-child(4),
.diff-card:nth-child(5) {
    grid-column: auto;
}

.diff-icon {
    font-size: 8px;
    color: var(--c-accent);
    margin-bottom: 22px;
    letter-spacing: -2px;
}

.diff-card h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.diff-card p {
    font-size: 14px;
    color: var(--c-muted);
    line-height: 1.75;
}

/* ── PORTFOLIO ──────────────────────────────────────────────────── */
.portfolio-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 88px;
    align-items: center;
}

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

.sector-item {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    padding: 24px 28px;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--c-text);
    border-radius: 3px;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
    cursor: default;
}
.sector-item:hover {
    border-color: var(--c-accent-bdr);
    color: var(--c-accent);
    background: var(--c-accent-glow);
}

/* ── CAREERS ────────────────────────────────────────────────────── */
.careers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 52px;
}

.careers-area {
    padding: 12px 24px;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: 2px;
    font-size: 14px;
    font-weight: 400;
    color: var(--c-text);
    letter-spacing: 0.03em;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    cursor: default;
}
.careers-area:hover {
    border-color: var(--c-accent-bdr);
    color: var(--c-accent);
    background: var(--c-accent-glow);
}

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

/* ── CONTACT ────────────────────────────────────────────────────── */
#contact.s-contact {
    background: var(--c-bg);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.contact-bg-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(201,165,90,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.contact-inner {
    position: relative;
    z-index: 1;
}

.contact-who {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 56px;
}

.contact-who-item {
    padding: 11px 22px;
    border: 1px solid var(--c-border);
    border-radius: 2px;
    font-size: 14px;
    color: var(--c-text);
    font-weight: 300;
    transition: border-color 0.2s, color 0.2s;
}
.contact-who-item:hover {
    border-color: var(--c-accent-bdr);
    color: var(--c-accent);
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin-bottom: 52px;
    border: 1px solid var(--c-border);
    border-radius: 3px;
    overflow: hidden;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.contact-detail-item {
    flex: 1 1 180px;
    padding: 28px 32px;
    border-right: 1px solid var(--c-border);
    text-align: left;
}
.contact-detail-item:last-child {
    border-right: none;
}

.contact-detail-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 10px;
}

.contact-detail-value {
    font-size: 14px;
    color: var(--c-text);
    line-height: 1.65;
}
.contact-detail-value a {
    color: var(--c-text);
    transition: color 0.2s;
}
.contact-detail-value a:hover {
    color: var(--c-accent);
}

.contact-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

/* ── PRIVACY PAGE ───────────────────────────────────────────────── */
.privacy-page {
    min-height: calc(100vh - var(--nav-h));
    padding-top: calc(var(--nav-h) + 72px);
}

.privacy-body {
    max-width: 760px;
    margin-top: 40px;
}

.privacy-lead {
    font-size: 17px;
    color: var(--c-text);
    line-height: 1.85;
    margin-bottom: 48px;
}

.privacy-block {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--c-border);
}
.privacy-block:last-child {
    border-bottom: none;
}

.privacy-heading {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 16px;
}

.privacy-block p {
    font-size: 15px;
    color: var(--c-muted);
    line-height: 1.85;
    margin-bottom: 14px;
}
.privacy-block p:last-child { margin-bottom: 0; }

.privacy-list {
    list-style: none;
    margin-bottom: 16px;
}
.privacy-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--c-muted);
    line-height: 1.75;
    padding: 8px 0;
}
.privacy-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--c-accent);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 8px;
}

/* ── FOOTER ─────────────────────────────────────────────────────── */
.cochica-footer {
    background: #050810;
    border-top: 1px solid var(--c-border);
    padding: 52px 0 40px;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--c-border);
}

.footer-contact {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 140px;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 28px;
    width: auto;
    display: block;
    opacity: 0.75;
    transition: opacity 0.2s;
}
.footer-logo:hover { opacity: 1; }

.footer-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}
.footer-nav a {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-muted);
    transition: color 0.2s;
    padding: 0 14px;
}
.footer-nav a:hover { color: var(--c-text); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--c-muted);
}
.footer-bottom a {
    color: var(--c-muted);
    font-size: 13px;
    transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--c-text); }

.footer-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--c-border);
    font-size: 11px;
}
.footer-sub-col {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}
.footer-sub-left  { justify-content: flex-start; }
.footer-sub-center { justify-content: center; }
.footer-sub-right  { justify-content: flex-end; }
.footer-sub-pipe {
    color: orange;
    font-weight: 600;
    font-size: 13px;
}
.footer-sub a {
    color: var(--c-muted);
    font-size: 11px;
    letter-spacing: 0.05em;
    transition: color 0.2s;
    text-decoration: none;
}
.footer-sub a:hover { color: orange; }

/* ── PHOTO GRID (hero context) ──────────────────────────────────── */
/* Grid structure lives under #hero .photo-grid — see HERO section  */

.photo-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.55s ease;
}

.photo-cell img.photo-loaded {
    opacity: 1;
}

.photo-cell:hover img {
    transform: scale(1.06);
}

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    :root { --pad-x: 36px; }

    .about-grid,
    .tech-grid,
    .portfolio-layout { gap: 56px; }

    .strategy-grid { grid-template-columns: 1fr 1fr; }
    .strategy-card--wide { grid-column: span 2; }

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

@media (max-width: 768px) {
    :root {
        --pad-section: 80px;
        --pad-x: 24px;
    }

    /* Nav mobile */
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: rgba(8, 12, 18, 0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--c-border);
        padding: 20px 24px;
        transform: translateY(-110%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links a {
        padding: 14px 0;
        border-bottom: 1px solid var(--c-border);
        width: 100%;
        font-size: 14px;
    }
    .nav-links a:last-child { border-bottom: none; }
    .nav-cta {
        margin-top: 12px;
        border: none !important;
        padding: 14px 0 !important;
    }

    .nav-toggler { display: flex; }

    /* Hide pipe separators in the vertical mobile dropdown */
    .nav-links .nav-pipe { display: none; }
    .nav-links a { padding: 0; }

    /* Stacked layouts */
    .about-grid,
    .tech-grid,
    .portfolio-layout { grid-template-columns: 1fr; gap: 48px; }

    .strategy-grid { grid-template-columns: 1fr; }
    .strategy-card--wide { grid-column: span 1; }

    .approach-grid { grid-template-columns: 1fr; }
    .approach-item--wide {
        grid-column: span 1;
        grid-template-columns: auto 1fr;
    }
    .approach-item--wide p { grid-column: 2; }

    .partnership-grid { grid-template-columns: 1fr; gap: 40px; }
    .partnership-divider { display: none; }

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

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

    .footer-top { flex-direction: column; gap: 32px; }
    .footer-contact { gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-sub { flex-direction: column; gap: 8px; }
    .footer-sub-col { justify-content: center !important; }

    /* Hero: stack vertically, photos below text */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-ctas { margin-bottom: 32px; }
    .hero-scroll-hint { display: none; }

    /* On mobile show only 2 rows (6 photos) to keep it compact */
    #hero .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    #hero .photo-cell:nth-child(n+7) { display: none; }
}

@media (max-width: 480px) {
    .hero-ctas { flex-direction: column; align-items: flex-start; }
    .contact-ctas { flex-direction: column; align-items: center; }
}
