:root {
    /* SFG Sophisticated Industrial Luxury Palette */
    --sfg-anthracite: #121214;
    --sfg-anthracite-light: #1c1c1f;
    --sfg-ocean-blue: #0b132b;
    --sfg-matte-gold: #c5a059;
    --sfg-bronze: #8c6a38;
    --sfg-text-main: #fcfcfc;
    --sfg-text-muted: #88888e;
    --sfg-neon-blue: #00d2ff;

    --font-primary: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background-color: var(--sfg-anthracite);
    color: var(--sfg-text-main);
    overflow-x: hidden;
    width: 100vw;
}

/* ==========================================
   CINEMATIC GRAIN OVERLAY
   ========================================== */
@keyframes grain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-2%, -3%);
    }

    20% {
        transform: translate(3%, 2%);
    }

    30% {
        transform: translate(-1%, 4%);
    }

    40% {
        transform: translate(4%, -1%);
    }

    50% {
        transform: translate(-3%, 3%);
    }

    60% {
        transform: translate(2%, -4%);
    }

    70% {
        transform: translate(-4%, 1%);
    }

    80% {
        transform: translate(1%, -2%);
    }

    90% {
        transform: translate(-2%, 4%);
    }
}

#grain-overlay {
    position: fixed;
    inset: -10%;
    width: 120%;
    height: 120%;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    animation: grain 0.8s steps(1) infinite;
    mix-blend-mode: overlay;
}

/* ==========================================
   WEBGL BACKGROUND & LOADER
   ========================================== */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
}

#sfg-loader {
    position: fixed;
    inset: 0;
    background-color: var(--sfg-anthracite);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#loader-logo {
    margin-bottom: 2rem;
    opacity: 0.9;
}

#loader-logo img {
    height: clamp(80px, 15vh, 120px);
    width: auto;
    display: block;
    filter: drop-shadow(0 0 20px rgba(197, 160, 89, 0.3));
}

#loader-text {
    color: var(--sfg-matte-gold);
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

#loader-phase {
    color: var(--sfg-text-muted);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 0.2rem;
    margin-bottom: 1.2rem;
}

#loader-progress-track {
    width: 200px;
    height: 1px;
    background: rgba(197, 160, 89, 0.15);
    position: relative;
    overflow: hidden;
}

#loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--sfg-bronze), var(--sfg-matte-gold));
    box-shadow: 0 0 8px rgba(197, 160, 89, 0.6);
    transition: width 0.1s linear;
}

.fallback-warning {
    color: lightseagreen;
    font-size: 0.65rem;
    margin-top: 1rem;
    opacity: 0.7;
    display: none;
}

main {
    position: relative;
    z-index: 2;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(10, 10, 12, 0.7);
    /* Transparent Dark Grey */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
    will-change: transform;
}

.main-header.is-hidden {
    transform: translateY(-100%);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-text {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--sfg-text-main);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    position: relative;
    white-space: nowrap;
}

.logo-text .short-name {
    display: none;
}

.logo-text .gold-accent {
    color: var(--sfg-matte-gold);
}

@media (max-width: 600px) {
    .logo-text .full-name {
        display: none;
    }

    .logo-text .short-name {
        display: inline;
    }
}

.logo:hover img {
    transform: scale(1.05);
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--sfg-matte-gold);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--sfg-text-main);
}

.mobile-menu-btn {
    display: none;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(18, 18, 20, 0.85), rgba(18, 18, 20, 0));
    z-index: -1;
    pointer-events: none;
}

.mask-wrapper {
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 1.05;
    background: linear-gradient(135deg, #ffffff 30%, #a0a0a5 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(110%);
    will-change: transform;
}

.gold-accent {
    background: linear-gradient(135deg, var(--sfg-matte-gold) 0%, var(--sfg-bronze) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--sfg-matte-gold);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    transform: translateY(110%);
    will-change: transform;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-line {
    width: 1px;
    height: 40px;
    transform-origin: top;
    background: linear-gradient(to bottom, var(--sfg-matte-gold), transparent);
}

/* ==========================================
   SCROLLYTELLING (TIMELINE & X-RAY)
   ========================================== */
.scrolly-container {
    height: 600vh;
    position: relative;
    z-index: 3;
}

.scrolly-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    pointer-events: none;
}

.timeline-step {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.95);
}

.step-title {
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--sfg-matte-gold);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    z-index: 2;
    text-transform: uppercase;
    text-align: center;
}

