/* namu.biz - Memphis-inflected tree magazine */
/* Colors: #1A1A2E #2D2D3F #FF2D78 #FFE156 #00E676 #F5F0E8 #FFB4C8 #0A0A14 */
/* Fonts: Nunito, Noto Sans KR, Quicksand */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; }
body { font-family: "Quicksand", sans-serif; font-weight: 400; color: #F5F0E8; background: #0A0A14; overflow-x: hidden; }
.svg-filters { position: absolute; width: 0; height: 0; overflow: hidden; }

.noise-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.noise-overlay::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.noise-overlay--light::after { background-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 256 256%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.65%27 numOctaves=%273%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23n)%27/%3E%3C/svg%3E"); opacity: 0.06; mix-blend-mode: overlay; }
.noise-overlay--dark::after { background-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 256 256%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.65%27 numOctaves=%273%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23n)%27/%3E%3C/svg%3E"); opacity: 0.08; mix-blend-mode: multiply; }
.noise-overlay--light-heavy::after { background-image: url("data:image/svg+xml,%3Csvg viewBox=%270 0 256 256%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.65%27 numOctaves=%273%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23n)%27/%3E%3C/svg%3E"); opacity: 0.10; mix-blend-mode: overlay; }

/* Page Indicators */
.page-indicators { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 16px; z-index: 100; }
.page-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #F5F0E8; background: transparent; cursor: pointer; transition: background 0.3s, transform 0.3s, border-color 0.3s; position: relative; overflow: hidden; }
.page-dot.active { background: #FF2D78; transform: scale(1.3); border-color: #FF2D78; }
.page-dot--stripes::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(245,240,232,0.3) 2px, rgba(245,240,232,0.3) 3px); }
.page-dot--dots::before { content: ""; position: absolute; top: 3px; left: 3px; width: 4px; height: 4px; background: rgba(245,240,232,0.4); border-radius: 50%; }
.page-dot--zigzag::before { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: rgba(245,240,232,0.4); transform: translateY(-50%); }
.page-dot--grid::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(245,240,232,0.3) 1px, transparent 1px), linear-gradient(90deg, rgba(245,240,232,0.3) 1px, transparent 1px); background-size: 4px 4px; }

