/**
 * ==============================================================================
 * Name:           style.css
 * Version:        2026-02-24 Build:8
 * Description:    Gyre Holdings landing page styles. Northvolt-inspired design:
 *                 full-bleed video hero, light theme, bold sans-serif typography,
 *                 generous whitespace, hover-zoom cards, smooth scroll reveals.
 * Usage:          Loaded by index.html via <link rel="stylesheet">
 * Creation Date:  2026-02-24
 * Owner:          Scott Sykowski (sms@gyreresearch.com)
 * Dependencies:   Google Fonts (Inter)
 *
 * High Level Structure/Flow:
 *   1. Design Tokens
 *   2. Reset & Base
 *   3. Navigation
 *   4. Hero (video background)
 *   5. Sections & Layout
 *   6. About
 *   7. Divisions
 *   8. Projects
 *   9. Contact
 *  10. Banner
 *  11. Footer
 *  12. Scroll Reveal Animations
 *  13. Responsive
 *
 * Change Log:
 *   2026-02-24 Build:8  Scott  No changes — version bump to match HTML.
 *   2026-02-24 Build:7  Scott  Replace section-blue/green with neutral
 *                               section-gray and section-mist gradients.
 *   2026-02-24 Build:6  Scott  Add group-tinted project card backgrounds
 *                               (project-group-finance, -consulting, -data,
 *                               -media). Project cards now have padding and
 *                               border-radius.
 *   2026-02-24 Build:5  Scott  Expand footer grid to 6 columns for new
 *                               AI Consulting and Data sections.
 *   2026-02-24 Build:4  Scott  Add Contact section styles. Add section-blue
 *                               and section-green gradient backgrounds for
 *                               alternating section colors.
 *   2026-02-24 Build:3  Scott  Division grid changed to 2×2 layout with wider
 *                               cards. Added --consulting-bg, --data-bg tokens.
 *                               Tablet breakpoint stacks to single column.
 *   2026-02-24 Build:2  Scott  Complete redesign — light theme, video hero,
 *                               bold typography, Northvolt-inspired layout.
 *   2026-02-24 Build:1  Scott  Initial dark theme (replaced).
 * ==============================================================================
 */

/* ======================================================================== */
/* Design Tokens                                                            */
/* ======================================================================== */
:root {
    --white:         #ffffff;
    --off-white:     #f5f5f3;
    --light-gray:    #e8e8e6;
    --mid-gray:      #999;
    --dark-gray:     #666;
    --charcoal:      #333;
    --near-black:    #1a1a1a;
    --black:         #0c0c0c;

    --accent:        #0a6e5c;
    --accent-light:  #0d8a72;
    --accent-wash:   rgba(10, 110, 92, 0.06);
    --finance-bg:    #0b1d3a;
    --consulting-bg: #1a2e1a;
    --data-bg:       #1a1a2e;
    --media-bg:      #2d1a2e;

    --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

    --container:     1200px;
    --gap:           clamp(40px, 6vw, 80px);
    --section-py:    clamp(80px, 12vw, 160px);

    --ease:          cubic-bezier(0.16, 1, 0.3, 1);
    --duration:      0.6s;
}

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

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

body {
    font-family: var(--font);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--near-black);
    background: var(--white);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

/* ======================================================================== */
/* Navigation                                                               */
/* ======================================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 24px 0;
    transition: background 0.4s ease, padding 0.4s ease;
}

/* Over the video hero: white text */
.nav--hero {
    color: var(--white);
}

/* After scrolling past hero: solid white bar */
.nav--solid {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    padding: 16px 0;
    color: var(--near-black);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    position: relative;
}

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

.nav-links a:hover {
    opacity: 1;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Mobile toggle --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
}

.nav-toggle span:first-child { top: 4px; }
.nav-toggle span:last-child  { bottom: 4px; }

.nav-toggle.open span:first-child {
    top: 50%;
    transform: rotate(45deg) translateY(-50%);
}

.nav-toggle.open span:last-child {
    bottom: 50%;
    transform: rotate(-45deg) translateY(50%);
}

/* ======================================================================== */
/* Hero                                                                     */
/* ======================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.05) 40%,
        rgba(0,0,0,0.45) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 clamp(20px, 4vw, 40px) clamp(60px, 10vw, 140px);
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    color: var(--white);
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.95;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(40px);
    animation: heroIn 1s var(--ease) 0.3s forwards;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 300;
    opacity: 0;
    max-width: 520px;
    line-height: 1.5;
    animation: heroIn 1s var(--ease) 0.6s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255,255,255,0.5);
    animation: heroIn 1s var(--ease) 1s forwards, bounce 2s ease-in-out 2s infinite;
    opacity: 0;
}

@keyframes heroIn {
    to { opacity: 1; transform: translateY(0) translateX(-50%); }
}

/* Fix: heroIn on elements without translateX */
.hero-title, .hero-sub {
    animation-name: heroFade;
}

