/* ==========================================================================
   Inlet Studio LLC — Style System
   Palette derived from brand logo: ocean blues, sunset golds, coastal greens
   ========================================================================== */

:root {
    /* Deep ocean / night sky */
    --color-bg:        #0a1628;
    --color-surface:   #0f1d32;
    --color-surface-2: #152640;

    /* Ocean blues */
    --color-blue:       #1a6fc4;
    --color-blue-light: #3da0e3;
    --color-blue-glow:  #1a8fe855;

    /* Sunset palette */
    --color-gold:       #e8a838;
    --color-orange:     #d4722a;
    --color-sunset:     #c94e2b;
    --color-peach:      #f0c27a;

    /* Coastal greens */
    --color-green:      #2a7a4b;
    --color-green-soft: #3d9e6a;

    /* Text */
    --color-text:       #c8d6e5;
    --color-text-muted: #6b829e;
    --color-text-bright:#eaf2fb;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  2rem;
    --space-lg:  4rem;
    --space-xl:  6rem;
    --space-2xl: 10rem;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-slow: 1.2s;
    --duration-med:  0.6s;
    --duration-fast: 0.3s;
}

/* ==========================================================================
   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-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

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

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

::selection {
    background: var(--color-gold);
    color: var(--color-bg);
}

/* ==========================================================================
   Ambient Canvas (background atmosphere)
   ========================================================================== */

#ambient-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-sm) var(--space-md);
    transition: background var(--duration-med) var(--ease-out-expo),
                backdrop-filter var(--duration-med) var(--ease-out-expo);
}

.nav--scrolled {
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(26, 111, 196, 0.2);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo img {
    border-radius: 50%;
    transition: transform var(--duration-fast) var(--ease-out-expo);
}

.nav__logo:hover img {
    transform: scale(1.1);
}

.nav__links {
    display: flex;
    gap: var(--space-md);
}

.nav__link {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: color var(--duration-fast);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width var(--duration-med) var(--ease-out-expo);
}

.nav__link:hover {
    color: var(--color-text-bright);
}

.nav__link:hover::after {
    width: 100%;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl) var(--space-md) var(--space-xl);
    z-index: 2;
    overflow: visible;
}

.hero__content {
    position: relative;
}

.hero__logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-lg);
}

.hero__logo {
    position: relative;
    z-index: 2;
    border-radius: 50%;
    animation: logoReveal var(--duration-slow) var(--ease-out-expo) both;
}

.hero__logo-glow {
    position: absolute;
    inset: -40%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        var(--color-blue-glow) 0%,
        rgba(232, 168, 56, 0.15) 35%,
        rgba(201, 78, 43, 0.08) 55%,
        transparent 70%
    );
    z-index: 1;
    animation: glowPulse 4s ease-in-out infinite alternate;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.05;
    color: var(--color-text-bright);
    margin-bottom: var(--space-md);
}

.hero__title-line {
    display: block;
}

.hero__title-line--1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    font-style: italic;
    color: var(--color-text-muted);
    animation: titleReveal var(--duration-slow) var(--ease-out-expo) 0.3s both;
}

.hero__title-line--2 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 600;
    color: var(--color-text-bright);
    animation: titleReveal var(--duration-slow) var(--ease-out-expo) 0.5s both;
}

.hero__title-line--3 {
    font-size: clamp(5rem, 14vw, 11rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-peach) 50%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleReveal var(--duration-slow) var(--ease-out-expo) 0.7s both;
}

.hero__subtitle {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 1.5vw, 1.15rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    animation: titleReveal var(--duration-slow) var(--ease-out-expo) 0.9s both;
}

.hero__wave {
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
    z-index: 3;
    pointer-events: none;
}

.hero__wave svg {
    display: block;
    width: 100%;
    height: 180px;
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
    position: relative;
    background: var(--color-surface);
    padding: var(--space-2xl) var(--space-md);
    z-index: 1;
}

.about__inner {
    max-width: 900px;
    margin: 0 auto;
}

