/* ================================================================
   AETHER — Warm Editorial Design System
   Modern structure, organic shapes, staggered animations
   ================================================================ */

:root {
    --bg: #FAF7F2;
    --bg-blush: #F3EBE3;
    --surface: #FFFCF8;
    --surface-warm: #F7F1EA;

    --ink: #1C1410;
    --ink-soft: #6B5E54;
    --ink-mute: #9A8F85;

    --line: #E8DFD4;
    --line-strong: #D4C9BD;

    --brand: #3D5AF1;
    --brand-strong: #2D45D4;
    --brand-soft: #ECEFFE;

    --amber: #D4920A;
    --amber-strong: #B87D08;
    --amber-soft: #FEF3D9;

    --success: #2D8A6E;
    --success-soft: #E6F5EF;

    --dark: #1C1410;
    --dark-surface: #2A211B;
    --dark-line: rgba(250, 247, 242, 0.12);
    --dark-ink: #FAF7F2;
    --dark-ink-soft: rgba(250, 247, 242, 0.65);

    --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', 'SFMono-Regular', ui-monospace, monospace;

    --fs-hero: clamp(3rem, 5.5vw + 1rem, 5.4rem);
    --fs-h2: clamp(2.1rem, 3.2vw + 0.6rem, 3.4rem);
    --fs-h3: clamp(1.08rem, 0.4vw + 0.9rem, 1.3rem);
    --fs-body: clamp(1rem, 0.28vw + 0.9rem, 1.08rem);
    --fs-small: 0.9rem;
    --fs-xs: 0.76rem;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    --shadow-sm: 0 2px 8px rgba(28, 20, 16, 0.06);
    --shadow-md: 0 8px 28px rgba(28, 20, 16, 0.08);
    --shadow-lg: 0 20px 60px rgba(28, 20, 16, 0.12);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-smooth: cubic-bezier(0.2, 0.72, 0.2, 1);
    --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.45s;
    --duration-medium: 0.72s;
    --duration-slow: 0.95s;
    --duration: 0.7s;
}

/* ================================================================
   RESET & BASE
   ================================================================ */

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
    overflow-x: clip;
    overscroll-behavior-y: none;
    background: linear-gradient(180deg, #F0E7DD 0%, #FAF7F2 34%, #F3EBE3 68%, #C0AC96 100%);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: 1.65;
    color: var(--ink);
    background: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    overscroll-behavior-y: none;
    min-height: 100%;
}

a { color: inherit; text-decoration: none; }
button, .btn { cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* Grain texture overlay */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--amber), var(--amber-strong));
    z-index: 200;
    transition: width 0.05s linear;
    border-radius: 0 2px 2px 0;
}

.skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    transform: translateY(-200%);
    z-index: 200;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.95rem;
    font-size: var(--fs-small);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 2px;
}

:focus:not(:focus-visible) { outline: none; }

.container {
    width: min(1200px, 100% - 3rem);
    margin: 0 auto;
}

main > section {
    position: relative;
    isolation: isolate;
    scroll-margin-top: 112px;
}

/* ================================================================
   TYPOGRAPHY
   ================================================================ */

h1, h2, h3 { margin: 0; color: var(--ink); }

h1 {
    font-family: var(--font-serif);
    font-size: var(--fs-hero);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

h1 em, h2 em { font-style: italic; }

h2 {
    font-family: var(--font-serif);
    font-size: var(--fs-h2);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.015em;
}

h3 {
    font-family: var(--font-sans);
    font-size: var(--fs-h3);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

p { margin: 0; color: var(--ink-soft); max-width: 58ch; }

.section-label, .mono-label {
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--amber);
    margin-bottom: 1rem;
}

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 50px;
    padding: 0.8rem 1.7rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: var(--fs-small);
    font-family: var(--font-sans);
    transition: all 0.3s var(--ease);
    border: 1.5px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.2), transparent 60%);
    transition: opacity 0.3s;
}

.btn:hover::after { opacity: 1; }

.btn-primary {
    color: #fff;
    background: var(--dark);
    border-color: var(--dark);
    box-shadow: 0 4px 20px rgba(28, 20, 16, 0.22);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(28, 20, 16, 0.28);
}

.btn-outline {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--ink);
    background: var(--surface-warm);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    border-color: rgba(250, 247, 242, 0.25);
    color: var(--dark-ink);
}

.btn-outline-light:hover {
    background: rgba(250, 247, 242, 0.1);
    border-color: rgba(250, 247, 242, 0.4);
    transform: translateY(-2px);
}

/* ================================================================
   NAVIGATION
   ================================================================ */

header {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1140px, calc(100% - 2rem));
    z-index: 120;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: rgba(255, 252, 248, 0.82);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: var(--shadow-sm);
}

nav {
    min-height: 58px;
    padding: 0 1rem 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    font-weight: 700;
    color: var(--ink);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--ink-soft);
    border-radius: var(--radius-pill);
    padding: 0.42rem 0.8rem;
    transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
    background: rgba(28, 20, 16, 0.06);
}

.nav-cta {
    margin-left: 0.35rem;
    color: #fff !important;
    background: var(--dark) !important;
}

.nav-cta:hover {
    background: var(--dark-surface) !important;
    color: #fff !important;
}

.hamburger { display: none; background: none; border: none; padding: 5px; }
.hamburger span {
    display: block; width: 20px; height: 1.6px; margin: 4px 0;
    border-radius: 2px; background: var(--ink); transition: all 0.28s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ================================================================
   DECORATIVE ORGANIC ARCS (Heidi-style)
   ================================================================ */

.deco-arc {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.06;
}

.deco-arc--tr {
    top: -80px;
    right: -100px;
    width: 500px;
    height: 500px;
}

.deco-arc--bl {
    bottom: -60px;
    left: -80px;
    width: 350px;
    height: 350px;
}

.deco-arc--company {
    top: -40px;
    right: -60px;
    width: 300px;
    height: 300px;
    opacity: 0.04;
}

/* Sparkle decorations */
.sparkle {
    position: absolute;
    pointer-events: none;
    color: var(--ink);
    z-index: 2;
    will-change: transform;
}

.sparkle-1 {
    top: 220px; left: 8%;
    font-size: 1.1rem; opacity: 0.12;
    animation: sparkle-drift 7s ease-in-out infinite;
}

.sparkle-2 {
    top: 300px; right: 10%;
    font-size: 1.8rem; opacity: 0.06;
    font-weight: 300;
    animation: sparkle-drift 9s ease-in-out infinite reverse;
}

.sparkle-3 {
    bottom: 200px; right: 18%;
    font-size: 0.8rem; opacity: 0.1;
    animation: sparkle-drift 6s ease-in-out 1s infinite;
}

@keyframes sparkle-drift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(10deg); }
    66% { transform: translateY(4px) rotate(-5deg); }
}