.massive-text {
    font-size: clamp(8rem, 25vw, 40rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    mix-blend-mode: color-dodge;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    user-select: none;
}

.timeline-ui-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

.dynamic-year {
    font-size: clamp(8rem, 25vw, 40rem);
    font-weight: 900;
    color: rgba(0, 210, 255, 0.13);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6);
    mix-blend-mode: color-dodge;
    margin: 0;
    padding: 0;
}

/* X-Ray UI */
.xray-ui-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8%;
    opacity: 0;
    transform: translateX(30px);
    pointer-events: all;
}

.xray-glass-panel {
    background: rgba(18, 18, 20, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(197, 160, 89, 0.15);
    padding: 3.5rem;
    border-left: 4px solid var(--sfg-matte-gold);
    max-width: 500px;
    box-shadow: 0 0 60px rgba(0, 210, 255, 0.05), inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.xray-subtitle {
    color: var(--sfg-matte-gold);
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.xray-title {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.metrics-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.metric-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.metric-value {
    font-size: 3.2rem;
    font-weight: 400;
    color: var(--sfg-text-main);
    line-height: 1;
    text-shadow: 0 0 15px var(--sfg-matte-gold);
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    font-variant-numeric: tabular-nums;
}

.metric-value span.small-unit {
    font-size: 1.2rem;
    color: var(--sfg-neon-blue);
    font-weight: 300;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--sfg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* ==========================================
   INFINITE CANVAS – PLANET ORBITS
   ========================================== */
/* Individual planet orbital animations */
@keyframes orbit-1 {
    from {
        transform: rotate(210deg) translateX(160px) rotate(-210deg);
    }

    to {
        transform: rotate(570deg) translateX(160px) rotate(-570deg);
    }
}

@keyframes orbit-2 {
    from {
        transform: rotate(330deg) translateX(160px) rotate(-330deg);
    }

    to {
        transform: rotate(690deg) translateX(160px) rotate(-690deg);
    }
}

@keyframes orbit-3 {
    from {
        transform: rotate(90deg) translateX(160px) rotate(-90deg);
    }

    to {
        transform: rotate(450deg) translateX(160px) rotate(-450deg);
    }
}

@keyframes orbit-ring-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.padding-section {
    padding: 6rem 0;
    position: relative;
    z-index: 4;
}

.bg-dark {
    background-color: var(--sfg-anthracite-light);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-body {
    color: var(--sfg-text-muted);
    text-align: center;
    margin-bottom: 1rem;
}

/* Insights Button Group */
.insights-btn-group {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.insights-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 160px;
    height: 145px;
    padding: 1.5rem;
    background: rgba(197, 160, 89, 0.06);
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 12px;
    color: var(--sfg-text-main);
    text-decoration: none;
    font-family: var(--font-sans);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.85rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.insights-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.insights-btn:hover {
    border-color: var(--sfg-matte-gold);
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.15), inset 0 0 20px rgba(197, 160, 89, 0.05);
    transform: translateY(-4px);
}

.insights-btn:hover::before {
    opacity: 1;
}

.insights-btn-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    z-index: 1;
    transition: transform 0.4s ease;
}

.insights-btn:hover .insights-btn-icon {
    transform: scale(1.1);
}

.insights-btn-label {
    font-weight: 600;
    z-index: 1;
    color: var(--sfg-matte-gold);
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .insights-btn-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .insights-btn {
        width: 80%;
        justify-content: center;
    }
}

/* ==========================================
   BUSINESSES (ANTI-GRAVITY ORGANIC NODES)
   ========================================== */
.ag-environment {
    position: relative;
    width: 100%;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(197, 160, 89, 0.08) 0%, transparent 75%);
    border-radius: 24px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.ag-environment::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/assets/hero/LogoSFG.webp');
    background-size: 350px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.03;
    /* Very faint */
    pointer-events: none;
    z-index: 0;
    filter: grayscale(1);
}

.ag-node {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(197, 160, 89, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        border-radius 0.4s ease,
        background 0.4s ease,
        box-shadow 0.4s ease;
    z-index: 10;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.1);
}

.ag-node::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px dashed rgba(197, 160, 89, 0.5);
    animation: ag-rotate 10s linear infinite;
    transition: all 0.5s ease;
    pointer-events: none;
}

.ag-node:hover,
.ag-node.is-active {
    width: 340px;
    height: 280px;
    border-radius: 20px;
    background: rgba(197, 160, 89, 0.15);
    border-color: rgba(197, 160, 89, 0.8);
    box-shadow: 0 10px 40px rgba(197, 160, 89, 0.3);
    z-index: 100 !important;
}

.ag-node:hover::before,
.ag-node.is-active::before {
    border-radius: 24px;
    border-color: transparent;
    animation-play-state: paused;
}

.ag-node-icon {
    font-size: 2rem;
    transition: all 0.4s ease;
    position: absolute;
}

.ag-node-icon-img {
    width: 50%;
    height: 50%;
    object-fit: contain;
    object-position: center;
    transition: all 0.4s ease;
}

.ag-node:hover .ag-node-icon,
.ag-node.is-active .ag-node-icon {
    transform: scale(0) rotate(180deg);
    opacity: 0;
}

.ag-node:hover .ag-node-icon-img,
.ag-node.is-active .ag-node-icon-img {
    transform: scale(0) rotate(180deg);
    opacity: 0;
}

.ag-node-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    padding: 1.5rem;
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    text-align: center;
    color: var(--sfg-text-main);
}

.ag-node:hover .ag-node-content,
.ag-node.is-active .ag-node-content {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    transition-delay: 0.15s;
}

.ag-node-content h4 {
    color: var(--sfg-matte-gold);
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.ag-node-content p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
    color: var(--sfg-text-muted);
}

@keyframes ag-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive for Anti-Gravity Orbit Nodes */
@media (max-width: 900px) {
    .ag-environment {
        height: 380px;
    }

    .ag-node {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(20, 20, 20, 0.95);
        box-shadow: 0 0 5px rgba(197, 160, 89, 0.2);
    }

    .ag-node:hover,
    .ag-node.is-active {
        width: 260px;
        height: 220px;
        border-radius: 16px;
        background: rgba(40, 30, 20, 0.98);
        box-shadow: 0 5px 15px rgba(197, 160, 89, 0.2);
    }

    .ag-node-content h4 {
        font-size: 1rem;
    }

    .ag-node-content p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ==========================================
   PORTFOLIO (STICKY STACKING BRUTALISM)
   ========================================== */
.portfolio-section {
    position: relative;
    background-color: var(--sfg-anthracite);
    width: 100vw;
    z-index: 4;
}

.portfolio-card {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0c0c0d;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 10vw;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
    /* Optimized for mobile GPU */
}

.portfolio-card:nth-child(even) {
    background-color: #050506;
}

.portfolio-tag {
    color: var(--sfg-matte-gold);
    letter-spacing: 0.4em;
    margin-bottom: 2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.portfolio-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 2rem;
}

.portfolio-desc {
    font-size: 1.25rem;
    color: var(--sfg-text-muted);
    max-width: 600px;
}

/* ==========================================
   FOOTER (STANDARD FLOW)
   ========================================== */
.sfg-footer {
    position: relative;
    width: 100vw;
    background-color: var(--sfg-anthracite);
    color: var(--sfg-text-main);
    display: flex;
    flex-direction: column;
    z-index: 4;
    overflow: hidden;
    padding-top: 8rem;
}

.footer-grid-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 6rem 10vw 0;
    background: transparent;
}

.footer-grid-container::-webkit-scrollbar {
    width: 6px;
}

.footer-grid-container::-webkit-scrollbar-track {
    background: transparent;
}

.footer-grid-container::-webkit-scrollbar-thumb {
    background: rgba(197, 160, 89, 0.3);
    border-radius: 10px;
}

.footer-massive-title {
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 900;
    line-height: 0.85;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.05) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
    margin-top: auto;
    margin-bottom: 2rem;
    will-change: transform, opacity;
    flex-shrink: 0;
    /* Prevent title from squishing */
}

/* Detailed Info Grid */
.footer-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    z-index: 2;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-col-title {
    color: var(--sfg-matte-gold);
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.footer-contact-link {
    color: var(--sfg-text-main);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.footer-contact-link:hover {
    color: var(--sfg-matte-gold);
}

.inline-link {
    display: inline-block;
}

.footer-phones,
.footer-email {
    font-size: 0.95rem;
    color: var(--sfg-text-muted);
}

/* Branch List */
.branch-item {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--sfg-text-muted);
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.branch-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.branch-name {
    color: var(--sfg-text-main);
    font-weight: 600;
}

.map-link {
    font-size: 0.8rem;
    color: var(--sfg-matte-gold);
    letter-spacing: 0.05em;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(197, 160, 89, 0.3);
}

.map-link:hover {
    text-decoration-color: var(--sfg-matte-gold);
}

/* Socials */
.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.15);
    color: var(--sfg-text-main);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    transition: stroke 0.4s ease;
}

.social-icon:hover {
    background: rgba(197, 160, 89, 0.1);
    border-color: var(--sfg-matte-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.15);
}

.social-icon:hover svg {
    stroke: var(--sfg-matte-gold);
}

/* Bottom Bar */
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-size: 0.75rem;
    color: var(--sfg-text-muted);
    letter-spacing: 0.05em;
    z-index: 2;
}

