/* --- 1. THEME & SETUP --- */
:root {
    --bg-creamy: #FDFBF6;
    --text-dark: #3C3633;
    --text-light: #EAE6E2;
    --accent-brown: #A97155;
    --accent-brown-light: #C3987F;
    --accent-yellow: #FFD289;
    --border-soft: #E0D8D3;
    --ui-font: 'Inter', sans-serif;
    --body-font: 'Lora', serif;
    --mono-font: 'Space Mono', monospace;
    --handwritten-font: 'Caveat', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--body-font); background-color: var(--bg-creamy); color: var(--text-dark); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
h1, h2, h3, h4, h5, h6, button, .process-number { font-family: var(--ui-font); }
em { font-style: italic; color: var(--accent-brown); font-weight: 500; }

/* --- 2. LOADER (GLASSY VERSION) --- */
#loader { position: fixed; inset: 0; z-index: 9999; background-color: var(--bg-creamy); display: flex; justify-content: center; align-items: center; transition: opacity 0.75s ease-in-out, visibility 0.75s; }
#loader.hidden { opacity: 0; visibility: hidden; }
.bubble { position: absolute; width: 100px; height: 100px; background: rgba(169, 113, 85, 0.1); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); border: 1px solid rgba(169, 113, 85, 0.2); border-radius: 50%; }
.bubble:nth-child(1) { animation: divideAndFadeLeft 3s ease-in-out forwards; }
.bubble:nth-child(2) { animation: divideAndFadeRight 3s ease-in-out forwards; }
@keyframes divideAndFadeLeft { 0% { transform: translateX(0) scale(1); opacity: 1; } 60% { transform: translateX(-70px) scale(1.1); opacity: 1; } 100% { transform: translateX(-150px) scale(0.5); opacity: 0; } }
@keyframes divideAndFadeRight { 0% { transform: translateX(0) scale(1); opacity: 1; } 60% { transform: translateX(70px) scale(1.1); opacity: 1; } 100% { transform: translateX(150px) scale(0.5); opacity: 0; } }

/* --- 3. HEADER & LOGO ANIMATION --- */
header { padding: 1.5rem 0; position: absolute; width: 100%; z-index: 10; }
.logo { font-family: var(--mono-font); font-weight: 700; font-size: 1.5rem; color: var(--text-dark); text-decoration: none; display: inline-flex; cursor: pointer; }
.logo-char { display: inline-block; transition: margin-right 0.4s cubic-bezier(0.25, 1, 0.5, 1); margin-right: 8px; }
.logo-char:last-child { margin-right: 0; }
.logo:hover .logo-char { margin-right: 2px; }
.logo:hover .logo-char:last-child { margin-right: 0; }

/* --- 4. ANIMATIONS (RETRACTING) --- */
.anim-reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.anim-reveal.is-visible { opacity: 1; transform: translateY(0); }
.process-item.is-visible { transition-delay: calc(var(--i) * 0.1s); }

/* --- 5. HERO SECTION --- */
#hero { min-height: 90vh; display: flex; align-items: center; padding: 10rem 0 5rem 0; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
h1 { font-family: var(--mono-font); font-size: 2.8rem; font-weight: 700; margin-bottom: 1.5rem; line-height: 1.2; min-height: 70px; }
.tagline { font-size: 1.25rem; opacity: 0.8; margin-bottom: 2rem; max-width: 450px; }

/* Announcement Animation (On Page Load) */
.announcement { display: inline-block; position: relative; }
.announcement h2 { font-family: var(--handwritten-font); font-size: 1.8rem; font-weight: 700; line-height: 1; color: var(--accent-brown); }
.anim-text-reveal span { display: inline-block; opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.announcement.start-animation .anim-text-reveal span { opacity: 1; transform: translateY(0); }
.underline-svg { position: absolute; bottom: -5px; left: 0; width: 100%; height: 10px; overflow: visible; }
.underline-svg path {
    stroke: var(--accent-yellow); stroke-width: 4; fill: none;
    stroke-linecap: round;
    stroke-dasharray: var(--path-length, 100);
    stroke-dashoffset: var(--path-length, 100);
    transition: stroke-dashoffset 1s cubic-bezier(0.45, 0, 0.55, 1) 0.3s;
}
.announcement.start-animation .underline-svg path { stroke-dashoffset: 0; }

.hero-image-wrapper { perspective: 1000px; }
.hero-image-wrapper img { width: 100%; height: auto; object-fit: cover; border-radius: 12px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); transform: rotateY(-10deg) rotateX(5deg) scale(1.05); transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.hero-image-wrapper:hover img { transform: rotate(0) scale(1); }

/* --- 6. PHILOSOPHY SECTION --- */
#philosophy { padding: 6rem 0; text-align: center; }
.philosophy-content { max-width: 750px; margin: 0 auto; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); padding: 4rem 0; }
#philosophy h2 { font-family: var(--mono-font); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-brown); margin-bottom: 2rem; }
#philosophy p { font-size: 1.5rem; line-height: 1.6; font-weight: 400; }

