/* ============================================================
   4S COMPANY — PREMIUM DYNAMIC DESIGN SYSTEM 2025
   High-end Japanese corporate aesthetic — light hero with 
   massive SVG wireframe art (PropertyAgent-inspired)
   ============================================================ */

/* --- VARIABLES --- */
:root {
  /* Monochrome palette */
  --black: #0a0a0a;
  --dark: #141414;
  --dark2: #1c1c1c;
  --dark3: #252525;
  --gray-800: #333;
  --gray-600: #555;
  --gray-400: #888;
  --gray-300: #aaa;
  --gray-200: #ccc;
  --gray-100: #e5e5e3;
  --off-white: #f3f3f1;
  --near-white: #f8f8f6;
  --white: #fff;

  /* Accent */
  --accent: #c4a35a;
  --accent-dark: #a38842;

  /* Typography */
  --ff-jp: 'Noto Sans JP', sans-serif;
  --ff-serif: 'Noto Serif JP', serif;
  --ff-en: 'Inter', sans-serif;

  /* Easing */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --dur: .7s;
  --dur-fast: .4s;
  --dur-slow: 1.4s;

  /* Layout */
  --sec-pad: clamp(100px, 13vw, 200px);
  --container: 1280px;
  --gut: clamp(24px, 5vw, 56px);
  --radius: 4px;
  --radius-lg: 10px;
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--ff-jp);
  font-weight: 300;
  line-height: 1.8;
  color: var(--dark);
  background: var(--off-white);
  overflow-x: hidden;
  cursor: default;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

/* --- CUSTOM CURSOR (desktop) --- */
.cursor { display: none; }
@media (pointer: fine) and (min-width: 1024px) {
  .cursor {
    display: block; position: fixed; top: 0; left: 0; z-index: 99999;
    pointer-events: none; mix-blend-mode: difference;
  }
  .cursor__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--white);
    transform: translate(-50%, -50%);
    transition: width .25s, height .25s, opacity .25s;
  }
  .cursor__ring {
    position: absolute; top: -16px; left: -16px;
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.5);
    transition: width .4s var(--ease), height .4s var(--ease), top .4s var(--ease), left .4s var(--ease), opacity .3s;
  }
  .cursor.is-hover .cursor__ring {
    width: 56px; height: 56px; top: -25px; left: -25px;
    border-color: rgba(255,255,255,.8);
  }
  .cursor.is-hover .cursor__dot { width: 0; height: 0; opacity: 0; }
}

/* ============================================================
   LOADING SCREEN
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 100000;
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity 1s var(--ease), visibility 1s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { text-align: center; position: relative; }
.loader__logo-img {
  width: 72px; height: auto; margin: 0 auto 40px;
  opacity: .85;
}
.loader__progress {
  width: 180px; height: 1px; background: rgba(0,0,0,.08);
  margin: 0 auto; position: relative; overflow: hidden;
}
.loader__bar {
  position: absolute; left: 0; top: 0; height: 100%;
  width: 0; background: var(--dark);
  transition: width .08s linear;
}
.loader__counter {
  display: flex; align-items: baseline; justify-content: center;
  margin-top: 20px; gap: 2px;
}
.loader__num {
  font-family: var(--ff-en); font-size: 3rem; font-weight: 200;
  color: var(--dark); letter-spacing: .02em; line-height: 1;
}
.loader__pct {
  font-family: var(--ff-en); font-size: .7rem; font-weight: 300;
  color: var(--gray-300);
}
.loader__tagline {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  font-family: var(--ff-en); font-size: .6rem; font-weight: 400;
  letter-spacing: .25em; color: var(--gray-300);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 5000;
  padding: 0 clamp(24px, 4vw, 56px);
  transition: all .6s var(--ease);
}
.header.is-scrolled {
  background: rgba(243,243,241,.92);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 90px; transition: height .5s var(--ease);
}
.header.is-scrolled .header__inner { height: 62px; }
.header__logo-img {
  height: 36px; width: auto; transition: all .4s var(--ease);
}
.header.is-scrolled .header__logo-img { height: 26px; }

.header__nav { display: flex; gap: clamp(18px, 3vw, 38px); align-items: center; }
.header__link {
  font-family: var(--ff-en); font-size: .7rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  position: relative; padding: 6px 0;
}
.header__link::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px;
  background: var(--dark); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.header__link:hover::after { transform: scaleX(1); transform-origin: left; }
.header__link--cta {
  padding: 6px 20px; border: 1px solid var(--dark); border-radius: 30px;
  transition: all .4s var(--ease);
}
.header__link--cta::after { display: none; }
.header__link--cta:hover { background: var(--dark); color: var(--white); }

/* Burger */
.header__burger {
  display: none; width: 34px; height: 24px;
  position: relative; z-index: 5001;
}
.header__burger span {
  position: absolute; left: 0; width: 100%; height: 1px;
  background: var(--dark); transition: all .5s var(--ease);
}
.header__burger.is-active span { background: var(--white); }
.header__burger span:nth-child(1) { top: 0; }
.header__burger span:nth-child(2) { top: 50%; width: 60%; }
.header__burger span:nth-child(3) { bottom: 0; }
.header__burger.is-active span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.header__burger.is-active span:nth-child(2) { opacity: 0; width: 0; }
.header__burger.is-active span:nth-child(3) { bottom: auto; top: 50%; transform: rotate(-45deg); }

