/* =============================================
   GGOGGL.com — Styles
   Ethereal Blue / Flat Design / Broken Grid
   ============================================= */

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

:root {
    --deep-twilight: #0d1b2a;
    --candle-glow: #e8a838;
    --ethereal-blue: #7b9acc;
    --frost-pane: #c8dce8;
    --lens-white: #eef3f7;
    --signal-orange: #d4654a;
    --mid-navy: #1b2d45;
    --twilight-blue: #1f3a5f;
    --smoke: rgba(13, 27, 42, 0.6);
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    color: var(--frost-pane);
    background: var(--deep-twilight);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-weight: 700;
}

h2 {
    font-weight: 600;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

h3 {
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    color: var(--candle-glow);
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Underline Draw Effect --- */
.underline-draw {
    background-image: linear-gradient(var(--signal-orange), var(--signal-orange));
    background-size: 0% 2px;
    background-position: left bottom;
    background-repeat: no-repeat;
    transition: background-size 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding-bottom: 2px;
}

.underline-draw:hover {
    background-size: 100% 2px;
}

/* --- Candle Pulse Animation --- */
@keyframes candlePulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

.accent-glow {
    animation: candlePulse 3s ease-in-out infinite;
}

.accent-glow:nth-child(1) { animation-delay: 0s; }
.accent-glow:nth-child(2) { animation-delay: 0.7s; }
.accent-glow:nth-child(3) { animation-delay: 1.4s; }
.accent-glow:nth-child(4) { animation-delay: 2.1s; }

/* --- Geometric Drift Animation --- */
@keyframes geoDriftY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes geoDriftY2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(12px); }
}

.geo-drift {
    animation: geoDriftY 10s ease-in-out infinite;
}

.geo-drift:nth-child(even) {
    animation: geoDriftY2 12s ease-in-out infinite;
}

/* --- Navigation --- */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2.5rem;
    background: rgba(13, 27, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(123, 154, 204, 0.1);
}

.nav-wordmark {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    color: var(--candle-glow);
}

.nav-links {
    display: flex;
    gap: 2rem;
    padding-right: 8%;
}

.nav-link {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--frost-pane);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--candle-glow);
}

/* --- Global Geometric Decorations --- */
.geo-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.geo-hex {
    position: absolute;
}

.geo-hex-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    right: 8%;
}

.geo-hex-2 {
    width: 80px;
    height: 80px;
    top: 55%;
    left: 5%;
}

.geo-shard {
    position: absolute;
}

.geo-shard-1 {
    width: 150px;
    height: 150px;
    top: 70%;
    right: 15%;
}

.geo-shard-2 {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 12%;
}

.geo-circle-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: 30%;
}

/* --- Pane Label --- */
.pane-label {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ethereal-blue);
    margin-bottom: 1.2rem;
}

.pane-label-dark {
    color: var(--mid-navy);
}

/* --- Lens Frame --- */
.lens-frame {
    border-radius: 40px;
    overflow: hidden;
}

/* --- Section Base --- */
.section {
    position: relative;
    min-height: 80vh;
    padding: 120px 5%;
    z-index: 1;
}

/* --- Broken Enter Animations --- */
.broken-enter {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.broken-enter-left {
    transform: translateX(-60px);
}

.broken-enter-right {
    transform: translateX(60px);
}

.broken-enter.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delay via custom property */
.broken-enter[style*="--stagger: 1"].is-visible {
    transition-delay: 60ms;
}
.broken-enter[style*="--stagger: 2"].is-visible {
    transition-delay: 120ms;
}
.broken-enter[style*="--stagger: 3"].is-visible {
    transition-delay: 180ms;
}

/* =============================================
   SECTION 1: HERO
   ============================================= */
.section-hero {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(165deg, #0d1b2a 0%, #1b2d45 40%, #1f3a5f 100%);
    scroll-snap-align: start;
    overflow: hidden;
    padding: 0;
}

.hero-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 168, 56, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-light-cone {
    position: absolute;
    top: 0;
    left: 35%;
    width: 30%;
    height: 60%;
    background: linear-gradient(180deg, rgba(232, 168, 56, 0.03) 0%, transparent 100%);
    clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
    pointer-events: none;
}

.hero-lens-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    max-width: 600px;
    pointer-events: none;
}

.hero-lens-circles svg {
    width: 100%;
    height: auto;
}

.hero-lens {
    position: relative;
    width: 70vw;
    max-width: 600px;
    height: 70vw;
    max-height: 600px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 27, 42, 0.4);
    border: 1px solid rgba(123, 154, 204, 0.2);
    z-index: 2;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-lens-inner {
    text-align: center;
    padding: 2rem;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.hero-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ethereal-blue);
    display: block;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 7rem);
    letter-spacing: 0.08em;
    color: var(--lens-white);
    margin-bottom: 1.5rem;
}