.about__label {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

.about__heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--color-text-bright);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.about__heading em {
    font-style: italic;
    font-weight: 300;
    background: linear-gradient(135deg, var(--color-gold), var(--color-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about__body {
    max-width: 700px;
    margin-bottom: var(--space-xl);
}

.about__body p {
    font-size: 1.0625rem;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

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

/* Pillars — editorial numbered layout */
.about__pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.about__pillar {
    padding: var(--space-md) var(--space-md) var(--space-md) var(--space-md);
    border-left: 1px solid rgba(232, 168, 56, 0.15);
    transition: border-color var(--duration-med) var(--ease-out-expo);
    position: relative;
}

.about__pillar:hover {
    border-color: var(--color-gold);
}

.about__pillar-number {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 300;
    font-style: italic;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
    opacity: 0.7;
}

.about__pillar h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: var(--color-text-bright);
    margin-bottom: var(--space-xs);
    line-height: 1.2;
}

.about__pillar h3 em {
    font-style: italic;
    font-weight: 300;
}

.about__pillar p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
    position: relative;
    padding: var(--space-2xl) var(--space-md);
    text-align: center;
    z-index: 1;
    overflow: hidden;
}

.contact__divider {
    width: 200px;
    height: 1px;
    margin: 0 auto var(--space-xl);
    background: linear-gradient(90deg, var(--color-sunset), var(--color-gold), var(--color-peach));
    opacity: 0.5;
}

.contact::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(232, 168, 56, 0.08) 0%,
        rgba(201, 78, 43, 0.04) 40%,
        transparent 70%
    );
    pointer-events: none;
}

.contact__label {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

.contact__inner {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.contact__heading {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 600;
    font-style: italic;
    color: var(--color-text-bright);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

.contact__dot {
    color: var(--color-gold);
}

.contact__body {
    font-size: 1.0625rem;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.contact__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-gold);
    border-radius: 60px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gold);
    transition: all var(--duration-fast) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.contact__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-gold);
    opacity: 0;
    transition: opacity var(--duration-fast);
    border-radius: inherit;
}

.contact__cta:hover {
    color: var(--color-bg);
    border-color: var(--color-gold);
}

.contact__cta:hover::before {
    opacity: 1;
}

.contact__cta-text,
.contact__cta-arrow {
    position: relative;
    z-index: 1;
}

.contact__cta-arrow {
    transition: transform var(--duration-fast) var(--ease-out-expo);
}

.contact__cta:hover .contact__cta-arrow {
    transform: translateX(4px);
}

.contact__email {
    margin-top: var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    position: relative;
    z-index: 1;
    padding: var(--space-lg) var(--space-md);
    border-top: 1px solid rgba(26, 111, 196, 0.1);
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-bright);
}

.footer__ornament {
    color: var(--color-gold);
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.6;
}

.footer__location {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-style: italic;
    font-weight: 300;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
}

.footer__legal {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Scroll Reveal — differentiated per element type
   ========================================================================== */

.reveal {
    opacity: 0;
    transition: opacity var(--duration-slow) var(--ease-out-expo),
                transform var(--duration-slow) var(--ease-out-expo),
                clip-path var(--duration-slow) var(--ease-out-expo);
}

/* Default: slide up */
.reveal--slide {
    transform: translateY(30px);
}

/* Labels: wipe from left */
.reveal--wipe {
    transform: none;
    clip-path: inset(0 100% 0 0);
}

/* Pillars: slide up with subtle rotation */
.reveal--tilt {
    transform: translateY(24px) rotate(1.5deg);
}

/* CTA: reveal left to right */
.reveal--expand {
    transform: none;
    clip-path: inset(0 100% 0 0);
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0) rotate(0);
    clip-path: inset(0 0% 0 0);
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes logoReveal {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes glowPulse {
    from {
        opacity: 0.5;
        transform: scale(1);
    }
    to {
        opacity: 0.85;
        transform: scale(1.1);
    }
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .about__pillars {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .hero__logo {
        width: 280px;
        height: 280px;
    }

    .hero {
        padding-top: var(--space-xl);
    }

    .hero__title-line--3 {
        font-size: clamp(3.5rem, 18vw, 6rem);
    }

    .about,
    .contact {
        padding: var(--space-xl) var(--space-sm);
    }

    .contact__heading {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

@media (max-width: 480px) {
    .nav__links {
        gap: var(--space-sm);
    }

    .contact__cta {
        width: 100%;
        justify-content: center;
    }
}
