/* ============================================
   URAGA BRANDING — KANSO DESIGN SYSTEM v2
   Horizontal Scroll · Bilingual · Editorial
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0a;
  --bg-card: #111;
  --text: #f0f0f0;
  --text-muted: #666;
  --text-dim: #444;
  --border: rgba(255,255,255,0.08);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --container: 1200px;
  --gutter: 40px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: opacity 0.3s ease; }
a:hover { opacity: 0.7; }
img { display: block; max-width: 100%; height: auto; }
em { font-family: var(--serif); font-style: italic; }

/* ---- HEADER ---- */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 20px 0; transition: all 0.4s var(--ease); }
.header.scrolled { background: rgba(10,10,10,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.header__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.header__logo { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; }
.header__logo sup { font-size: 0.5em; font-weight: 400; }
.header__nav { display: flex; gap: 28px; }
.header__nav a { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; transition: color 0.3s; }
.header__nav a:hover { color: var(--text); opacity: 1; }
.header__right { display: flex; align-items: center; gap: 20px; }

.lang-toggle { background: none; border: 1px solid var(--border); color: var(--text-muted); font-family: var(--sans); font-size: 0.75rem; padding: 6px 12px; border-radius: 50px; cursor: pointer; transition: all 0.3s; letter-spacing: 0.05em; }
.lang-toggle:hover { border-color: var(--text); color: var(--text); }

.header__cta { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); transition: color 0.3s; }
.header__cta:hover { color: var(--text); opacity: 1; }
.header__cta-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 50%; font-size: 0.9rem; transition: all 0.3s; }
.header__cta:hover .header__cta-icon { border-color: var(--text); background: var(--text); color: var(--bg); }

/* ---- HERO ---- */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 160px var(--gutter) 80px; position: relative; }
.hero__inner { max-width: var(--container); margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.hero__text { flex: 1; }

.hero__title { font-family: var(--sans); font-size: clamp(3rem, 8vw, 7rem); font-weight: 600; line-height: 1.0; letter-spacing: -0.04em; margin-bottom: 32px; }
.hero__title em { font-family: var(--serif); font-weight: 400; }
.hero__line { display: block; }
.hero__desc { font-size: clamp(0.9rem, 1.3vw, 1rem); color: var(--text-muted); line-height: 1.8; max-width: 380px; }

/* Hero reveal */
.hero__line, .hero__desc { opacity: 0; transform: translateY(40px); animation: fadeUp 1s var(--ease-out) forwards; }
.hero__line:nth-child(1) { animation-delay: 0.15s; }
.hero__line:nth-child(2) { animation-delay: 0.3s; }
.hero__line:nth-child(3) { animation-delay: 0.45s; }
.hero__desc { animation-delay: 0.7s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* Hero Photo Stack */
.hero__stack { width: 300px; height: 300px; flex-shrink: 0; position: relative; border-radius: 12px; overflow: hidden; }
.hero__stack-inner { width: 100%; height: 100%; position: relative; }
.hero__stack-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05) rotate(2deg); transition: all 0.15s ease; }
.hero__stack-img.active { opacity: 1; transform: scale(1) rotate(0deg); z-index: 2; }
.hero__stack-img.prev { opacity: 0.3; transform: scale(0.96) rotate(-1deg); z-index: 1; }

.hero__scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); }
.hero__scroll-line { width: 1px; height: 60px; background: linear-gradient(to bottom, var(--text-muted), transparent); animation: scrollPulse 2.5s ease infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.2; transform: scaleY(0.5); transform-origin: top; } 50% { opacity: 0.8; transform: scaleY(1); } }

/* ---- MARQUEE ---- */
.marquee { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 0; overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 0; animation: marqueeScroll 40s linear infinite; }
.marquee__track span { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; padding: 0 12px; }
.marquee__sep { opacity: 0.3; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-25%); } }

/* ---- SECTION ---- */
.section { max-width: var(--container); margin: 0 auto; padding: 100px var(--gutter) 60px; }
.section__header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--border); margin-bottom: 60px; }
.section__label { font-size: 0.85rem; color: var(--text-muted); }
.section__num { font-size: 0.85rem; color: var(--text-dim); }

/* ---- ABOUT ---- */
.about__content { max-width: 700px; }
.about__title { font-family: var(--sans); font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 400; line-height: 1.5; margin-bottom: 20px; }
.about__desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.8; max-width: 500px; }

/* ---- PORTFOLIO — PER-BRAND HORIZONTAL SCROLL ---- */
.portfolio { position: relative; }
.portfolio__label-bar { max-width: var(--container); margin: 0 auto; padding: 100px var(--gutter) 40px; }
.portfolio__label-inner { display: flex; justify-content: space-between; align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--border); }

/* Each brand pins viewport & scrolls its own slides */
.brand-scroll { position: relative; }
.brand-scroll__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.brand-scroll__track { display: flex; height: 100%; will-change: transform; }
.brand-scroll__slide { flex: 0 0 100vw; height: 100%; position: relative; }
.brand-scroll__slide img { width: 100%; height: 100%; object-fit: cover; }