/* --- MOBILE NAV --- */
.mnav {
  position: fixed; inset: 0; z-index: 4999;
  pointer-events: none; visibility: hidden;
}
.mnav.is-active { pointer-events: auto; visibility: visible; }
.mnav__bg {
  position: absolute; inset: 0;
  background: var(--dark); opacity: 0;
  transition: opacity .6s var(--ease);
}
.mnav.is-active .mnav__bg { opacity: .97; }
.mnav__inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  justify-content: center; padding: 0 var(--gut);
}
.mnav__link {
  display: flex; align-items: center; gap: 20px;
  font-family: var(--ff-en); font-size: clamp(1.4rem, 5vw, 2.6rem);
  font-weight: 300; letter-spacing: .06em; color: var(--white);
  padding: 16px 0; border-bottom: .5px solid rgba(255,255,255,.08);
  opacity: 0; transform: translateY(30px);
  transition: all .6s var(--ease);
}
.mnav.is-active .mnav__link { opacity: 1; transform: translateY(0); }
.mnav.is-active .mnav__link:nth-child(1) { transition-delay: .15s; }
.mnav.is-active .mnav__link:nth-child(2) { transition-delay: .2s; }
.mnav.is-active .mnav__link:nth-child(3) { transition-delay: .25s; }
.mnav.is-active .mnav__link:nth-child(4) { transition-delay: .3s; }
.mnav.is-active .mnav__link:nth-child(5) { transition-delay: .35s; }
.mnav.is-active .mnav__link:nth-child(6) { transition-delay: .4s; }
.mnav__num {
  font-size: .6rem; font-weight: 400; color: rgba(255,255,255,.25);
  letter-spacing: .1em; min-width: 28px;
}
.mnav__footer {
  position: absolute; bottom: 40px; left: var(--gut);
  font-size: .65rem; color: rgba(255,255,255,.2); line-height: 1.8;
  opacity: 0; transition: opacity .5s .5s;
}
.mnav.is-active .mnav__footer { opacity: 1; }

/* ============================================================
   HERO — LIGHT BACKGROUND WITH MASSIVE SVG WIREFRAME ART
   Inspired by PropertyAgent: viewport-filling line art
   on white/light background with bold draw-in animation
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  background: var(--off-white); overflow: hidden; color: var(--dark);
}

/* MASSIVE SVG WIREFRAME — fills the entire viewport */
.hero__wireframe {
  position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); z-index: 1;
  pointer-events: none;
  transition: transform .3s ease-out;
  will-change: transform;
}

/* SVG path draw-in animations */
.wf-path {
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Initial state: paths hidden — dasharray/dashoffset set by JS */
.wf-path--bold,
.wf-path--accent,
.wf-path--circle {
  opacity: 0;
}

/* Dot nodes */
.wf-dot {
  opacity: 0;
  transform-origin: center;
}

/* ===== CONTAINER STATES (controlled by JS) ===== */

/* Fade-out transition when switching patterns */
#wfContent {
  transition: opacity .5s var(--ease);
  opacity: 1;
}
#wfContent.wf-fade-out {
  opacity: 0;
}

