/* ============================================================
   OPPIT PARTNERS INC. — stylesheet
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --black: #070c18;
  --deep: #0b1225;
  --surface: #101a30;
  --border: rgba(180,200,255,0.08);
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-dim: rgba(201,168,76,0.13);
  --white: #eef2fa;
  --muted: rgba(200,215,245,0.5);
  --faint: rgba(200,215,245,0.10);
  --navy-glow: rgba(30,60,140,0.35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ---------- Base ---------- */
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ---------- Custom Cursor ---------- */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(201,168,76,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.25s ease, width 0.25s, height 0.25s;
  transform: translate(-50%, -50%);
}
body:hover .cursor-ring { opacity: 1; }

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

/* ---------- Navigation ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 60px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s, padding 0.4s;
}
nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(20px);
  border-color: var(--border);
  padding: 18px 60px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-logo-en {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200;
  font-size: 13px;
  letter-spacing: 0.35em;
  color: var(--gold);
}
.nav-logo-ja {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.nav-links {
  display: flex;
  gap: 44px;
  list-style: none;
}
.nav-links a {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

/* ---------- Hero ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 60px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 15%, rgba(30,60,160,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(20,45,120,0.20) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(201,168,76,0.04) 0%, transparent 60%),
    linear-gradient(160deg, #0d1628 0%, #070c18 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 70% at 80% 20%, black 0%, transparent 70%);
}
.hero-line {
  position: absolute;
  top: 0; right: 200px;
  width: 1px; height: 40vh;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.3;
  animation: lineFloat 4s ease-in-out infinite;
}
.hero-line:nth-child(2) { right: 350px; height: 25vh; top: 20vh; animation-delay: 1.5s; opacity: 0.15; }
@keyframes lineFloat {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(30px); opacity: 0.5; }
}
.hero-label {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 100;
  font-size: 10px;
  letter-spacing: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-label::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--gold);
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
}
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-subtitle {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  font-size: clamp(14px, 1.8vw, 22px);
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 60px;
  opacity: 0;
  animation: fadeUp 1s ease 0.7s forwards;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(201,168,76,0.4);
  padding: 18px 40px;
  transition: background 0.3s, border-color 0.3s;
  opacity: 0;
  animation: fadeUp 1s ease 0.9s forwards;
  position: relative;
  overflow: hidden;
}
.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}
.hero-cta:hover::before { transform: translateX(0); }
.hero-cta:hover { color: var(--black); }
.hero-cta span { position: relative; z-index: 1; }
.hero-cta-arrow { position: relative; z-index: 1; transition: transform 0.3s; }
.hero-cta:hover .hero-cta-arrow { transform: translateX(6px); }
.hero-scroll {
  position: absolute;
  right: 60px; bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}
.hero-scroll-text {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 100;
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Section Base ---------- */
section { padding: 120px 60px; position: relative; }
.section-label {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 100;
  font-size: 9px;
  letter-spacing: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--gold); }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--gold-light); }

/* ---------- About ---------- */
#about {
  background: var(--deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.about-text p {
  font-size: 15px;
  line-height: 2.2;
  color: var(--muted);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.about-text p strong { color: var(--white); font-weight: 400; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.stat-box:hover { border-color: rgba(201,168,76,0.3); }
.stat-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--gold);
  transition: height 0.4s;
}
.stat-box:hover::before { height: 100%; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 52px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-unit { font-family: 'Josefin Sans', sans-serif; font-weight: 200; font-size: 14px; }
.stat-label { font-family: 'Noto Serif JP', serif; font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }

/* ---------- Bridge ---------- */
.bridge-section { padding-top: 20px; }
.bridge-label {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 48px;
}
.bridge-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.bridge-side {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 44px 40px;
  height: 100%;
}
.bridge-icon { font-size: 32px; margin-bottom: 16px; }
.bridge-side-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 24px;
}
.bridge-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.bridge-list li {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: 0.03em;
  padding-left: 18px;
  position: relative;
}
.bridge-list li::before {
  content: '─';
  position: absolute;
  left: 0;
  color: rgba(201,168,76,0.4);
  font-size: 10px;
  top: 3px;
}
.bridge-center { display: flex; flex-direction: column; align-items: center; padding: 0 12px; }
.bridge-arrow-wrap { display: flex; flex-direction: column; align-items: center; }
.bridge-arrow-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  animation: bridgePulse 2.5s ease-in-out infinite;
}
.bridge-arrow-line:nth-child(3) { animation-delay: 1.25s; }
@keyframes bridgePulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.bridge-arrow-badge {
  background: var(--gold);
  color: var(--black);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-align: center;
  line-height: 1.6;
  padding: 10px 14px;
  white-space: nowrap;
}
.bridge-center-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-top: 16px;
  writing-mode: vertical-rl;
}

/* ---------- Services ---------- */
#services { background: var(--black); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 60px; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 52px 44px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s;
  cursor: none;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover { border-color: rgba(201,168,76,0.3); transform: translateY(-4px); }
.service-card:hover::after { opacity: 1; }
.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 72px;
  color: var(--faint);
  line-height: 1;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.service-icon { width: 48px; height: 1px; background: var(--gold); margin-bottom: 28px; position: relative; z-index: 1; }
