﻿/* ===== CSS Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --text-secondary: #555555;
  --text-muted: #999999;
  --accent: #1a1a1a;
  --border: #e8e8e8;
  --transition-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Helvetica Neue", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== Noise Texture Overlay ===== */
.noise-overlay {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Preloader ===== */
.loader {
  position: fixed; inset: 0; z-index: 10000; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-line {
  width: 0; height: 1px; background: #0a0a0a;
  animation: loaderAnim 1.6s var(--transition-smooth) forwards;
}
@keyframes loaderAnim {
  0% { width: 0; }
  40% { width: 120px; }
  70% { width: 120px; }
  100% { width: 100vw; opacity: 0; }
}

/* ===== Custom Cursor ===== */
.cursor {
  position: fixed; z-index: 9998; pointer-events: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(0,0,0,0.2);
  transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: difference;
}
.cursor.hover { width: 60px; height: 60px; background: rgba(0,0,0,0.4); }

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 28px 60px;
  display: flex; justify-content: space-between; align-items: center;
  mix-blend-mode: difference; color: #fff;
  transition: all 0.5s var(--transition-smooth);
}
.nav.scrolled {
  background: rgba(255,255,255,0.92); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #0a0a0a; mix-blend-mode: normal;
  padding: 16px 60px; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 32px; width: auto; display: block; mix-blend-mode: normal; isolation: isolate; }
.nav-menu { display: flex; gap: 48px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.nav-menu li { position: relative; cursor: pointer; }
.nav-menu li::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
  background: currentColor; transition: width 0.4s var(--transition-smooth);
}
.nav-menu li:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform 0.3s; }

/* ===== Hero Section ===== */
.hero {
  position: relative; width: 100%; height: 100vh; min-height: 700px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-image {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.12) saturate(1.05) brightness(1.15);
  animation: heroScale 2.2s var(--transition-smooth) forwards;
  image-rendering: auto;
  will-change: transform;
}
@keyframes heroScale {
  from { transform: scale(1.12); filter: contrast(1.12) saturate(1.05) brightness(1.15) blur(8px); }
  to { transform: scale(1); filter: contrast(1.12) saturate(1.05) brightness(1.15) blur(0); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.45) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.08) 0%, transparent 40%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}
/* Grain texture specific to hero */
.hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Subtle light-leak accent */
.hero-accent {
  position: absolute; top: -20%; left: -30%; width: 80%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, transparent 70%);
  z-index: 1; pointer-events: none; animation: lightShift 6s ease-in-out infinite alternate;
}
@keyframes lightShift {
  from { opacity: 0.4; transform: translateX(0); }
  to { opacity: 0.8; transform: translateX(3%); }
}

/* ===== Section Base ===== */
.section { padding: 140px 60px; position: relative; }
.section-label {
  font-size: 0.65rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 24px; font-weight: 500;
}

/* ===== About Section ===== */
.about { overflow: hidden; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  max-width: 1400px; margin: 0 auto; align-items: start;
}
.about-left { position: sticky; top: 120px; }
.about-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 300; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 24px;
}
.about-title strong { font-weight: 600; }
.about-right { padding-top: 20px; }
.about-text { font-size: 1.15rem; line-height: 1.85; color: var(--text-secondary); margin-bottom: 40px; font-weight: 300; }
.about-highlight {
  font-size: 1.3rem; font-weight: 500; color: var(--text); line-height: 1.5;
  padding-left: 24px; border-left: 2px solid var(--accent);
}

/* ===== Vision Section ===== */
.vision { background: #fafafa; }
.vision-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.vision-text {
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 300; line-height: 1.4;
  letter-spacing: -0.01em; margin-bottom: 48px;
}
.vision-text strong { font-weight: 600; }
.vision-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: 80px; text-align: left;
}
.vision-card { padding: 40px; background: #fff; border: 1px solid var(--border); transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s var(--transition-smooth); }
.vision-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.06); }
.vision-card-num {
  font-size: 0.7rem; letter-spacing: 0.2em; color: var(--text-muted); margin-bottom: 16px; font-weight: 500;
}
.vision-card-title {
  font-size: 1.3rem; font-weight: 600; margin-bottom: 16px; letter-spacing: -0.01em;
}
.vision-card-text {
  font-size: 0.95rem; line-height: 1.7; color: var(--text-secondary); font-weight: 300;
}