@keyframes heroFade {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* ======================================================================== */
/* Sections & Shared                                                        */
/* ======================================================================== */
.section {
    padding: var(--section-py) 0;
}

.section-white { background: var(--white); }
.section-light { background: var(--off-white); }
.section-gray  { background: linear-gradient(135deg, #f0f0ee 0%, #e6e6e3 50%, #ededeb 100%); }
.section-mist  { background: linear-gradient(135deg, #f2f2f0 0%, #fafafa 50%, #ffffff 100%); }

.label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}

.heading-xl {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--near-black);
}

.heading-lg {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--gap);
}

.divider {
    border: none;
    height: 1px;
    background: var(--light-gray);
    margin: var(--gap) 0;
}

/* ======================================================================== */
/* About                                                                    */
/* ======================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--gap);
    align-items: start;
}

.about-side p {
    color: var(--dark-gray);
    margin-bottom: 1.2em;
    font-size: 1.05rem;
}

.about-side p:last-child {
    margin-bottom: 0;
}

/* ======================================================================== */
/* Divisions                                                                */
/* ======================================================================== */
.division-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.division-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
    color: var(--white);
    text-decoration: none;
}

.division-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

.division-card-inner {
    padding: clamp(40px, 5vw, 64px);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.division-finance    { background: var(--finance-bg); }
.division-consulting { background: var(--consulting-bg); }
.division-data       { background: var(--data-bg); }
.division-media      { background: var(--media-bg); }

.division-number {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.4;
    letter-spacing: 0.1em;
    margin-bottom: auto;
}

.division-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.division-desc {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.75;
    max-width: 380px;
    margin-bottom: 32px;
}

.division-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.3s ease, gap 0.3s ease;
}

.division-card:hover .division-cta {
    opacity: 1;
    gap: 14px;
}

/* ======================================================================== */
/* Projects                                                                 */
/* ======================================================================== */
.project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    align-items: center;
    padding: clamp(32px, 4vw, 56px);
    border-radius: 16px;
}

/* --- Group-tinted project backgrounds --- */
.project-group-finance    { background: rgba(11, 29, 58, 0.04); }
.project-group-consulting { background: rgba(26, 46, 26, 0.05); }
.project-group-data       { background: rgba(26, 26, 46, 0.04); }
.project-group-media      { background: rgba(45, 26, 46, 0.04); }

.project-reverse {
    direction: rtl;
}

.project-reverse > * {
    direction: ltr;
}

.project-division {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.project-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.project-desc {
    color: var(--dark-gray);
    margin-bottom: 24px;
    max-width: 480px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.project-tech span {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 5px 14px;
    border-radius: 100px;
    background: var(--accent-wash);
    color: var(--accent);
}

/* --- CTA Button --- */
.btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 14px 32px;
    border: 2px solid var(--near-black);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--near-black);
    color: var(--white);
}

/* --- Project visual / screenshot --- */
.project-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-screenshot {
    width: 100%;
    max-width: 520px;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.project-screenshot:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 60px rgba(0,0,0,0.18);
}

/* ======================================================================== */
/* Contact                                                                  */
/* ======================================================================== */
.contact-grid {
    max-width: 600px;
}

.contact-company {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.contact-detail {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-detail a {
    transition: color 0.2s ease;
}

.contact-detail a:hover {
    color: var(--accent);
}

/* ======================================================================== */
/* Banner                                                                   */
/* ======================================================================== */
.banner {
    background: var(--black);
    color: var(--white);
    padding: clamp(80px, 12vw, 160px) 0;
    text-align: center;
}

.banner-text {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ======================================================================== */
/* Footer                                                                   */
/* ======================================================================== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-col h4 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.6;
    margin-bottom: 10px;
    transition: opacity 0.2s ease;
}

.footer-col a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.3;
}

/* ======================================================================== */
/* Scroll Reveal Animations                                                 */
/* ======================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--duration) var(--ease),
                transform var(--duration) var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ======================================================================== */
/* Responsive — Tablet                                                      */
/* ======================================================================== */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .division-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .division-card-inner {
        min-height: 320px;
    }

    .project {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .project-reverse {
        direction: ltr;
    }

    .project-visual {
        order: -1;
    }

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

/* ======================================================================== */
/* Responsive — Mobile                                                      */
/* ======================================================================== */
@media (max-width: 640px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, 0.97);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 199;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: var(--near-black);
        opacity: 1;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .division-card-inner {
        min-height: 280px;
        padding: 32px;
    }

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

    .project-screenshot {
        max-width: 100%;
    }
}