/* Brand info overlay */
.brand-scroll__info { position: absolute; bottom: 0; left: 0; right: 0; padding: 60px var(--gutter) 40px; display: flex; justify-content: space-between; align-items: flex-end; z-index: 10; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 60%, transparent 100%); }
.brand-scroll__link { display: flex; flex-direction: column; gap: 4px; }
.brand-scroll__link:hover { opacity: 1; }
.brand-scroll__num { font-size: 0.7rem; color: rgba(255,255,255,0.45); font-family: var(--sans); letter-spacing: 0.05em; }
.brand-scroll__name { font-size: 1.3rem; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.brand-scroll__cat { font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.brand-scroll__progress { width: 120px; height: 2px; background: rgba(255,255,255,0.2); border-radius: 2px; overflow: hidden; align-self: center; }
.brand-scroll__progress-bar { height: 100%; background: #fff; width: 0%; will-change: width; }

.portfolio__more { max-width: var(--container); margin: 0 auto; padding: 40px var(--gutter) 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); border-bottom: 1px solid var(--border); padding-bottom: 4px; transition: all 0.3s; }
.link-arrow:hover { color: var(--text); border-color: var(--text); opacity: 1; }

/* ---- PROCESS ---- */
.process__intro { margin-bottom: 60px; }
.process__title { font-family: var(--sans); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; }
.process__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.process__step { background: var(--bg); padding: 36px 28px; transition: background 0.3s; }
.process__step:hover { background: var(--bg-card); }
.process__step-num { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 18px; }
.process__step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.process__step p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

/* ---- PRICING ---- */
.pricing__content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pricing__hero { margin-bottom: 60px; }
.pricing__label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.pricing__amount { font-family: var(--sans); font-size: clamp(6rem, 18vw, 12rem); font-weight: 600; line-height: 1; letter-spacing: -0.06em; }
.pricing__amount em { font-family: var(--serif); font-size: 0.3em; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.pricing__note { font-size: 0.9rem; color: var(--text-muted); margin-top: 12px; max-width: 360px; }
.pricing__includes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; width: 100%; max-width: 700px; }
.pricing__item { display: flex; align-items: center; gap: 12px; padding: 22px 18px; background: var(--bg); font-size: 0.88rem; transition: background 0.3s; }
.pricing__item:hover { background: var(--bg-card); }
.pricing__item-icon { color: var(--text-dim); font-size: 0.8rem; }

/* ---- CTA ---- */
.cta__content { text-align: center; padding: 80px 0; }
.cta__title { font-family: var(--sans); font-size: clamp(5rem, 20vw, 14rem); font-weight: 600; line-height: 1; letter-spacing: -0.05em; margin-bottom: 24px; }
.cta__desc { font-size: 1rem; color: var(--text-muted); margin-bottom: 48px; line-height: 1.8; }
.cta__btn { display: inline-flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: 0.9rem; font-weight: 500; padding: 16px 32px; border: 1px solid var(--border); border-radius: 50px; color: var(--text); transition: all 0.3s; }
.cta__btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); opacity: 1; }

/* ---- FOOTER ---- */
.footer { border-top: 1px solid var(--border); max-width: var(--container); margin: 0 auto; padding: 60px var(--gutter) 32px; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__col h4 { font-size: 0.75rem; color: var(--text-dim); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.footer__col a { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; }
.footer__col a:hover { color: var(--text); opacity: 1; }
.footer__address { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 10px; }
.footer__col--right { text-align: right; }
.footer__brand { font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.footer__brand sup { font-size: 0.5em; font-weight: 400; }
.footer__tagline { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.footer__stats { font-size: 0.75rem; color: var(--text-dim); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); }
.footer__copy { font-size: 0.75rem; color: var(--text-dim); }
.footer__main-link { font-size: 0.8rem; color: var(--text-muted); border-bottom: 1px solid var(--border); padding-bottom: 2px; }
.footer__main-link:hover { color: var(--text); opacity: 1; }

/* ---- FLOATING WHATSAPP ---- */
.floating-wa { position: fixed; bottom: 28px; right: 28px; z-index: 900; display: flex; align-items: center; gap: 10px; background: #25d366; color: #fff; padding: 14px 22px; border-radius: 50px; font-size: 0.85rem; font-weight: 500; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3); transition: all 0.3s; }
.floating-wa:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4); opacity: 1; }
.floating-wa svg { flex-shrink: 0; }

/* ---- REVEAL ---- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .header__nav { display: none; }
  .hero { padding: 120px var(--gutter) 60px; }
  .hero__inner { flex-direction: column; align-items: flex-start; gap: 40px; }
  .hero__stack { width: 200px; height: 200px; align-self: flex-end; }
  .hero__title { font-size: clamp(2.5rem, 12vw, 4rem); }
  .section { padding: 80px var(--gutter) 40px; }
  .brand-scroll__name { font-size: 1rem; }
  .brand-scroll__progress { width: 80px; }
  .process__grid { grid-template-columns: 1fr; }
  .pricing__includes { grid-template-columns: 1fr; }
  .pricing__amount { font-size: clamp(4rem, 25vw, 7rem); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__col--right { text-align: left; grid-column: 1 / -1; }
  .cta__title { font-size: clamp(3rem, 18vw, 6rem); }
  .floating-wa span { display: none; }
  .floating-wa { padding: 14px; border-radius: 50%; }
}