/* Draw-in animation — JS uses .wf-draw-in on #wfContent */
#wfContent.wf-draw-in .wf-path--bold,
#wfContent.wf-draw-in .wf-path--accent,
#wfContent.wf-draw-in .wf-path--circle {
  animation: wfDraw 2.8s var(--ease) forwards;
  /* animation-delay set per-element by JS */
}

#wfContent.wf-draw-in .wf-dot {
  animation: wfDotPop .8s var(--ease) forwards;
  /* animation-delay set per-element by JS */
}

/* ===== WIREFRAME KEYFRAMES ===== */
/* stroke-dashoffset is set to path length by JS, animation goes to 0 */
@keyframes wfDraw {
  0% { opacity: 0; }
  8% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes wfDotPop {
  0% { opacity: 0; transform: scale(0); }
  60% { transform: scale(1.6); }
  100% { opacity: 1; transform: scale(1); }
}

/* Mouse-responsive glow canvas (subtle) */
.hero__glow {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2;
  pointer-events: none; opacity: .6;
}

/* Content */
.hero__content {
  position: relative; z-index: 10;
  text-align: center; padding: 0 var(--gut);
  max-width: 900px;
}

/* Brand logo — clearly visible on light bg */
.hero__brand {
  margin-bottom: 28px;
}
.hero__brand-logo {
  width: 88px; height: auto; margin: 0 auto;
  opacity: 0; transform: scale(.9);
  transition: all 1s var(--ease) .5s;
}
.hero.is-ready .hero__brand-logo {
  opacity: 1; transform: scale(1);
}

.hero__eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-bottom: 30px;
  opacity: 0; transition: opacity .8s var(--ease) .8s;
}
.hero.is-ready .hero__eyebrow { opacity: 1; }
.hero__line-accent {
  display: block; width: 50px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gray-200), transparent);
}
.hero__eyebrow-text {
  font-family: var(--ff-en); font-size: .6rem; font-weight: 500;
  letter-spacing: .3em; color: var(--gray-400);
}

.hero__heading { margin-bottom: 20px; overflow: hidden; }
.hero__heading-line { display: block; overflow: hidden; }
.hero__heading-inner {
  display: block;
  font-family: var(--ff-serif);
  font-size: clamp(1.5rem, 5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: .14em;
  line-height: 1.6;
  color: var(--dark);
  transform: translateY(120%);
  transition: transform 1.2s var(--ease);
}
.hero.is-ready .hero__heading-inner { transform: translateY(0); }
.hero__heading-line:nth-child(2) .hero__heading-inner { transition-delay: .15s; }

/* Ruled lines */
.hero__ruled {
  display: flex; justify-content: center; margin: 20px 0;
  opacity: 0; transition: opacity .8s var(--ease) .7s;
}
.hero.is-ready .hero__ruled { opacity: 1; }
.hero__ruled-line {
  width: 60px; height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.hero__ruled--short .hero__ruled-line { width: 40px; }

/* Sub text */
.hero__sub {
  margin-bottom: 16px;
  opacity: 0; transform: translateY(16px);
  transition: all 1s var(--ease) .9s;
}
.hero.is-ready .hero__sub { opacity: 1; transform: translateY(0); }
.hero__sub-line {
  display: block;
  font-size: clamp(.82rem, 1.5vw, 1rem);
  font-weight: 300; letter-spacing: .08em; line-height: 2;
  color: var(--gray-600);
}

.hero__en {
  font-family: var(--ff-en); font-size: clamp(.55rem, .9vw, .68rem);
  font-weight: 300; letter-spacing: .14em; color: var(--gray-300);
  opacity: 0; transition: opacity 1s 1.2s;
}
.hero.is-ready .hero__en { opacity: 1; }

/* --- Showcase (bottom ticker) --- */
.hero__showcase {
  position: absolute; bottom: 0; left: 0; width: 100%; z-index: 10;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,0,0,.04);
}
.showcase__track {
  display: flex; max-width: var(--container); margin: 0 auto;
  padding: 0 var(--gut);
}
.showcase__item {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 16px 14px;
  border-right: .5px solid rgba(0,0,0,.04);
  opacity: .25; transition: all .5s var(--ease);
  cursor: default;
}
.showcase__item:last-child { border-right: none; }
.showcase__item.is-active { opacity: 1; }
.showcase__num {
  font-family: var(--ff-en); font-size: .55rem; font-weight: 600;
  color: var(--accent); letter-spacing: .05em;
}
.showcase__name {
  font-size: .7rem; font-weight: 400; color: var(--dark);
  letter-spacing: .03em; white-space: nowrap;
}
.showcase__progress {
  height: 2px; width: 100%; background: rgba(0,0,0,.04);
}
.showcase__bar {
  height: 100%; width: 0; background: var(--accent);
  transition: width .05s linear;
}

/* Scroll cue */
.hero__scroll {
  position: absolute; right: 40px; bottom: 100px; z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0; transition: opacity 1s 1.5s;
}
.hero.is-ready .hero__scroll { opacity: 1; }
.hero__scroll-text {
  font-family: var(--ff-en); font-size: .55rem; font-weight: 400;
  letter-spacing: .2em; color: var(--gray-300);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px; height: 60px; position: relative; overflow: hidden;
  background: rgba(0,0,0,.06);
}
.hero__scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%; background: var(--dark);
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
.sec {
  position: relative; padding: var(--sec-pad) 0;
  overflow: hidden; background: var(--near-white);
}
.sec--dark { background: var(--dark); color: var(--white); }
.sec--alt { background: var(--white); }
.sec__grain {
  position: absolute; inset: 0; pointer-events: none;
  background: 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.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .4;
}
.sec__inner {
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gut);
}