/* Spread Base */
.spread { min-height: 100vh; width: 100%; position: relative; overflow: hidden; scroll-snap-align: start; }
.spread-label { font-family: "Nunito", sans-serif; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: #FFB4C8; position: absolute; top: 30px; left: 40px; z-index: 5; }
.spread-label--light { color: #FFB4C8; }

/* Spread 1 - Cover */
.spread-cover { background: #1A1A2E; display: flex; align-items: center; justify-content: center; }
.cover-shape { position: absolute; opacity: 0; animation: shapeAppear 1.2s ease-out forwards; }
.cover-circle { width: 200px; height: 200px; border-radius: 50%; background: #FF2D78; left: 15%; top: 30%; animation-delay: 0s; }
.cover-triangle { width: 0; height: 0; border-left: 90px solid transparent; border-right: 90px solid transparent; border-bottom: 156px solid #FFE156; left: 55%; top: 20%; animation-delay: 0.3s; }
.cover-rectangle { width: 120px; height: 200px; background: #2D2D3F; left: 70%; top: 50%; animation-delay: 0.6s; }
@keyframes shapeAppear { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

.cover-tree { position: absolute; left: 42%; top: 25%; transform: rotate(23deg); z-index: 2; }
.cover-tree__trunk { width: 10px; height: 140px; background: #2D2D3F; margin: 0 auto; position: relative; }
.cover-tree__crown { position: absolute; width: 0; height: 0; }
.cover-tree__crown--1 { border-left: 45px solid transparent; border-right: 45px solid transparent; border-bottom: 65px solid #00E676; top: -60px; left: 50%; transform: translateX(-50%); }
.cover-tree__crown--2 { border-left: 55px solid transparent; border-right: 55px solid transparent; border-bottom: 75px solid #FFE156; top: -40px; left: 50%; transform: translateX(-50%); opacity: 0.85; }
.cover-tree__crown--3 { border-left: 40px solid transparent; border-right: 40px solid transparent; border-bottom: 55px solid #FFB4C8; top: -20px; left: 50%; transform: translateX(-50%) rotate(8deg); opacity: 0.75; }

.cover-text { position: relative; z-index: 10; text-align: left; padding-left: 10%; }
.cover-headline { font-family: "Nunito", sans-serif; font-weight: 800; font-size: clamp(5rem, 15vw, 12rem); color: #F5F0E8; line-height: 0.95; letter-spacing: 0.02em; min-height: 2.2em; white-space: nowrap; }
.cover-headline .line-break { display: block; padding-left: 30%; }
.cursor-blink::after { content: "|"; animation: blink 530ms step-end infinite; color: #FF2D78; font-weight: 400; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.cover-subtitle { margin-top: 20px; opacity: 0; transition: opacity 0.5s ease; }
.cover-subtitle.visible { opacity: 1; }
.cover-subtitle__kr { font-family: "Noto Sans KR", sans-serif; font-weight: 700; font-size: clamp(2.5rem, 7.5vw, 6rem); color: #FFE156; display: block; }
.cover-subtitle__en { font-family: "Quicksand", sans-serif; font-weight: 400; font-size: 1.2rem; color: #FFB4C8; display: block; margin-top: 8px; letter-spacing: 0.05em; }

/* Spread 2 - Feature */
.spread-feature { background: #F5F0E8; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 0; align-items: center; color: #1A1A2E; }
.feature-zigzag { position: absolute; top: 0; left: 0; width: 150%; height: 100%; z-index: 2; pointer-events: none; background: repeating-linear-gradient(-23deg, transparent, transparent 58px, #FF2D78 58px, #FF2D78 62px); opacity: 0.12; }
.feature-left { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; height: 100vh; padding: 40px; }
.feature-image { width: 80%; height: 70%; background: #2D2D3F; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.feature-tree { position: relative; width: 120px; height: 200px; }
.feature-tree__trunk { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) rotate(3deg); width: 12px; height: 100px; background: #F5F0E8; }
.feature-tree__crown { position: absolute; width: 0; height: 0; }
.feature-tree__crown--1 { border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 70px solid #00E676; top: 10px; left: 50%; transform: translateX(-50%); }
.feature-tree__crown--2 { border-left: 60px solid transparent; border-right: 60px solid transparent; border-bottom: 80px solid #FFE156; top: 30px; left: 50%; transform: translateX(-50%) rotate(-5deg); opacity: 0.8; }
.feature-tree__crown--3 { border-left: 40px solid transparent; border-right: 40px solid transparent; border-bottom: 55px solid #FF2D78; top: 0; left: 50%; transform: translateX(-50%) rotate(10deg); opacity: 0.7; }
.feature-tree__crown--4 { border-left: 35px solid transparent; border-right: 35px solid transparent; border-bottom: 50px solid #FFB4C8; top: 50px; left: 50%; transform: translateX(-50%) rotate(-3deg); opacity: 0.6; }
.feature-tree__root { position: absolute; bottom: -5px; width: 40px; height: 3px; background: #FF2D78; }
.feature-tree__root--1 { left: 30%; transform: rotate(35deg); transform-origin: top left; }
.feature-tree__root--2 { right: 30%; transform: rotate(-35deg); transform-origin: top right; }
.feature-right { position: relative; z-index: 3; padding: 60px 40px 60px 20px; max-width: 500px; }
.feature-text, .feature-text-en { font-family: "Quicksand", sans-serif; font-weight: 400; font-size: clamp(1rem, 1.8vw, 1.2rem); line-height: 1.85; max-width: 38ch; color: #1A1A2E; margin-bottom: 24px; }
.feature-text { font-family: "Noto Sans KR", sans-serif; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.6; min-height: 2em; }

/* Spread 3 - Pull Quote */
.spread-quote { background: #FFE156; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.quote-shape { position: absolute; z-index: 1; }
.quote-shape--1 { width: 20px; height: 20px; background: #FF2D78; border-radius: 50%; top: 15%; left: 10%; }
.quote-shape--2 { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 17px solid #2D2D3F; top: 25%; right: 15%; }
.quote-shape--3 { width: 15px; height: 15px; background: #1A1A2E; border-radius: 50%; bottom: 20%; left: 20%; }
.quote-shape--4 { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid #FF2D78; bottom: 30%; right: 25%; }
.quote-shape--5 { width: 12px; height: 12px; background: #2D2D3F; top: 40%; left: 5%; transform: rotate(45deg); }
.quote-shape--6 { width: 18px; height: 18px; background: #FF2D78; border-radius: 50%; top: 10%; right: 30%; }
.quote-shape--7 { width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-bottom: 20px solid #1A1A2E; bottom: 15%; right: 10%; }
.quote-shape--8 { width: 14px; height: 14px; background: #2D2D3F; border-radius: 50%; bottom: 40%; left: 30%; }
.pull-quote { font-family: "Nunito", sans-serif; font-weight: 800; font-size: clamp(3rem, 8vw, 6rem); color: #1A1A2E; text-align: center; line-height: 1.3; position: relative; z-index: 5; padding: 0 20px; }
.pull-quote__char { display: inline-block; transform: rotate(var(--r, 0deg)); font-family: "Noto Sans KR", sans-serif; }
.pull-quote__translation { font-family: "Quicksand", sans-serif; font-weight: 500; font-size: 1rem; color: #2D2D3F; margin-top: 30px; letter-spacing: 0.05em; position: relative; z-index: 5; }

/* Spread 4 - Specimen Grid */
.spread-grid { background: #1A1A2E; display: flex; align-items: center; justify-content: center; padding: 60px 40px; }
.specimen-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; grid-template-rows: 1.1fr 0.9fr; gap: 4px; width: 100%; max-width: 1100px; height: 70vh; position: relative; z-index: 5; }
.specimen-card { background: #2D2D3F; position: relative; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.specimen-card[data-border-color="pink"] { border: 2px solid #FFB4C8; }
.specimen-card[data-border-color="yellow"] { border: 2px solid #FFE156; }
.specimen-card[data-border-color="charcoal"] { border: 2px solid #3D3D4F; }
.specimen-name { font-family: "Noto Sans KR", sans-serif; font-weight: 700; font-size: 1.8rem; color: #F5F0E8; position: relative; z-index: 2; }
.specimen-romanize { font-family: "Quicksand", sans-serif; font-weight: 400; font-size: 0.85rem; color: #FFB4C8; position: relative; z-index: 2; margin-top: 4px; }

/* Specimen swatches */
.specimen-swatch { position: absolute; top: 10px; right: 10px; width: 60px; height: 60px; border: 2px solid #1A1A2E; z-index: 3; }
.specimen-swatch--polka { background: radial-gradient(circle, #FF2D78 3px, transparent 3px); background-size: 12px 12px; background-color: #FFE156; }
.specimen-swatch--stripes { background: repeating-linear-gradient(45deg, #FFE156, #FFE156 3px, #FF2D78 3px, #FF2D78 6px); }
.specimen-swatch--zigzag { background: repeating-linear-gradient(60deg, #00E676, #00E676 3px, #1A1A2E 3px, #1A1A2E 6px); }
.specimen-swatch--grid-pattern { background: linear-gradient(#FF2D78 1px, transparent 1px), linear-gradient(90deg, #FF2D78 1px, transparent 1px); background-size: 10px 10px; background-color: #2D2D3F; }
.specimen-swatch--dots-small { background: radial-gradient(circle, #FFE156 2px, transparent 2px); background-size: 8px 8px; background-color: #1A1A2E; }
.specimen-swatch--chevron { background: repeating-linear-gradient(60deg, transparent, transparent 4px, #FFB4C8 4px, #FFB4C8 6px), repeating-linear-gradient(120deg, transparent, transparent 4px, #FFB4C8 4px, #FFB4C8 6px); background-color: #2D2D3F; }

/* Specimen trees */
.specimen-tree { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); }
.specimen-tree__trunk { width: 8px; height: 50px; background: #F5F0E8; margin: 0 auto; position: relative; transform: rotate(2deg); }
.specimen-tree__tri { position: absolute; width: 0; height: 0; }

/* Pine */
.specimen-tree--pine .specimen-tree__tri--1 { border-left: 25px solid transparent; border-right: 25px solid transparent; border-bottom: 40px solid #00E676; top: -40px; left: 50%; transform: translateX(-50%); }
.specimen-tree--pine .specimen-tree__tri--2 { border-left: 30px solid transparent; border-right: 30px solid transparent; border-bottom: 45px solid #00E676; top: -25px; left: 50%; transform: translateX(-50%); opacity: 0.8; }
.specimen-tree--pine .specimen-tree__tri--3 { border-left: 35px solid transparent; border-right: 35px solid transparent; border-bottom: 50px solid #00E676; top: -10px; left: 50%; transform: translateX(-50%); opacity: 0.6; }

/* Ginkgo */
.specimen-tree--ginkgo .specimen-tree__tri--1 { border-left: 35px solid transparent; border-right: 35px solid transparent; border-bottom: 50px solid #FFE156; top: -35px; left: 50%; transform: translateX(-50%) rotate(5deg); }
.specimen-tree--ginkgo .specimen-tree__tri--2 { border-left: 40px solid transparent; border-right: 40px solid transparent; border-bottom: 55px solid #FFE156; top: -15px; left: 50%; transform: translateX(-50%) rotate(-3deg); opacity: 0.7; }

/* Cherry */
.specimen-tree--cherry .specimen-tree__tri--1 { border-left: 30px solid transparent; border-right: 30px solid transparent; border-bottom: 45px solid #FFB4C8; top: -40px; left: 50%; transform: translateX(-50%); }
.specimen-tree--cherry .specimen-tree__tri--2 { border-left: 35px solid transparent; border-right: 35px solid transparent; border-bottom: 50px solid #FF2D78; top: -25px; left: 50%; transform: translateX(-50%) rotate(4deg); opacity: 0.7; }
.specimen-tree--cherry .specimen-tree__tri--3 { border-left: 25px solid transparent; border-right: 25px solid transparent; border-bottom: 40px solid #FFB4C8; top: -15px; left: 50%; transform: translateX(-50%) rotate(-6deg); opacity: 0.6; }
.specimen-tree--cherry .specimen-tree__tri--4 { border-left: 30px solid transparent; border-right: 30px solid transparent; border-bottom: 45px solid #FF2D78; top: -5px; left: 50%; transform: translateX(-50%); opacity: 0.5; }

/* Maple */
.specimen-tree--maple .specimen-tree__tri--1 { border-left: 20px solid transparent; border-right: 20px solid transparent; border-bottom: 35px solid #FF2D78; top: -45px; left: 50%; transform: translateX(-50%) rotate(-3deg); }
.specimen-tree--maple .specimen-tree__tri--2 { border-left: 25px solid transparent; border-right: 25px solid transparent; border-bottom: 40px solid #FFE156; top: -35px; left: 40%; transform: translateX(-50%) rotate(8deg); opacity: 0.8; }
.specimen-tree--maple .specimen-tree__tri--3 { border-left: 28px solid transparent; border-right: 28px solid transparent; border-bottom: 42px solid #FF2D78; top: -25px; left: 60%; transform: translateX(-50%) rotate(-5deg); opacity: 0.7; }
.specimen-tree--maple .specimen-tree__tri--4 { border-left: 32px solid transparent; border-right: 32px solid transparent; border-bottom: 48px solid #FFE156; top: -15px; left: 50%; transform: translateX(-50%); opacity: 0.6; }
.specimen-tree--maple .specimen-tree__tri--5 { border-left: 22px solid transparent; border-right: 22px solid transparent; border-bottom: 38px solid #FF2D78; top: -5px; left: 50%; transform: translateX(-50%) rotate(3deg); opacity: 0.5; }

/* Bamboo */
.specimen-tree--bamboo { display: flex; gap: 8px; align-items: flex-end; }
.specimen-tree--bamboo .specimen-tree__trunk--bamboo-1 { width: 6px; height: 70px; background: #00E676; transform: rotate(0deg); }
.specimen-tree--bamboo .specimen-tree__trunk--bamboo-2 { width: 6px; height: 55px; background: #00E676; opacity: 0.8; transform: rotate(2deg); }
.specimen-tree--bamboo .specimen-tree__trunk--bamboo-3 { width: 6px; height: 65px; background: #00E676; opacity: 0.6; transform: rotate(-1deg); }
.specimen-tree__leaf { position: absolute; width: 0; height: 0; }
.specimen-tree__leaf--1 { border-left: 12px solid transparent; border-right: 0; border-bottom: 8px solid #00E676; top: -10px; left: 0; transform: rotate(-20deg); }
.specimen-tree__leaf--2 { border-left: 0; border-right: 12px solid transparent; border-bottom: 8px solid #00E676; top: 5px; right: -5px; transform: rotate(15deg); }
.specimen-tree__leaf--3 { border-left: 10px solid transparent; border-right: 0; border-bottom: 6px solid #00E676; top: 15px; left: -3px; transform: rotate(-30deg); opacity: 0.7; }

/* Zelkova */
.specimen-tree--zelkova .specimen-tree__tri--1 { border-left: 35px solid transparent; border-right: 35px solid transparent; border-bottom: 50px solid #00E676; top: -40px; left: 50%; transform: translateX(-50%) rotate(2deg); }
.specimen-tree--zelkova .specimen-tree__tri--2 { border-left: 40px solid transparent; border-right: 40px solid transparent; border-bottom: 55px solid #FFE156; top: -25px; left: 50%; transform: translateX(-50%) rotate(-4deg); opacity: 0.7; }
.specimen-tree--zelkova .specimen-tree__tri--3 { border-left: 30px solid transparent; border-right: 30px solid transparent; border-bottom: 45px solid #00E676; top: -10px; left: 50%; transform: translateX(-50%) rotate(6deg); opacity: 0.6; }
.specimen-tree--zelkova .specimen-tree__tri--4 { border-left: 45px solid transparent; border-right: 45px solid transparent; border-bottom: 60px solid #FFE156; top: 0; left: 50%; transform: translateX(-50%); opacity: 0.5; }

/* Spread 5 - Back Cover */
.spread-back { background: #1A1A2E; display: flex; align-items: center; justify-content: center; }
.back-content { text-align: center; position: relative; z-index: 5; }
.back-outline { font-family: "Noto Sans KR", sans-serif; font-weight: 700; font-size: clamp(8rem, 20vw, 16rem); color: transparent; -webkit-text-stroke: 2px #F5F0E8; line-height: 1; animation: strokeCycle 20s linear infinite; }
@keyframes strokeCycle { 0% { -webkit-text-stroke-color: #F5F0E8; } 25% { -webkit-text-stroke-color: #FF2D78; } 50% { -webkit-text-stroke-color: #FFE156; } 75% { -webkit-text-stroke-color: #00E676; } 100% { -webkit-text-stroke-color: #F5F0E8; } }
.back-line { width: 40vw; height: 1px; background: #FF2D78; margin: 30px auto; }
.back-domain { font-family: "Quicksand", sans-serif; font-weight: 500; font-size: 1rem; letter-spacing: 0.2em; color: #FFB4C8; min-height: 1.5em; display: inline-block; }

/* Responsive */
@media (max-width: 768px) {
    .spread-feature { grid-template-columns: 1fr; grid-template-rows: auto auto; }
    .feature-left { height: 50vh; }
    .feature-right { padding: 30px 20px; }
    .specimen-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; height: auto; min-height: 70vh; }
    .cover-text { padding-left: 5%; }
    .cover-headline { font-size: clamp(3rem, 12vw, 8rem); }
    .page-indicators { right: 10px; }
    .pull-quote { font-size: clamp(2rem, 6vw, 4rem); }
}
@media (max-width: 480px) {
    .specimen-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .cover-circle { width: 120px; height: 120px; }
    .cover-triangle { border-left-width: 50px; border-right-width: 50px; border-bottom-width: 87px; }
    .cover-rectangle { width: 80px; height: 130px; }
}
