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

:root {
    --cream: #f5f0e8;
    --cream-dark: #ebe4d6;
    --ink: #1a1a1a;
    --ink-light: #5c5c5c;
    --ink-muted: #9a9486;
    --accent: #b8860b;
    --accent-soft: rgba(184, 134, 11, 0.12);
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--cream);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

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

/* ===== Layout ===== */
.container {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 1.5rem 2rem;
    animation: fadeIn 1s ease both;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.logo-icon {
    opacity: 0.85;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}

/* ===== Illustration ===== */
.illustration {
    width: 100%;
    max-width: 320px;
    animation: fadeInUp 1s ease 0.1s both;
}

.construction-svg {
    width: 100%;
    height: auto;
}

/* SVG draw-in animation */
.draw-line {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawIn 2s ease 0.5s forwards;
}

@keyframes drawIn {
    to { stroke-dashoffset: 0; }
}

/* Hanging block sway */
.hanging-block {
    transform-origin: 160px 48px;
    animation: sway 4s ease-in-out infinite;
}

.crane-cable {
    transform-origin: 160px 48px;
    animation: sway 4s ease-in-out infinite;
}

@keyframes sway {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1.5deg); }
    75% { transform: rotate(-1.5deg); }
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
}

/* Tag */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(26, 26, 26, 0.12);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: softPulse 2.5s ease-in-out infinite;
}

@keyframes softPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* Title */
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-title em {
    font-style: italic;
    color: var(--accent);
}

/* Subtitle */
.hero-sub {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--ink-muted);
    line-height: 1.7;
    max-width: 400px;
    animation: fadeInUp 0.8s ease 0.7s both;
}

/* Timeline hint */
.timeline-hint {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    background: var(--accent-soft);
    border-radius: 10px;
    animation: fadeInUp 0.8s ease 0.9s both;
}

.hint-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hint-date {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: -0.01em;
}

/* Divider */
.divider {
    opacity: 0.6;
    animation: fadeInUp 0.8s ease 1.1s both;
}

/* Contact */
.hero-contact {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--ink-muted);
    animation: fadeInUp 0.8s ease 1.2s both;
}

.contact-link {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid rgba(26, 26, 26, 0.25);
    padding-bottom: 1px;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.contact-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== Footer ===== */
.footer {
    margin-top: auto;
    padding-top: 3rem;
    animation: fadeIn 1s ease 1.4s both;
}

.footer p {
    font-size: 0.7rem;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .container {
        padding: 2rem 1.25rem;
    }

    .header {
        padding: 1.25rem 1.25rem;
    }

    .hero {
        gap: 1.25rem;
    }

    .illustration {
        max-width: 260px;
    }
}