/* ===== Innovation Section ===== */
.innovation { background: #fafafa; overflow: hidden; }
.innovation-inner { max-width: 1200px; margin: 0 auto; }
.innovation-intro {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem); font-weight: 300; line-height: 1.6;
  letter-spacing: -0.01em; margin-bottom: 60px; max-width: 720px; color: var(--text-secondary);
}
.innovation-intro strong { font-weight: 600; color: var(--text); }
/* Tab bar */
.innovation-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 48px;
}
.innovation-tab {
  flex: 1; padding: 20px 28px 18px; background: none; border: none; cursor: pointer;
  font-size: 0.95rem; font-weight: 500; color: var(--text-muted); letter-spacing: -0.01em;
  text-align: left; position: relative; transition: color 0.4s;
  font-family: inherit; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.innovation-tab:hover { color: var(--text); }
.innovation-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.innovation-tab-num {
  display: block; font-size: 0.65rem; letter-spacing: 0.2em; color: var(--text-muted);
  margin-bottom: 6px; font-weight: 500; transition: color 0.3s;
}
.innovation-tab.active .innovation-tab-num { color: var(--text); }
/* Content panel */
.innovation-panel-wrap { position: relative; min-height: 220px; }
.innovation-panel {
  display: none; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
  animation: panelFadeIn 0.5s var(--transition-smooth);
}
.innovation-panel.active { display: grid; }
@keyframes panelFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.innovation-panel-title {
  font-size: 2.2rem; font-weight: 300; line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.innovation-panel-title strong { font-weight: 600; }
.innovation-panel-icon { font-size: 2rem; color: var(--text-muted); margin-bottom: 20px; }
.innovation-panel-text {
  font-size: 1rem; line-height: 1.9; color: var(--text-secondary); font-weight: 300;
}

/* ===== Gallery Section ===== */
.gallery { overflow: hidden; }
.gallery-header { max-width: 1400px; margin: 0 auto 60px; display: flex; justify-content: space-between; align-items: flex-end; }
.gallery-title { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 300; letter-spacing: -0.02em; }
.gallery-title strong { font-weight: 600; }
.gallery-scrollbar {
  width: 100%; max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.gallery-item { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 4/5; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--transition-smooth);
  filter: grayscale(0.1);
}
.gallery-item:hover img { transform: scale(1.05); filter: grayscale(0); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3));
  opacity: 0; transition: opacity 0.5s;
}
.gallery-item:hover::after { opacity: 1; }

/* ===== Quote Section ===== */
.quote { padding: 180px 60px; text-align: center; max-width: 800px; margin: 0 auto; }
.quote-mark {
  font-size: 8rem; line-height: 1; color: var(--border); font-family: Georgia, serif;
  margin-bottom: -20px;
}
.quote-text {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 300; line-height: 1.45;
  font-style: italic; letter-spacing: -0.01em; color: var(--text);
}

/* ===== Closing Section ===== */
.closing {
  position: relative; width: 100%; height: 100vh; min-height: 700px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.closing-image {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.5);
}
.closing-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.55) 100%);
}
.closing-content { position: relative; z-index: 2; text-align: center; color: #fff; max-width: 800px; padding: 0 40px; }
.closing-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.35em; text-transform: uppercase; margin-bottom: 28px; font-weight: 500; opacity: 0.8;
}
.closing-title {
  font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 300; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 40px;
}
.closing-title strong { font-weight: 600; }
.closing-cta {
  display: inline-block; padding: 18px 48px;
  border: 1px solid rgba(255,255,255,0.5);
  font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase;
  font-weight: 500; color: #fff;
  transition: all 0.5s var(--transition-smooth);
}
.closing-cta:hover { background: #fff; color: #0a0a0a; border-color: #fff; }

/* ===== Footer ===== */
.footer {
  padding: 60px; background: #0a0a0a; color: #fff;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
}
.footer-brand { font-weight: 600; }
.footer-links { display: flex; gap: 40px; }
.footer-links a { opacity: 0.5; transition: opacity 0.4s; }
.footer-links a:hover { opacity: 1; }

/* ===== Reveal Animations ===== */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.9s var(--transition-smooth), transform 0.9s var(--transition-smooth); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.25s; }
.reveal-delay-3 { transition-delay: 0.4s; }

/* ===== Parallax ===== */
.parallax-img { transform: translateY(0); will-change: transform; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-left { position: static; }
  .vision-grid { grid-template-columns: 1fr 1fr; }
  .innovation-panel { grid-template-columns: 1fr; gap: 24px; }
  .innovation-tab { padding: 16px 20px 14px; font-size: 0.85rem; }
  .gallery-scrollbar { grid-template-columns: repeat(2, 1fr); }
  .nav { padding: 20px 30px; }
  .nav.scrolled { padding: 12px 30px; }
  .section { padding: 100px 30px; }
  .quote { padding: 120px 30px; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu.open {
    display: flex; flex-direction: column; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0; background: #fff; color: #0a0a0a;
    align-items: center; justify-content: center; gap: 40px;
    font-size: 1.2rem; z-index: 99;
  }
  .vision-grid { grid-template-columns: 1fr; }
  .innovation-tabs { flex-direction: column; gap: 0; }
  .innovation-tab { text-align: center; }
  .gallery-scrollbar { grid-template-columns: 1fr; }
  .gallery-header { flex-direction: column; gap: 20px; align-items: flex-start; }
  .footer { flex-direction: column; gap: 24px; text-align: center; }
  .section { padding: 80px 20px; }
  .quote { padding: 100px 20px; }
  .cursor { display: none; }
}

/* ===== Mobile Nav Open State ===== */
.nav.open { mix-blend-mode: normal; }
.nav.open .nav-menu { display: flex; }