/* Section decorations */
.sec__deco {
  position: absolute; pointer-events: none; z-index: 0;
}
.sec__deco--circle {
  width: 600px; height: 600px; border-radius: 50%;
  border: .5px solid rgba(0,0,0,.04);
  top: -200px; right: -200px;
}
.sec__deco--dots {
  top: 80px; left: 40px; width: 200px; height: 200px;
  background-image: radial-gradient(circle, rgba(0,0,0,.06) 1px, transparent 1px);
  background-size: 20px 20px;
}
.sec__deco--grid {
  bottom: 0; right: 0; width: 400px; height: 400px;
  background-image:
    linear-gradient(to right, rgba(0,0,0,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Section header */
.sec__header {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 16px;
}
.sec__num {
  font-family: var(--ff-en); font-size: .6rem; font-weight: 600;
  letter-spacing: .1em; color: var(--accent);
  padding: 4px 0;
}
.sec__label-en {
  font-family: var(--ff-en); font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 200; letter-spacing: .02em; line-height: 1;
  color: var(--dark);
}
.sec__header--light .sec__label-en { color: var(--white); }
.sec__label-jp {
  font-size: .72rem; font-weight: 400;
  letter-spacing: .08em; color: var(--gray-400);
  margin-top: 4px;
}
.sec__header--light .sec__label-jp { color: rgba(255,255,255,.35); }
.sec__line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, var(--gray-200), transparent 80%);
}
.sec__header--light .sec__line {
  background: linear-gradient(to right, rgba(255,255,255,.1), transparent 80%);
}

.sec__lead {
  font-size: clamp(.82rem, 1.4vw, .95rem);
  font-weight: 300; color: var(--gray-600);
  letter-spacing: .04em; margin-bottom: clamp(48px, 6vw, 80px);
}
.sec__lead--light { color: rgba(255,255,255,.45); }

/* Reveal animation */
[data-anim] {
  opacity: 0; transform: translateY(50px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-anim].is-visible {
  opacity: 1; transform: translateY(0);
}

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.phil {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px); align-items: center;
}
.phil__frame { position: relative; }
.phil__img {
  position: relative; z-index: 1; width: 100%; max-width: 500px;
  transition: transform .6s var(--ease);
}
.phil__frame:hover .phil__img { transform: scale(1.02); }
.phil__frame-border {
  position: absolute; top: -16px; left: -16px;
  width: calc(100% + 4px); height: calc(100% + 4px);
  border: .5px solid rgba(0,0,0,.06); border-radius: var(--radius-lg);
  transition: all .6s var(--ease);
}
.phil__frame:hover .phil__frame-border {
  top: -12px; left: -12px;
  border-color: rgba(0,0,0,.1);
}

.phil__quote { margin-bottom: 28px; position: relative; }
.phil__quote-mark {
  font-family: var(--ff-serif); font-size: 4rem; font-weight: 300;
  color: var(--accent); line-height: 1; margin-bottom: -10px;
  opacity: .4;
}
.phil__quote-text {
  font-family: var(--ff-serif);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 400; line-height: 2.2;
  color: var(--dark); letter-spacing: .06em;
}
.phil__quote-line {
  width: 50px; height: 1px; margin-top: 20px;
  background: linear-gradient(to right, var(--accent), transparent);
}
.phil__desc {
  font-size: .85rem; font-weight: 300;
  color: var(--gray-600); line-height: 2.2;
}

/* ============================================================
   WORKS — LIGHT THEME (same as Company)
   ============================================================ */
.works { display: flex; flex-direction: column; }
.works__item {
  display: flex; align-items: center; gap: 24px;
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 36px);
  border-bottom: .5px solid rgba(0,0,0,.06);
  position: relative; overflow: hidden;
  transition: all .5s var(--ease); cursor: pointer;
}
.works__item:first-child { border-top: .5px solid rgba(0,0,0,.06); }
.works__hover-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--dark); opacity: 0;
  transition: opacity .5s var(--ease);
}
.works__item:hover .works__hover-bg { opacity: .03; }
.works__item > * { position: relative; z-index: 1; }