.service-title { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 400; margin-bottom: 8px; position: relative; z-index: 1; }
.service-title-ja { font-family: 'Noto Serif JP', serif; font-size: 12px; color: var(--gold); letter-spacing: 0.15em; margin-bottom: 20px; position: relative; z-index: 1; }
.service-desc { font-size: 13px; line-height: 2; color: var(--muted); position: relative; z-index: 1; letter-spacing: 0.04em; }

/* ---------- News ---------- */
#news { background: var(--deep); border-top: 1px solid var(--border); }
.news-list { margin-top: 60px; display: flex; flex-direction: column; }
.news-item {
  display: grid;
  grid-template-columns: 160px 100px 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s;
  cursor: none;
  position: relative;
}
.news-item::before {
  content: '';
  position: absolute;
  left: -60px; right: -60px;
  top: 0; bottom: 0;
  background: var(--gold-dim);
  opacity: 0;
  transition: opacity 0.3s;
}
.news-item:hover::before { opacity: 1; }
.news-date { font-family: 'Josefin Sans', sans-serif; font-weight: 200; font-size: 12px; letter-spacing: 0.1em; color: var(--muted); position: relative; }
.news-tag { font-family: 'Josefin Sans', sans-serif; font-weight: 200; font-size: 9px; letter-spacing: 0.3em; color: var(--gold); border: 1px solid rgba(201,168,76,0.4); padding: 4px 12px; position: relative; white-space: nowrap; }
.news-title { font-size: 14px; line-height: 1.7; letter-spacing: 0.04em; position: relative; }
.news-arrow { color: var(--gold); opacity: 0; transition: opacity 0.3s, transform 0.3s; position: relative; font-family: 'Josefin Sans', sans-serif; font-size: 18px; }
.news-item:hover .news-arrow { opacity: 1; transform: translateX(4px); }

/* ---------- Contact ---------- */
#contact { background: var(--black); border-top: 1px solid var(--border); text-align: center; }
.contact-inner { max-width: 680px; margin: 0 auto; }
.contact-inner .section-label { justify-content: center; }
.contact-inner .section-label::before { display: none; }
.contact-desc { font-size: 14px; line-height: 2.2; color: var(--muted); margin-bottom: 60px; letter-spacing: 0.06em; }
.contact-form { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.form-field { position: relative; }
.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  font-weight: 300;
  padding: 22px 24px;
  outline: none;
  transition: border-color 0.3s;
  letter-spacing: 0.04em;
  resize: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(245,240,232,0.2); }
.form-field input:focus,
.form-field textarea:focus { border-color: rgba(201,168,76,0.5); }
.form-field textarea { min-height: 140px; }
.form-label {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200;
  font-size: 9px;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
  margin-top: 20px;
}
.form-submit {
  margin-top: 12px;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  padding: 22px;
  cursor: none;
  transition: background 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
}
.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}
.form-submit:hover::before { transform: translateX(0); }
.form-submit:hover { color: var(--black); }
.form-submit span { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
footer {
  background: var(--deep);
  border-top: 1px solid var(--border);
  padding: 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.footer-logo-en { font-family: 'Josefin Sans', sans-serif; font-weight: 200; font-size: 14px; letter-spacing: 0.3em; color: var(--gold); margin-bottom: 6px; }
.footer-logo-ja { font-family: 'Noto Serif JP', serif; font-size: 11px; color: var(--muted); letter-spacing: 0.15em; margin-bottom: 16px; }
.footer-copy { font-family: 'Josefin Sans', sans-serif; font-weight: 100; font-size: 10px; letter-spacing: 0.2em; color: rgba(245,240,232,0.2); }
.footer-nav { display: flex; gap: 36px; list-style: none; align-items: center; }
.footer-nav a { font-family: 'Josefin Sans', sans-serif; font-weight: 200; font-size: 10px; letter-spacing: 0.25em; color: var(--muted); text-decoration: none; text-transform: uppercase; transition: color 0.3s; }
.footer-nav a:hover { color: var(--gold); }

/* ---------- Animations & Utilities ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.gold-divider { width: 60px; height: 1px; background: var(--gold); margin: 40px 0; }

/* ---------- Logo (Nav & Footer) ---------- */
.nav-brand { display: flex; align-items: center; gap: 16px; }
.nav-logo-img { height: 44px; max-width: 180px; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; gap: 2px; }
.footer-logo-img { height: 36px; max-width: 140px; object-fit: contain; display: block; margin-bottom: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  nav, section, footer { padding-left: 28px; padding-right: 28px; }
  nav.scrolled { padding-left: 28px; padding-right: 28px; }
  .nav-links { display: none; }
  .about-inner { grid-template-columns: 1fr; gap: 60px; }
  .services-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .news-arrow { display: none; }
  footer { flex-direction: column; gap: 40px; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  #hero { padding: 0 28px 60px; }
  .hero-scroll { right: 28px; }
  .bridge-row { grid-template-columns: 1fr; }
  .bridge-center { flex-direction: row; padding: 16px 0; }
  .bridge-arrow-wrap { flex-direction: row; }
  .bridge-arrow-line { width: 40px; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); }
  .bridge-center-text { writing-mode: horizontal-tb; margin-top: 0; margin-left: 12px; }
}