.hero-title .letter {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.hero-title .letter:hover {
    color: var(--candle-glow);
    transform: translateY(-4px);
}

.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--frost-pane);
    opacity: 0.8;
    margin-bottom: 0;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
}

.scroll-hint-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ethereal-blue);
    opacity: 0.6;
}

.scroll-hint-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--ethereal-blue), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 40px; }
    50% { opacity: 0.8; height: 55px; }
}

/* =============================================
   SECTION 2: VISION — Dark to Mid
   ============================================= */
.section-vision {
    background: var(--mid-navy);
    margin-top: -80px;
    padding-top: 160px;
    clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
    scroll-snap-align: start;
}

.section-glow {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 20%;
    right: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 168, 56, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.dotted-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(123, 154, 204, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.vision-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    position: relative;
}

.vision-pane {
    grid-column: 1 / 8;
    background: rgba(13, 27, 42, 0.6);
    border: 1px solid rgba(123, 154, 204, 0.15);
    padding: 3rem;
}

.vision-pane h2 {
    color: var(--lens-white);
}

.vision-pane p {
    color: var(--frost-pane);
    font-size: 1.05rem;
}

.vision-card {
    grid-column: 7 / 12;
    background: rgba(31, 58, 95, 0.5);
    border: 1px solid rgba(123, 154, 204, 0.12);
    border-radius: 20px;
    padding: 2rem;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.vision-card-offset {
    grid-column: 2 / 7;
    margin-top: 1rem;
    transform: rotate(-2deg);
}

.vision-card-offset.is-visible {
    transform: rotate(-2deg) translateX(0);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

/* =============================================
   SECTION 3: APERTURE — Mid-Tones
   ============================================= */
.section-aperture {
    background: linear-gradient(180deg, var(--mid-navy) 0%, var(--twilight-blue) 100%);
    margin-top: -80px;
    padding-top: 160px;
    clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 100%);
    scroll-snap-align: start;
    overflow: hidden;
}

.aperture-glow {
    position: absolute;
    width: 40%;
    height: 40%;
    top: 30%;
    left: 5%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 168, 56, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.aperture-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.aperture-text {
    grid-column: 2 / 7;
}

.aperture-text h2 {
    color: var(--lens-white);
}

.aperture-text p {
    color: var(--frost-pane);
    font-size: 1.05rem;
}

.aperture-lens-frame {
    grid-column: 7 / 13;
    background: rgba(13, 27, 42, 0.5);
    border: 1px solid rgba(123, 154, 204, 0.15);
    padding: 2.5rem;
    position: relative;
}

.aperture-inner {
    text-align: center;
}

.aperture-blades {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
}

.aperture-blades svg {
    width: 100%;
    height: 100%;
}

.aperture-quote {
    position: relative;
}

.quote-mark {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    color: var(--candle-glow);
    opacity: 0.4;
    line-height: 1;
    position: absolute;
    top: -30px;
    left: 0;
}

.aperture-quote p {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--frost-pane);
    font-style: italic;
    padding-left: 1.5rem;
}

/* Hex facets */
.hex-facet {
    position: absolute;
    pointer-events: none;
}

.hex-facet-1 {
    width: 80px;
    height: 80px;
    top: 15%;
    right: 5%;
}

.hex-facet-2 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 8%;
}

/* =============================================
   SECTION 4: PRISM — Lighter Mid
   ============================================= */
.section-prism {
    background: linear-gradient(180deg, var(--twilight-blue) 0%, #2a4d6e 50%, #3b6a8a 100%);
    margin-top: -80px;
    padding-top: 160px;
    clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%);
    scroll-snap-align: start;
    overflow: hidden;
}

.prism-glow {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 10%;
    left: 30%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 168, 56, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.prism-content {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.prism-header {
    margin-bottom: 3rem;
}

.prism-header h2 {
    color: var(--lens-white);
}

.prism-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.prism-pane {
    position: relative;
    background: rgba(13, 27, 42, 0.45);
    border: 1px solid rgba(123, 154, 204, 0.15);
    padding: 2.5rem;
}

.prism-pane-candle {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: radial-gradient(ellipse at top center, rgba(232, 168, 56, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.prism-pane p {
    color: var(--frost-pane);
    font-size: 0.95rem;
}

.prism-pane-1 {
    grid-column: 1 / 6;
    transform: rotate(2deg);
}

.prism-pane-1.is-visible {
    transform: rotate(2deg) translateX(0);
}

.prism-pane-2 {
    grid-column: 6 / 13;
    margin-top: 60px;
    transform: rotate(-3deg);
}

.prism-pane-2.is-visible {
    transform: rotate(-3deg) translateX(0);
}

.prism-pane-3 {
    grid-column: 2 / 8;
    margin-top: -20px;
    transform: rotate(1deg);
}

.prism-pane-3.is-visible {
    transform: rotate(1deg) translateX(0);
}

.prism-triangle {
    position: absolute;
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 8%;
    pointer-events: none;
    z-index: 1;
}

/* =============================================
   SECTION 5: CLARITY — Light / Near White
   ============================================= */
.section-clarity {
    background: linear-gradient(180deg, #3b6a8a 0%, var(--lens-white) 40%);
    margin-top: -80px;
    padding-top: 160px;
    clip-path: polygon(0 0, 100% 50px, 100% 100%, 0 100%);
    scroll-snap-align: start;
    color: var(--deep-twilight);
}

.clarity-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.clarity-main {
    grid-column: 1 / 8;
}

.clarity-main h2 {
    color: var(--deep-twilight);
    font-size: 3rem;
}

.clarity-main p {
    color: var(--mid-navy);
    font-size: 1.1rem;
}

.clarity-lens {
    grid-column: 7 / 13;
    background: rgba(27, 45, 69, 0.08);
    border: 1px solid rgba(27, 45, 69, 0.12);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.clarity-lens-inner {
    position: relative;
}

.clarity-rings {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
}

.clarity-rings svg {
    width: 100%;
    height: 100%;
}

.clarity-statement {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--deep-twilight);
    margin-bottom: 0;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--deep-twilight);
    padding: 3rem 5%;
    border-top: 1px solid rgba(123, 154, 204, 0.1);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-wordmark {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    color: var(--candle-glow);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links a {
    color: var(--frost-pane);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--candle-glow);
}

.footer-sep {
    color: rgba(123, 154, 204, 0.3);
}

.footer-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--ethereal-blue);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.5;
}

.meta-label {
    display: inline-block;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .nav-links {
        gap: 1rem;
        padding-right: 0;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: clamp(2.8rem, 8vw, 5rem);
    }

    .vision-content {
        grid-template-columns: 1fr;
    }

    .vision-pane {
        grid-column: 1 / -1;
    }

    .vision-card {
        grid-column: 1 / -1;
        margin-top: 0;
    }

    .vision-card-offset {
        grid-column: 1 / -1;
        transform: none;
    }

    .vision-card-offset.is-visible {
        transform: none;
    }

    .aperture-content {
        grid-template-columns: 1fr;
    }

    .aperture-text {
        grid-column: 1 / -1;
    }

    .aperture-lens-frame {
        grid-column: 1 / -1;
    }

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

    .prism-pane-1,
    .prism-pane-2,
    .prism-pane-3 {
        grid-column: 1 / -1;
        margin-top: 0;
        transform: none;
    }

    .prism-pane-1.is-visible,
    .prism-pane-2.is-visible,
    .prism-pane-3.is-visible {
        transform: none;
    }

    .clarity-content {
        grid-template-columns: 1fr;
    }

    .clarity-main {
        grid-column: 1 / -1;
    }

    .clarity-lens {
        grid-column: 1 / -1;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .nav-bar {
        padding: 0.8rem 1.2rem;
    }

    .nav-links {
        gap: 0.6rem;
    }

    .nav-link {
        font-size: 0.65rem;
    }

    .section {
        padding: 80px 4%;
    }

    .section-vision,
    .section-aperture,
    .section-prism,
    .section-clarity {
        padding-top: 120px;
    }

    .hero-lens {
        width: 90vw;
        height: 90vw;
    }

    .hero-lens-circles {
        width: 90vw;
    }

    .vision-pane,
    .aperture-lens-frame,
    .prism-pane {
        padding: 1.8rem;
        border-radius: 24px;
    }

    .clarity-lens {
        border-radius: 24px;
        padding: 2rem 1.5rem;
    }
}
