/* ============================================
   Background Canvas
   - Fixed fullscreen canvas for orbital animation
   ============================================ */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #000000;
}

/* ============================================
   Layout Wrapper
   ============================================ */
#wrap {
    position: relative;
    z-index: 1;
}

/* ============================================
   Hero Section
   - SVG logo with scroll-driven zoom effect
   - White borders mask the edges during scale
   ============================================ */
.hero {
    overflow: hidden;
}

.hero-img-wrap {
    padding: clamp(40px, 4.167vw, 80px) clamp(24px, 20.5vw - 53px, 340px) 0;
    position: relative;
    transform-origin: bottom center;
    will-change: transform;
}

/* Top white border to mask hero image overflow */
.hero-img-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(clamp(40px, 4.167vw, 80px) + 1px);
    background-color: #ffffff;
    z-index: 1;
}

/* Left/right white borders to mask hero image overflow */
.hero-side {
    position: absolute;
    top: 0;
    width: calc(clamp(24px, 20.5vw - 53px, 340px) + 1px);
    height: 100%;
    background-color: #ffffff;
    z-index: 1;
}

.hero-side.left { left: 0; }
.hero-side.right { right: 0; }

.hero svg {
    width: 100%;
    display: block;
    margin-bottom: -2px; /* Prevent sub-pixel gap between SVG and intro */
}

/* ============================================
   Intro Section
   - Scroll-driven word-by-word text reveal
   ============================================ */
.intro {
    background-color: #ffffff;
    padding-top: 80px;
    padding-bottom: 240px;
    text-align: center;
    margin-top: -1px; /* Overlap to prevent sub-pixel gap with hero */
}

.intro-inner {
    padding: 0 clamp(24px, 8.333vw, 160px);
}

.intro-inner h1 {
    font-family: freight-text-pro, serif;
    font-size: clamp(48px, 2.5vw + 32px, 72px);
    font-weight: 600;
    font-style: normal;
    margin-bottom: clamp(64px, 4.167vw + 40px, 160px);
}

.intro-inner p {
    font-family: freight-text-pro, serif;
    font-size: clamp(24px, 1.458vw + 14px, 56px);
    font-weight: 300;
    font-style: normal;
}

.intro-inner p:first-of-type {
    margin-bottom: clamp(24px, 1.458vw + 14px, 56px);
}

/* Word mask: scrolls from gray (25% opacity) to fully visible */
.highlighting .word {
    color: #000000;
    -webkit-mask-image: linear-gradient(90deg, #fff 33.3%, rgba(0, 0, 0, 0.25) 66.6%);
    mask-image: linear-gradient(90deg, #fff 33.3%, rgba(0, 0, 0, 0.25) 66.6%);
    -webkit-mask-size: 300% 100%;
    mask-size: 300% 100%;
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
}

/* Overview button: downloads PDF on click */
.highlighting .overview-btn {
    position: relative;
    color: #000000;
    cursor: pointer;
}

/* Turns accent color once fully revealed by scroll */
.highlighting .overview-btn.revealed {
    color: #FF005E;
}

/* Underline hover effect: slides in from left */
.highlighting .overview-btn::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #FF005E;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.highlighting .overview-btn:hover::after {
    transform: scaleX(1);
}

/* ============================================
   Footer
   - "Say Hello" mailto link centered above copyright
   ============================================ */
footer {
    background-color: transparent;
    height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-inner {
    width: 100%;
    height: 100%;
    padding: 0 clamp(24px, 8.333vw, 160px) 48px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.say-hello {
    flex: 1;
    font-family: freight-text-pro, serif;
    font-size: clamp(48px, 2.5vw + 32px, 72px);
    font-weight: 300;
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    color: #ffffff;
    cursor: pointer;
}

/* Arrow icon nudge on hover */
.icon-link {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.say-hello:hover .icon-link {
    transform: translate(3px, -3px);
}

/* Copyright bar pinned to bottom */
.copyright {
    margin-top: auto;
    font-family: "Pretendard", sans-serif;
    font-weight: 400;
    font-size: 15px;
}

.copyright .divider {
    margin: 0 8px;
}