.works__index {
  font-family: var(--ff-en); font-size: .6rem; font-weight: 600;
  color: var(--accent); letter-spacing: .1em; min-width: 30px;
}
.works__content { flex: 1; }
.works__title {
  font-size: clamp(.88rem, 1.3vw, 1.05rem); font-weight: 500;
  letter-spacing: .04em; margin-bottom: 2px; color: var(--dark);
}
.works__desc {
  font-size: .72rem; font-weight: 300; color: var(--gray-600);
}
.works__arrow {
  width: 36px; height: 36px; border-radius: 50%;
  border: .5px solid rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; color: var(--gray-400);
  transition: all .5s var(--ease);
}
.works__item:hover .works__arrow {
  border-color: var(--accent); color: var(--accent);
  transform: translateX(4px);
}
.works__tag {
  font-family: var(--ff-en); font-size: .55rem; font-weight: 500;
  letter-spacing: .08em; color: var(--gray-400);
  padding: 3px 14px; border: .5px solid rgba(0,0,0,.1);
  border-radius: 20px;
}

/* ============================================================
   MOVIE
   ============================================================ */
/* Video thumbnail (replaces iframe embeds) */
.vid-thumb {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); background: var(--dark);
  aspect-ratio: 16/9;
}
.vid-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.vid-thumb:hover img { transform: scale(1.05); filter: brightness(.85); }
.vid-thumb__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(0,0,0,.55); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.1rem;
  transition: all .4s var(--ease);
  border: 1px solid rgba(255,255,255,.15);
}
.vid-thumb__play i { margin-left: 3px; }
.vid-thumb:hover .vid-thumb__play {
  background: rgba(196,163,90,.85); border-color: transparent;
  transform: translate(-50%, -50%) scale(1.1);
}
.vid-thumb--card {
  border-radius: var(--radius) var(--radius) 0 0;
}
.vid-thumb--card .vid-thumb__play {
  width: 48px; height: 48px; font-size: .9rem;
}

.vid {
  position: relative; padding-bottom: 56.25%; height: 0;
  overflow: hidden; border-radius: var(--radius); background: var(--dark);
}
.vid iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.movie__frame { position: relative; }
.movie__frame::before {
  content: ''; position: absolute; inset: -12px;
  border: .5px solid rgba(0,0,0,.05); border-radius: var(--radius-lg);
  transition: inset .5s var(--ease);
}
.movie__frame:hover::before { inset: -8px; }

.badge {
  display: inline-block; font-size: .6rem; font-weight: 500;
  letter-spacing: .1em; color: var(--gray-400);
  padding: 4px 14px; border: .5px solid var(--gray-200);
  border-radius: 20px; margin-bottom: 14px;
}

