:root {
    --bg: #050505;
    --obsidian: #0A0C10;
    --green: #00B4A2;
    --green-glow: rgba(0, 180, 162, 0.15);
    --lava: #ff5722;
    --surface: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --text-bright: #ffffff;
    --text-mid: rgba(255, 255, 255, 0.65);
    --text-dim: rgba(255, 255, 255, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text-bright);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-y: scroll; /* Always show scrollbar — prevents layout shift */
    min-height: 100vh;
    position: relative;
}

/* Fluid ambient background — fixed, never blocks interaction */
.fluid-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 10% 10%, rgba(0, 180, 162, 0.55) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 85%, rgba(255, 87, 34, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0, 180, 162, 0.12) 0%, transparent 70%);
    background-color: var(--obsidian);
    filter: blur(70px);
    transform: scale(1.1); /* Prevent cropped edges from blur */
    animation: breathe 18s ease-in-out infinite alternate;
}

@keyframes breathe {
    from { transform: scale(1.08) translate(0, 0); }
    to   { transform: scale(1.15) translate(-2%, 2%); }
}

/* All page content sits above canvas */
.page-wrap {
    position: relative;
    z-index: 1;
}

/* ─── NAV ─────────────────────────────── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mid);
    white-space: nowrap;
}

nav a {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.25s;
}

nav a:hover { color: var(--green); }

/* ─── HERO ────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12rem 8vw 6rem;
}

.hero-name {
    font-size: clamp(1.5rem, 4.5vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    color: var(--text-bright);
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    color: var(--text-mid);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.hero-tag {
    display: inline-flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
}

.hero-tag::before {
    content: '';
    display: block;
    width: 2.5rem;
    height: 1px;
    background: var(--green);
}

/* ─── GLASS SECTION ───────────────────── */
.glass-section {
    padding: 6rem 8vw;
}

.glass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: clamp(2rem, 5vw, 4rem);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.4s;
}

.glass-card:hover {
    border-color: rgba(0, 180, 162, 0.25);
}

/* ─── PHILOSOPHY ──────────────────────── */
.philosophy .glass-card {
    max-width: 1100px;
}

.statement {
    font-size: clamp(1.8rem, 4.5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-bright);
    margin-bottom: 2rem;
}

.statement em {
    font-style: normal;
    color: var(--green);
}

.philosophy p {
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    color: var(--text-mid);
    line-height: 1.8;
    max-width: 700px;
}

/* ─── FOCUS ───────────────────────────── */
.focus {
    padding: 2rem 8vw 6rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.focus-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
    padding: clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 4vw, 4rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.4s;
}

.focus-item:hover {
    border-color: rgba(0, 180, 162, 0.2);
}

.focus-num {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1rem;
}

.focus-item h3 {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-bright);
    line-height: 1.2;
}

.focus-item p {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    color: var(--text-mid);
    line-height: 1.75;
}

/* ─── ISLAND ETHOS ────────────────────── */
.island-ethos {
    padding: 2rem 8vw 6rem;
}

.island-ethos .glass-card {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.island-ethos .statement {
    margin-bottom: 2.5rem;
}

.island-ethos p {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: var(--text-mid);
    line-height: 1.85;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

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

.hl-lava { color: var(--lava); font-weight: 500; }
.hl-water { color: var(--green); font-weight: 500; }

/* ─── CONTACT ─────────────────────────── */
.contact {
    padding: 6rem 8vw;
    text-align: center;
}

.contact h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-bright);
}

.contact-email {
    display: inline-block;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
    padding-bottom: 0.25rem;
    word-break: break-all;
}

.contact-email:hover {
    border-color: var(--green);
}

/* ─── FOOTER ──────────────────────────── */
footer {
    padding: 2rem 8vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer-location {
    color: var(--green);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ─── SCROLL REVEAL ───────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ─── RESPONSIVE ──────────────────────── */
@media (max-width: 768px) {
    .hero-name {
        font-size: clamp(1.25rem, 7vw, 2.2rem);
    }

    nav a { margin-left: 0.75rem; }

    .focus-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }
}
