/* =====================================================
   Obsidian & Ivory - Corporate Website
   Minimalist, Black & White, Serif Typography
   ===================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', -apple-system, sans-serif; color: #1a1a1a; background: #fff; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: opacity 0.3s; }
a:hover { opacity: 0.7; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.placeholder-img { background: linear-gradient(135deg, #e8e8e8, #d0d0d0); width: 100%; height: 100%; min-height: 300px; }

/* --- Fade In Animation --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   HEADER
   ===================================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); border-bottom: 1px solid #f0f0f0; }
.header-inner { max-width: 1400px; margin: 0 auto; padding: 0 60px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; display: flex; align-items: center; height: 100%; }
.main-nav { display: flex; gap: 36px; align-items: center; }
.main-nav a { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; padding: 4px 0; border-bottom: 2px solid transparent; transition: border-color 0.3s, opacity 0.3s; }
.main-nav a.active { border-bottom-color: #1a1a1a; font-weight: 600; }
.main-nav a:hover { opacity: 1; border-bottom-color: #999; }
.lang-switch { background: #1a1a1a !important; color: #fff !important; padding: 6px 16px !important; font-size: 0.7rem !important; letter-spacing: 0.12em !important; border-bottom: none !important; }
.lang-switch:hover { background: #333 !important; opacity: 1 !important; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-toggle span { width: 24px; height: 2px; background: #1a1a1a; transition: 0.3s; }

/* --- HERO --- */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 120px 60px 60px; position: relative; overflow: hidden; background: #000; color: #fff; }
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 2; }
.hero-content { max-width: 700px; position: relative; z-index: 3; }
.hero-subtitle { font-size: 0.75rem; letter-spacing: 0.35em; font-weight: 400; color: rgba(255,255,255,0.8); display: block; margin-bottom: 24px; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 24px; color: #fff; }
.hero-desc { font-size: 0.95rem; color: rgba(255,255,255,0.9); max-width: 520px; margin: 0 auto 32px; line-height: 1.8; }
.hero-cta { display: inline-block; background: #fff; color: #1a1a1a; padding: 14px 36px; font-size: 0.72rem; letter-spacing: 0.2em; font-weight: 500; transition: background 0.3s, transform 0.3s; }
.hero-cta:hover { background: #eee; opacity: 1; transform: translateY(-2px); }
.hero-scroll { position: absolute; bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.7rem; letter-spacing: 0.2em; color: rgba(255,255,255,0.6); z-index: 3; }

/* =====================================================
   MANIFESTO
   ===================================================== */
.manifesto { padding: 120px 60px; text-align: center; max-width: 900px; margin: 0 auto; }
.manifesto-label { font-size: 0.7rem; letter-spacing: 0.3em; color: #999; display: block; margin-bottom: 32px; }
.manifesto-text { font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 3vw, 2rem); font-style: italic; font-weight: 400; line-height: 1.6; border: none; padding: 0; }
.manifesto-line { width: 60px; height: 2px; background: #ddd; margin: 48px auto 0; }

/* =====================================================
   FEATURED PROJECT
   ===================================================== */
.featured-project { padding: 0 60px 100px; }
.featured-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 1400px; margin: 0 auto; }
.featured-image { overflow: hidden; }
.featured-image img { width: 100%; height: 500px; object-fit: cover; transition: transform 0.6s; }
.featured-image:hover img { transform: scale(1.03); }
.featured-info { padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.featured-label { font-size: 0.7rem; letter-spacing: 0.2em; color: #999; margin-bottom: 16px; }
.featured-title { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 400; margin-bottom: 20px; }
.featured-desc { font-size: 0.9rem; color: #555; line-height: 1.8; margin-bottom: 28px; }
.featured-link { font-size: 0.75rem; letter-spacing: 0.15em; font-weight: 500; }

/* =====================================================
   PROJECTS GRID (Homepage)
   ===================================================== */
.projects-grid { padding: 60px; background: #fafafa; }
.projects-grid-inner { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.project-card { display: block; transition: transform 0.3s; }
.project-card:hover { transform: translateY(-4px); opacity: 1; }
.project-card-img { overflow: hidden; aspect-ratio: 4/3; margin-bottom: 16px; }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.project-card:hover .project-card-img img { transform: scale(1.05); }
.project-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 400; margin-bottom: 4px; }
.project-meta { font-size: 0.75rem; color: #999; letter-spacing: 0.05em; text-transform: uppercase; }

/* =====================================================
   NEWS SECTION (Homepage)
   ===================================================== */
.news-section { padding: 100px 60px; max-width: 1400px; margin: 0 auto; }
.news-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 48px; border-bottom: 1px solid #eee; padding-bottom: 20px; }
.news-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 400; }
.news-view-all { font-size: 0.72rem; letter-spacing: 0.15em; font-weight: 500; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.news-card { display: block; transition: transform 0.3s; }
.news-card:hover { transform: translateY(-4px); opacity: 1; }
.news-card-img { overflow: hidden; aspect-ratio: 4/3; margin-bottom: 16px; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-category { font-size: 0.7rem; letter-spacing: 0.1em; color: #e63946; text-transform: uppercase; font-weight: 500; }
.news-card h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 500; margin: 8px 0; line-height: 1.4; }
.news-link { font-size: 0.72rem; letter-spacing: 0.1em; font-weight: 500; }

/* =====================================================
   STORY SECTION (Philosophy)
   ===================================================== */
.story-section { padding: 0 60px 100px; }
.story-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story-text h2 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 400; margin-bottom: 24px; }
.story-body { font-size: 0.9rem; color: #555; line-height: 1.9; }
.story-image { overflow: hidden; }
.story-placeholder { aspect-ratio: 1; border-radius: 0; background: linear-gradient(135deg, #222, #444); }

/* =====================================================
   VALUES SECTION (Philosophy)
   ===================================================== */
.values-section { padding: 80px 60px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.values-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; text-align: center; }
.value-label { font-size: 0.65rem; letter-spacing: 0.25em; color: #999; display: block; margin-bottom: 12px; }
.value-card h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 400; margin-bottom: 12px; }
.value-card p { font-size: 0.85rem; color: #666; line-height: 1.7; }

/* =====================================================
   PROCESS SECTION (Philosophy)
   ===================================================== */
.process-section { padding: 100px 60px; max-width: 1200px; margin: 0 auto; }
.process-header { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; }
.process-left h2 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 400; margin-bottom: 16px; }
.process-left p { font-size: 0.85rem; color: #666; line-height: 1.8; }
.process-step { display: flex; gap: 24px; padding: 32px 0; border-top: 1px solid #eee; }
.step-number { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 400; color: #ccc; flex-shrink: 0; }
.step-content h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 500; margin-bottom: 8px; }
.step-content p { font-size: 0.85rem; color: #666; line-height: 1.7; }

/* =====================================================
   PORTFOLIO PAGE
   ===================================================== */
.portfolio-header { padding: 120px 60px 48px; max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
.portfolio-subtitle { font-size: 0.7rem; letter-spacing: 0.25em; color: #999; display: block; margin-bottom: 12px; }
.portfolio-title { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 400; line-height: 1.1; }
.portfolio-header-right p { font-size: 0.9rem; color: #555; line-height: 1.8; }
.portfolio-divider { max-width: 1400px; margin: 0 auto; padding: 0 60px; }
.portfolio-divider::after { content: ''; display: block; height: 1px; background: #eee; }
.portfolio-main { max-width: 1400px; margin: 0 auto; padding: 40px 60px 100px; display: grid; grid-template-columns: 280px 1fr; gap: 48px; }

/* Portfolio Menu */
.portfolio-menu { border-right: 1px solid #eee; padding-right: 32px; }
.portfolio-menu-item { display: block; padding: 16px 0; border-left: 3px solid transparent; padding-left: 16px; transition: border-color 0.3s, background 0.3s; margin-bottom: 4px; }
.portfolio-menu-item h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 400; margin-bottom: 2px; color: #999; transition: color 0.3s; }
.portfolio-menu-item span { font-size: 0.7rem; letter-spacing: 0.1em; color: #bbb; text-transform: uppercase; }
.portfolio-menu-item.active { border-left-color: #1a1a1a; }
.portfolio-menu-item.active h3 { color: #1a1a1a; font-weight: 600; }
.portfolio-menu-item:hover { opacity: 1; }
.portfolio-menu-item:hover h3 { color: #1a1a1a; }

/* Portfolio Detail */
.detail-image { overflow: hidden; margin-bottom: 24px; }
.detail-image img { width: 100%; max-height: 550px; object-fit: cover; }
.detail-gallery { display: flex; gap: 12px; margin-bottom: 32px; overflow-x: auto; padding-bottom: 8px; }
.gallery-thumb { width: 100px; height: 75px; object-fit: cover; cursor: pointer; opacity: 0.6; transition: opacity 0.3s; border: 2px solid transparent; }
.gallery-thumb:hover { opacity: 1; border-color: #1a1a1a; }
.detail-placeholder { min-height: 400px; }
.detail-content { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.detail-text h2 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 400; margin-bottom: 16px; }
.detail-text p { font-size: 0.9rem; color: #555; line-height: 1.9; }
.meta-item { margin-bottom: 20px; }
.meta-label { font-size: 0.65rem; letter-spacing: 0.2em; color: #999; display: block; text-transform: uppercase; margin-bottom: 4px; }
.meta-value { font-size: 0.95rem; }
.detail-gallery { display: flex; gap: 12px; margin-top: 24px; overflow-x: auto; padding-bottom: 8px; }
.gallery-thumb { width: 100px; height: 75px; object-fit: cover; cursor: pointer; opacity: 0.6; transition: opacity 0.3s; border: 2px solid transparent; }
.gallery-thumb:hover { opacity: 1; border-color: #1a1a1a; }

/* =====================================================
   INQUIRY PAGE
   ===================================================== */
.inquiry-hero { padding: 120px 60px 32px; max-width: 1400px; margin: 0 auto; }
.inquiry-title { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; font-style: italic; }
.inquiry-divider { height: 1px; background: #eee; margin-top: 32px; }
.inquiry-contact { max-width: 1400px; margin: 0 auto; padding: 60px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-label { font-size: 0.7rem; letter-spacing: 0.2em; font-weight: 600; display: block; margin-bottom: 12px; }
.contact-value { font-family: 'Playfair Display', serif; font-size: 1.3rem; line-height: 1.5; margin-bottom: 4px; }
.contact-details { margin-top: 32px; }
.contact-note { font-size: 0.85rem; color: #666; margin-top: 40px; padding-top: 24px; border-top: 1px solid #eee; line-height: 1.7; }
.map-placeholder { width: 100%; aspect-ratio: 4/3; background: #f0f0f0; overflow: hidden; }
.map-placeholder iframe { width: 100%; height: 100%; }

.inquiry-form-section { max-width: 1400px; margin: 0 auto; padding: 60px 60px 100px; border-top: 1px solid #eee; }
.form-header { margin-bottom: 40px; }
.form-header h2 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 400; margin-bottom: 12px; }
.form-header p { font-size: 0.9rem; color: #555; max-width: 500px; line-height: 1.7; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.form-group { margin-bottom: 32px; }
.form-group label { font-size: 0.7rem; letter-spacing: 0.15em; font-weight: 600; display: block; margin-bottom: 12px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 0; border: none; border-bottom: 1px solid #ddd; font-size: 1rem; font-family: 'Playfair Display', serif; background: transparent; outline: none; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-bottom-color: #1a1a1a; }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit { display: block; margin: 20px auto 0; background: #1a1a1a; color: #fff; padding: 16px 60px; font-size: 0.75rem; letter-spacing: 0.2em; font-weight: 500; transition: background 0.3s; }
.btn-submit:hover { background: #333; }

.alert { padding: 16px 24px; margin-bottom: 24px; font-size: 0.9rem; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* =====================================================
   NEWS DETAIL
   ===================================================== */
.news-detail { max-width: 900px; margin: 0 auto; padding: 120px 60px 100px; }
.news-detail-header { margin-bottom: 40px; }
.back-link { font-size: 0.8rem; color: #999; display: inline-block; margin-bottom: 24px; }
.back-link:hover { color: #1a1a1a; opacity: 1; }
.news-detail-cat { font-size: 0.7rem; letter-spacing: 0.15em; color: #e63946; text-transform: uppercase; display: block; margin-bottom: 12px; }
.news-detail-header h1 { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 400; line-height: 1.3; }
.news-detail-images img { width: 100%; margin-bottom: 16px; }
.news-detail-body { font-size: 1rem; line-height: 2; color: #444; margin-top: 32px; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: #fafafa; border-top: 1px solid #eee; margin-top: 0; }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 80px 60px 60px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 500; margin-bottom: 12px; }
.footer-desc { font-size: 0.85rem; color: #666; line-height: 1.7; max-width: 280px; }
.footer-inner h4 { font-size: 0.65rem; letter-spacing: 0.2em; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; }
.footer-nav a, .footer-contact p { display: block; font-size: 0.85rem; color: #666; margin-bottom: 8px; }
.footer-contact p { line-height: 1.6; }
.social-links { display: flex; gap: 16px; }
.social-links a { color: #666; transition: color 0.3s; }
.social-links a:hover { color: #1a1a1a; opacity: 1; }
.footer-bottom { max-width: 1400px; margin: 0 auto; padding: 20px 60px; border-top: 1px solid #eee; }
.footer-bottom p { font-size: 0.75rem; color: #999; }

.no-data { font-size: 0.9rem; color: #999; padding: 40px 0; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .header-inner { padding: 0 30px; }
  .hero, .manifesto, .featured-project, .projects-grid, .news-section,
  .story-section, .values-section, .process-section,
  .portfolio-header, .portfolio-main, .inquiry-hero, .inquiry-contact,
  .inquiry-form-section, .news-detail, .footer-inner, .footer-bottom { padding-left: 30px; padding-right: 30px; }
  .portfolio-main { grid-template-columns: 220px 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; position: fixed; top: 72px; left: 0; right: 0; height: calc(100vh - 72px); background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
  .main-nav.open { display: flex; }
  .mobile-toggle { display: flex; }
  .hero { padding: 100px 24px 60px; min-height: 80vh; }
  .hero-title { font-size: 2.2rem; }
  .featured-inner { grid-template-columns: 1fr; }
  .featured-image img { height: 300px; }
  .featured-info { padding: 32px 0; }
  .projects-grid-inner, .news-grid, .values-grid { grid-template-columns: 1fr; }
  .story-inner, .process-header { grid-template-columns: 1fr; gap: 40px; }
  .portfolio-header { grid-template-columns: 1fr; padding-top: 100px; gap: 16px; }
  .portfolio-main { grid-template-columns: 1fr; }
  .portfolio-menu { border-right: none; border-bottom: 1px solid #eee; padding-right: 0; padding-bottom: 24px; display: flex; overflow-x: auto; gap: 8px; }
  .portfolio-menu-item { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; padding: 8px 16px; }
  .portfolio-menu-item.active { border-left-color: transparent; border-bottom-color: #1a1a1a; }
  .detail-content { grid-template-columns: 1fr; }
  .inquiry-contact { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 16px; }
  .hero, .manifesto, .featured-project, .projects-grid, .news-section,
  .portfolio-header, .portfolio-main, .inquiry-hero, .inquiry-contact,
  .inquiry-form-section, .news-detail, .footer-inner, .footer-bottom { padding-left: 16px; padding-right: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .portfolio-title { font-size: 2rem; }
  .inquiry-title { font-size: 2rem; }
}