.movie__hero {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 5vw, 60px); align-items: center;
  margin-bottom: clamp(50px, 6vw, 80px);
}
.movie__hero-title {
  font-size: clamp(.92rem, 1.8vw, 1.2rem);
  font-weight: 500; color: var(--dark);
  line-height: 1.8; margin-bottom: 14px;
}
.movie__hero-desc {
  font-size: .82rem; font-weight: 300; color: var(--gray-600);
  line-height: 2;
}

.blockquote {
  position: relative; padding: 30px 36px; margin-bottom: clamp(48px, 6vw, 70px);
  background: linear-gradient(135deg, rgba(0,0,0,.015), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.blockquote__accent {
  position: absolute; left: 0; top: 0; width: 2px; height: 100%;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.blockquote p {
  font-size: .85rem; font-weight: 300; color: var(--gray-600); line-height: 2;
}

.sub-heading {
  display: flex; align-items: center; gap: 16px;
  font-size: .95rem; font-weight: 500; color: var(--dark);
  margin-bottom: 22px; letter-spacing: .04em;
}
.sub-heading__line {
  flex: 1; height: .5px; background: var(--gray-200);
}

.movie__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; margin-bottom: clamp(48px, 6vw, 70px);
}
.movie__card {
  display: block;
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: .5px solid rgba(0,0,0,.04);
  transition: all .5s var(--ease);
}
.movie__card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,.08); }
.movie__card h4 {
  padding: 14px 18px; font-size: .82rem; font-weight: 500; color: var(--dark);
}

.movie__cm {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 5vw, 60px); align-items: center;
  margin-bottom: clamp(48px, 6vw, 70px);
}
.movie__cm-body h4 {
  font-size: clamp(.9rem, 1.6vw, 1.1rem);
  font-weight: 500; color: var(--dark); line-height: 1.8; margin-bottom: 14px;
}
.movie__cm-body p { font-size: .82rem; font-weight: 300; color: var(--gray-600); line-height: 2; }

.movie__thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: clamp(48px, 6vw, 70px);
}
.thumb {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16/11; display: block;
}
.thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(30%); transition: all .7s var(--ease);
}
.thumb:hover img { transform: scale(1.08); filter: grayscale(0); }
.thumb__overlay {
  position: absolute; bottom: 0; left: 0; width: 100%;
  padding: 24px 12px 10px; text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
  opacity: 0; transform: translateY(8px);
  transition: all .5s var(--ease);
}
.thumb__overlay span { font-size: .62rem; font-weight: 400; color: var(--white); letter-spacing: .05em; }
.thumb:hover .thumb__overlay { opacity: 1; transform: translateY(0); }

.cta-center { text-align: center; }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 36px; border: 1px solid var(--dark);
  border-radius: 50px; font-size: .78rem; font-weight: 400;
  letter-spacing: .05em; transition: all .5s var(--ease);
}
.btn:hover { background: var(--dark); color: var(--white); }
.btn__icon { font-size: 1.1rem; }
.btn__arrow {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--dark); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem; transition: all .4s var(--ease);
}
.btn:hover .btn__arrow { background: var(--white); color: var(--dark); }

/* ============================================================
   NEWS
   ============================================================ */
.news__row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px); align-items: center;
  margin-bottom: clamp(60px, 7vw, 100px);
}
.news__row:last-child { margin-bottom: 0; }
.news__row--rev { direction: rtl; }
.news__row--rev > * { direction: ltr; }

.news__img-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
}
.news__img-wrap::before {
  content: ''; position: absolute; inset: 0;
  border: .5px solid rgba(0,0,0,.06); border-radius: inherit;
  z-index: 1; pointer-events: none;
}
.news__img-wrap img {
  width: 100%; display: block;
  transition: transform .7s var(--ease);
}
.news__img-wrap:hover img { transform: scale(1.04); }

.news__body h3 {
  font-size: clamp(.92rem, 1.8vw, 1.2rem);
  font-weight: 500; color: var(--dark);
  line-height: 1.8; margin-bottom: 14px;
}
.news__body p {
  font-size: .82rem; font-weight: 300; color: var(--gray-600); line-height: 2;
}