.designer-credit {
    opacity: 0.6;
}

@media (max-width: 900px) {
    .footer-info-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-grid-container {
        padding-top: 2rem;
        overflow-y: auto;
        justify-content: flex-start;
    }

    .sfg-footer {
        pointer-events: auto;
    }
}

/* ==========================================
   RESPONSIVE – MOBILE
   ========================================== */
@media (max-width: 900px) {
    .portfolio-card {
        box-shadow: none;
        /* Let the border do the work on mobile to save pure fill-rate */
        border-top: 1px solid rgba(197, 160, 89, 0.2);
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 101;
        width: 40px;
        height: 40px;
        padding: 0;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn span {
        width: 24px;
        height: 2px;
        background: white;
        display: block;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        transform-origin: center;
    }

    /* Hamburger to X Animation */
    .nav-open .mobile-menu-btn span:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .nav-open .mobile-menu-btn span:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }

    /* Mobile Nav Overlay */
    .desktop-nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #0a0a0c;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 100;
        transform: translateX(100%);
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        visibility: hidden;
    }

    .nav-open .desktop-nav {
        transform: translateX(0);
        visibility: visible;
    }

    .desktop-nav .nav-link {
        font-size: 1.5rem;
        font-weight: 700;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav-open .desktop-nav .nav-link {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered entrance for links */
    .nav-open .nav-link:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-open .nav-link:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-open .nav-link:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-open .nav-link:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-open .nav-link:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-open .nav-link:nth-child(6) {
        transition-delay: 0.35s;
    }

    .nav-open .nav-link:nth-child(7) {
        transition-delay: 0.4s;
    }

    .xray-ui-wrapper {
        justify-content: center;
        padding: 5%;
    }

    .xray-glass-panel {
        width: 100%;
        border-left-width: 3px;
        padding: 2rem;
    }

    .rive-grid {
        flex-direction: column;
        align-items: center;
    }

    .orbit-container {
        width: 280px;
        height: 280px;
    }

    .planet[data-sector="real-estate"] {
        animation: orbit-1 22s linear infinite;
    }

    .planet[data-sector="construction"] {
        animation: orbit-2 30s linear infinite;
    }

    .planet[data-sector="management"] {
        animation: orbit-3 38s linear infinite;
    }

    .main-header {
        padding: 1.5rem 2rem;
    }
}

/* ==========================================
   REDUCED MOTION ACCESSIBILITY
   ========================================== */
@media (prefers-reduced-motion: reduce) {

    #grain-overlay,
    .orbit-ring,
    .planet,
    .rive-node-container canvas {
        animation: none !important;
    }

    * {
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================
   SUBPAGE (NEWS & GALLERY) STYLES
   ========================================== */


/* News Section */
.news-feed-section {
    padding: 6rem 5%;
    background: #0a0a0c;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.news-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: var(--sfg-matte-gold);
}

.news-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-card-date {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--sfg-matte-gold);
    color: #0a0a0c;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.news-card-body {
    padding: 2rem;
}

.news-category {
    color: var(--sfg-matte-gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.8rem;
}

.news-card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-card-body p {
    color: var(--sfg-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-read-more {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--sfg-bronze);
    padding-bottom: 4px;
    border-bottom: 2px solid var(--sfg-matte-gold);
    transition: color 0.3s ease;
}

.news-read-more:hover {
    color: var(--sfg-matte-gold);
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 5% 8rem;
    background: #0a0a0c;
}

.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.masonry-item.tall img {
    min-height: 400px;
}

.masonry-item.wide {
    column-span: all;
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.item-overlay span {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.masonry-item:hover .item-overlay {
    opacity: 1;
}

.masonry-item:hover .item-overlay span {
    transform: translateY(0);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }

    .subpage-hero {
        height: 30vh;
    }
}

/* ==========================================
   ABOUT US STYLES
   ========================================== */
.about-section {
    padding: 100px 5%;
    /* Added 5% horizontal padding */
    background-color: var(--sfg-bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 4fr 6fr;
        gap: 5rem;
    }
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background-color: var(--sfg-bg-card);
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 8px;
    pointer-events: none;
    transition: border-color 0.4s ease;
}

.about-image-wrapper:hover::after {
    border-color: rgba(197, 160, 89, 0.6);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
    filter: brightness(0.9) contrast(1.1);
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.03);
    filter: brightness(1) contrast(1.1);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.founder-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--sfg-text-main);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.founder-title {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sfg-matte-gold);
    display: block;
}

.about-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--sfg-text-muted);
    margin-bottom: 1.5rem;
}

.about-body p:last-child {
    margin-bottom: 0;
}

.about-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--sfg-text-main);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
}