/* --- 7. PROCESS SECTION --- */
#process { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 5rem; }
.section-header h2 { font-size: 2.5rem; font-weight: 700; }
.process-timeline { position: relative; display: grid; gap: 3rem; max-width: 800px; margin: 0 auto; }
.process-timeline::before { content: ''; position: absolute; top: 20px; bottom: 20px; left: 45px; width: 2px; background-color: var(--border-soft); transform-origin: top; transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); transform: scaleY(0); }
.process-timeline.is-visible::before { transform: scaleY(1); }
.process-item { display: flex; align-items: flex-start; gap: 2.5rem; }
.process-number { font-size: 1.5rem; font-weight: 700; color: var(--accent-brown); background-color: var(--bg-creamy); width: 90px; flex-shrink: 0; text-align: center; z-index: 2; }
.process-text h3 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.process-text p { font-size: 1.05rem; opacity: 0.8; }

/* --- 8. END CAP (CONNECT & FOOTER) --- */
.site-end-cap { padding: 6rem 0 0 0; position: relative; background: url('background-night.png') no-repeat center center; background-size: cover; color: var(--text-light); }
.site-end-cap::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 21, 31, 0.85), rgba(14, 21, 31, 0.6)); z-index: 1; }
#connect, footer { position: relative; z-index: 2; }
.connect-container { background-color: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-radius: 16px; padding: 4rem; text-align: center; max-width: 700px; margin: 0 auto; }
#connect h2 { font-size: 2rem; margin-bottom: 1rem; color: #fff; }
#connect p { opacity: 0.8; margin-bottom: 2rem; }
#subscribe-form { display: flex; justify-content: center; gap: 0.5rem; }
#subscribe-form input { font-family: var(--ui-font); font-size: 1rem; padding: 0.8rem 1rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; width: 100%; max-width: 300px; background-color: rgba(0,0,0,0.2); color: #fff; transition: box-shadow 0.3s ease; }
#subscribe-form input::placeholder { color: rgba(255,255,255,0.4); }
#subscribe-form input:focus { outline: none; box-shadow: 0 0 0 3px var(--accent-brown-light); }
#subscribe-form button { font-family: var(--ui-font); font-size: 1rem; font-weight: 500; padding: 0.8rem 1.5rem; border: none; border-radius: 8px; background-color: var(--accent-brown); color: var(--bg-creamy); cursor: pointer; transition: all 0.3s ease; }
#subscribe-form button:hover:not(:disabled) { background-color: var(--accent-brown-light); transform: translateY(-2px); }
#subscribe-form button:disabled { background-color: #555; color: #aaa; cursor: not-allowed; }
footer { text-align: center; padding: 5rem 2rem 3rem 2rem; color: rgba(255, 255, 255, 0.6); background: none; }

/* --- 9. RESPONSIVENESS --- */
@media (max-width: 992px) { .hero-container { grid-template-columns: 1fr; text-align: center; } .hero-content { order: 2; } .tagline { margin-left: auto; margin-right: auto; } .hero-image-wrapper { order: 1; margin-bottom: 3rem; } .hero-image-wrapper img { transform: rotate(0); } h1 { font-size: 2.5rem; } }
@media (max-width: 768px) { body { line-height: 1.6; } #hero { padding-top: 8rem; padding-bottom: 3rem; } h1 { font-size: 2.2rem; min-height: 60px; } #philosophy, #process, .site-end-cap { padding-top: 4rem; } #philosophy p { font-size: 1.25rem; } .section-header h2 { font-size: 2rem; } .process-timeline::before { left: 29px; } .process-item { gap: 1.5rem; } .process-number { font-size: 1.2rem; width: 60px; } .process-text h3 { font-size: 1.5rem; } .connect-container { padding: 2.5rem 1.5rem; backdrop-filter: blur(5px); } #subscribe-form { flex-direction: column; align-items: center; } #subscribe-form input { max-width: none; } }