/* ============================================================
   SYSTEM
   ============================================================ */
.system__row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px); align-items: center;
  margin-bottom: clamp(60px, 7vw, 100px);
}
.system__row:last-child { margin-bottom: 0; }
.system__row--rev { direction: rtl; }
.system__row--rev > * { direction: ltr; }

.system__img-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
}
.system__img-wrap::before {
  content: ''; position: absolute; inset: 0;
  border: .5px solid rgba(0,0,0,.06); border-radius: inherit;
  z-index: 1; pointer-events: none;
}
.system__img-wrap img {
  width: 100%; display: block;
  transition: transform .7s var(--ease);
}
.system__img-wrap:hover img { transform: scale(1.04); }

.system__body h4 {
  font-size: clamp(.92rem, 1.8vw, 1.2rem);
  font-weight: 500; color: var(--dark);
  line-height: 1.8; margin-bottom: 14px;
}
.system__body p {
  font-size: .82rem; font-weight: 300; color: var(--gray-600); line-height: 2;
  margin-bottom: 16px;
}

.system__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 500; color: var(--accent);
  text-decoration: none; letter-spacing: .04em;
  transition: color .3s var(--ease);
}
.system__link:hover { color: var(--dark); }
.system__link i { font-size: .7rem; }

/* System Stats */
.system__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: clamp(40px, 5vw, 60px);
  padding-top: clamp(40px, 5vw, 60px);
  border-top: .5px solid var(--gray-200);
}
.system__stat {
  text-align: center; padding: 28px 16px;
  background: linear-gradient(135deg, rgba(196,163,90,.04), transparent);
  border-radius: var(--radius);
  border: .5px solid rgba(196,163,90,.12);
  transition: all .5s var(--ease);
}
.system__stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(196,163,90,.1);
  border-color: rgba(196,163,90,.25);
}
.system__stat-num {
  display: block; font-family: var(--font-en);
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600;
  color: var(--accent); letter-spacing: -.02em;
  margin-bottom: 8px;
}
.system__stat-label {
  font-size: .7rem; font-weight: 400; color: var(--gray-500);
  letter-spacing: .06em;
}

/* ============================================================
   COMPANY
   ============================================================ */
.company {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
}

.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: .5px solid rgba(0,0,0,.06); }
.info-table th, .info-table td {
  padding: 15px 16px; font-size: .82rem; vertical-align: top; text-align: left;
}
.info-table th {
  font-weight: 500; color: var(--dark); width: 120px;
  white-space: nowrap; letter-spacing: .03em;
  padding-left: 20px; position: relative;
}
.info-table__dot {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}
.info-table td { font-weight: 300; color: var(--gray-600); }

.company__history-heading {
  font-size: 1rem; font-weight: 500; color: var(--dark);
  margin-bottom: 30px; padding-bottom: 14px;
  border-bottom: .5px solid var(--gray-200);
  display: flex; align-items: center; gap: 14px;
}
.company__history-en {
  font-family: var(--ff-en); font-size: .6rem; font-weight: 600;
  letter-spacing: .15em; color: var(--accent); text-transform: uppercase;
}

.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; top: 0; left: 8px;
  width: .5px; height: 100%;
  background: linear-gradient(to bottom, var(--gray-200), rgba(200,200,200,.2));
}
.timeline__item {
  position: relative; padding-bottom: 24px; padding-left: 24px;
}
.timeline__dot {
  position: absolute; left: -28px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--gray-200); background: var(--near-white);
  transition: all .4s var(--ease);
}
.timeline__item:hover .timeline__dot {
  background: var(--accent); border-color: var(--accent);
  transform: scale(1.3);
}
.timeline__date {
  font-size: .68rem; font-weight: 600; color: var(--gray-400);
  letter-spacing: .06em; margin-bottom: 3px; display: block;
}
.timeline__item p {
  font-size: .82rem; font-weight: 300; color: var(--dark2); line-height: 1.7;
}

/* ============================================================
   CONTACT
   ============================================================ */
