/* ===== Design tokens ===== */
:root {
    --coffee-black: #241209;
    --espresso: #3A2010;
    --cream: #F6ECDD;
    --amber: #C17817;
    --amber-light: #E8B778;
    --rust: #9C4A2B;
}

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

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--cream);
    overflow-x: hidden;
}

/* ===== Background ===== */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    animation: kenburns 40s ease-in-out infinite alternate;
}

@keyframes kenburns {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.12) translate(-1.5%, -1%); }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(
        135deg,
        rgba(36, 18, 9, 0.88) 0%,
        rgba(36, 18, 9, 0.55) 45%,
        rgba(36, 18, 9, 0.75) 100%
    );
}

/* ===== Layout ===== */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 32px 6vw;
}

/* ===== Navbar ===== */
.navbabr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-radius: 999px;
    background: rgba(246, 236, 221, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(246, 236, 221, 0.12);
    opacity: 0;
    animation: fadeDown 0.7s ease-out 0.1s forwards;
}

.logo img {
    height: 46px;
    display: block;
    transition: transform 0.35s ease;
}

.logo:hover img {
    transform: scale(1.06) rotate(-2deg);
}

.menu {
    list-style: none;
    display: flex;
    gap: 36px;
}

.menu li a {
    position: relative;
    color: var(--cream);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding-bottom: 6px;
}

.menu li a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background: var(--amber-light);
    transition: width 0.3s ease, left 0.3s ease;
}

.menu li a:hover::after {
    width: 100%;
    left: 0;
}

.menu li a:hover {
    color: var(--amber-light);
}

/* ===== Hero ===== */
.home {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 620px;
    padding-top: 8vh;
}

.eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--amber-light);
    margin-bottom: 22px;
    opacity: 0;
    animation: fadeUp 0.7s ease-out 0.35s forwards;
}

.title1 {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(2.6rem, 5.5vw, 4.4rem);
    line-height: 1.08;
    color: var(--cream);
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.5s forwards;
}

.title1 span {
    font-style: italic;
    font-weight: 500;
    color: var(--amber-light);
}

.subtitle {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: 1.08rem;
    line-height: 1.6;
    color: rgba(246, 236, 221, 0.82);
    margin-top: 22px;
    max-width: 460px;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.68s forwards;
}

/* ===== CTA button with steam signature ===== */
.cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    margin-top: 40px;
    padding: 16px 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber) 0%, var(--rust) 100%);
    color: var(--cream);
    text-decoration: none;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 24px rgba(193, 120, 23, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeUp 0.8s ease-out 0.86s forwards;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(193, 120, 23, 0.42);
}

.cta-btn i {
    transition: transform 0.3s ease;
}

.cta-btn:hover i {
    transform: translateX(4px);
}

/* Steam wisps rising from the cup icon area */
.steam {
    position: relative;
    width: 16px;
    height: 20px;
    display: inline-block;
}

.wisp {
    position: absolute;
    bottom: 0;
    width: 3px;
    height: 10px;
    border-radius: 3px;
    background: rgba(246, 236, 221, 0.75);
    animation: rise 2.6s ease-in infinite;
}

.wisp1 { left: 2px;  animation-delay: 0s; }
.wisp2 { left: 7px;  animation-delay: 0.7s; }
.wisp3 { left: 12px; animation-delay: 1.4s; }

@keyframes rise {
    0%   { transform: translateY(0) scaleX(1);   opacity: 0; }
    15%  { opacity: 0.8; }
    50%  { transform: translateY(-10px) scaleX(1.4); }
    100% { transform: translateY(-20px) scaleX(0.6); opacity: 0; }
}

/* ===== Motion entrance keyframes ===== */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    .background, .navbabr, .eyebrow, .title1, .subtitle, .cta-btn, .wisp {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .container { padding: 20px 5vw; }
    .navbabr { flex-direction: column; gap: 14px; border-radius: 24px; padding: 18px; }
    .menu { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .home { padding-top: 6vh; }
    .title1 { font-size: clamp(2.2rem, 8vw, 3rem); }
}