.sec--contact { padding-bottom: clamp(60px, 8vw, 120px); }
.contact {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: clamp(36px, 6vw, 70px); align-items: start;
}
.contact__logo {
  width: 90px; margin-bottom: 24px;
  filter: brightness(0) invert(1); opacity: .85;
}
.contact__address {
  font-size: .82rem; font-weight: 300; color: rgba(255,255,255,.5);
  line-height: 1.8; margin-bottom: 20px;
}
.contact__row { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.contact__label {
  font-family: var(--ff-en); font-size: .6rem; font-weight: 600;
  letter-spacing: .12em; color: var(--white);
  background: rgba(255,255,255,.08); padding: 3px 12px; border-radius: 3px;
}
.contact__val {
  font-size: .85rem; font-weight: 400; color: rgba(255,255,255,.7);
  transition: color .3s;
}
a.contact__val:hover { color: var(--accent); }

.contact__map {
  border-radius: var(--radius-lg); overflow: hidden;
  min-height: 360px; position: relative;
}
.contact__map::before {
  content: ''; position: absolute; inset: 0;
  border: .5px solid rgba(255,255,255,.06); border-radius: inherit;
  z-index: 1; pointer-events: none;
}
.contact__map iframe { width: 100%; min-height: 360px; border-radius: var(--radius-lg); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--black); padding: 50px var(--gut) 30px; }
.footer__inner { max-width: var(--container); margin: 0 auto; }
.footer__top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 30px; border-bottom: .5px solid rgba(255,255,255,.06);
  margin-bottom: 24px;
}
.footer__logo { height: 28px; filter: brightness(0) invert(1); opacity: .7; }
.footer__nav { display: flex; gap: 24px; }
.footer__nav a {
  font-family: var(--ff-en); font-size: .6rem; font-weight: 400;
  letter-spacing: .1em; color: rgba(255,255,255,.3);
  transition: color .3s;
}
.footer__nav a:hover { color: rgba(255,255,255,.7); }
.footer__bottom p {
  font-size: .6rem; font-weight: 300; color: rgba(255,255,255,.15);
  letter-spacing: .04em; text-align: center;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.totop {
  position: fixed; bottom: 30px; right: 30px; z-index: 800;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--dark); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; opacity: 0; visibility: hidden;
  transition: all .5s var(--ease);
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.totop svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.totop__circle {
  fill: none; stroke: var(--accent); stroke-width: 1.5;
  stroke-dasharray: 113; stroke-dashoffset: 113;
  transition: stroke-dashoffset .4s var(--ease);
}
.totop.is-visible { opacity: 1; visibility: visible; }
.totop.is-visible .totop__circle { stroke-dashoffset: 0; }
.totop:hover { transform: translateY(-4px); }

/* ============================================================
   UTILITY
   ============================================================ */
.sp-only { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .header__nav { display: none; }
  .header__burger { display: block; }
  .movie__hero, .movie__cm { grid-template-columns: 1fr; }
  .news__row { grid-template-columns: 1fr; }
  .system__row { grid-template-columns: 1fr; }
  .system__row--rev { direction: ltr; }
  .system__stats { grid-template-columns: repeat(2, 1fr); }
  .company { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .showcase__item { display: none; }
  .showcase__item.is-active,
  .showcase__item.is-active + .showcase__item,
  .showcase__item.is-active + .showcase__item + .showcase__item { display: flex; }
  .hero__scroll { right: 20px; bottom: 80px; }
}
@media (max-width: 768px) {
  .phil { grid-template-columns: 1fr; }
  .movie__grid { grid-template-columns: 1fr; }
  .movie__thumbs { grid-template-columns: repeat(2, 1fr); }
  .footer__top { flex-direction: column; gap: 20px; text-align: center; }
  .footer__nav { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .sp-only { display: inline; }
  .hero__showcase { display: none; }
  .sec__label-en { font-size: clamp(1.8rem, 12vw, 3.2rem); }
  /* Wireframe scales naturally via viewBox, no adjustment needed */
}
@media (max-width: 480px) {
  .movie__thumbs { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .info-table th, .info-table td { display: block; width: 100%; padding: 10px 14px; }
  .info-table th { padding-bottom: 2px; }
  .info-table td { padding-top: 2px; }
  .system__stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .system__stat { padding: 20px 12px; }
}
