/* ============================================================
   CROSSPOINT — Corporate Site Stylesheet
   Black theme · monochrome · geometric
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Tokens ---------- */
:root {
  --bg:          #0a0a0a;
  --bg-2:        #0f0f0f;
  --surface:     #151515;
  --surface-2:   #1c1c1c;
  --line:        rgba(255,255,255,0.09);
  --line-2:      rgba(255,255,255,0.16);
  --text:        #f3f3f1;
  --text-muted:  #9c9c99;
  --text-dim:    #6a6a67;
  --white:       #ffffff;

  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--white); color: #000; }

/* Subtle ambient vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 50% -8%, rgba(255,255,255,0.05), transparent 70%);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.section { position: relative; z-index: 1; padding: 120px 0; }
.section--tight { padding: 84px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; color: var(--white); }

.h-display {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
h2.h-section {
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.03em;
}
h3 { font-size: 1.4rem; }

p { color: var(--text-muted); }
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 60ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--line-2);
}

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head p { margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn--primary { background: var(--white); color: #000; }
.btn--primary:hover { background: #d6d6d6; }

.btn--ghost { border-color: var(--line-2); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.04); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* Text link */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--white);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
  transition: border-color 0.3s var(--ease);
}
.tlink .arr { transition: transform 0.3s var(--ease); }
.tlink:hover { border-color: var(--white); }
.tlink:hover .arr { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 54px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 9px 16px;
  border-radius: 2px;
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-cta {
  margin-left: 14px;
  padding: 11px 22px !important;
  border: 1px solid var(--line-2);
  color: var(--white) !important;
  transition: all 0.3s var(--ease) !important;
}
.nav-cta:hover { background: var(--white); color: #000 !important; border-color: var(--white); }

.nav-toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav-toggle span {
  position: absolute;
  left: 9px; right: 9px;
  height: 1.6px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 12px 0;
  letter-spacing: -0.02em;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--white); }
.mobile-menu .mm-meta {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-dim);
}
.mobile-menu .mm-meta a { font-size: 0.95rem; font-family: var(--font-body); font-weight: 500; color: var(--text-muted); padding: 0; }

/* ---------- Rays backdrop ---------- */
.rays {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(1300px, 130%);
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 38%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0%, #000 38%, transparent 88%);
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 880px; margin: 0 auto; }
.hero-mark { width: clamp(96px, 13vw, 150px); margin: 0 auto 40px; opacity: 0; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { margin: 0 auto 40px; text-align: center; }
.hero .btn-row { justify-content: center; }
.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll .line { width: 1px; height: 38px; background: linear-gradient(180deg, var(--line-2), transparent); }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 96px) 0 84px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero .rays { opacity: 0.4; }
.page-hero-inner { position: relative; z-index: 2; max-width: 820px; }
.page-hero .eyebrow { margin-bottom: 26px; }
.page-hero h1 { margin-bottom: 24px; }
.page-hero-mark { width: clamp(78px, 9vw, 108px); height: auto; margin-bottom: 28px; opacity: 0.95; }
.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 30px;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--line-2); }

/* ---------- Stat row ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat { background: var(--bg); padding: 38px 32px; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat .lbl { margin-top: 12px; font-size: 0.92rem; color: var(--text-muted); }

/* ---------- Divisions grid ---------- */
.divisions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.division-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 40px 34px 34px;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
  overflow: hidden;
}
.division-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.division-card:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
  transform: translateY(-4px);
}
.division-card:hover::after { transform: scaleX(1); }
.division-card .idx {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  margin-bottom: 26px;
}
.division-card .abbr {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--white);
  border: 1px solid var(--line-2);
  padding: 4px 9px;
  border-radius: 2px;
  align-self: flex-start;
  margin-bottom: 20px;
}
.division-card h3 { font-size: 1.32rem; margin-bottom: 12px; }
.division-card p { font-size: 0.96rem; flex-grow: 1; margin-bottom: 24px; }
.division-card .tlink { font-size: 0.85rem; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  border-top: 1px solid var(--line-2);
  padding-top: 26px;
}
.feature .fnum {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.feature h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature p { font-size: 0.95rem; }

/* ---------- Split content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split--narrow { grid-template-columns: 0.95fr 1.05fr; }
.split .stack > * + * { margin-top: 20px; }

/* Bordered list */
.list-bordered { border-top: 1px solid var(--line); }
.list-bordered li {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.list-bordered .li-k {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  min-width: 44px;
  padding-top: 3px;
}
.list-bordered .li-b h4 { font-size: 1.05rem; margin-bottom: 5px; color: var(--white); }
.list-bordered .li-b p { font-size: 0.95rem; }

/* ---------- Subsidiary cards ---------- */
.subs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sub-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 38px 34px;
}
.sub-card .tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.sub-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.sub-card p { font-size: 0.95rem; }

/* ---------- Callout / CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta-band .rays { opacity: 0.4; }
.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta-inner h2 { margin-bottom: 22px; }
.cta-inner p { margin-bottom: 36px; }
.cta-inner .btn-row { justify-content: center; }

/* ---------- Leadership ---------- */
.leader {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
.leader-photo {
  aspect-ratio: 202 / 235;
  border: 1px solid var(--line-2);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.leader-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.leader-monogram {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}
.leader-photo .ring { position: absolute; inset: 16px; border: 1px solid var(--line); }
.leader-body h3 { font-size: 1.5rem; margin-bottom: 4px; }
.leader-body .role {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.leader-body p + p { margin-top: 16px; }
.bio-connect { margin-top: 20px !important; font-size: 0.92rem; }
.bio-connect a { color: var(--white); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; transition: border-color 0.25s var(--ease); }
.bio-connect a:hover { border-color: var(--white); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input, .field textarea, .field select {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--white);
  background: var(--surface-2);
}
.form-note { font-size: 0.85rem; color: var(--text-dim); }
.form-status {
  display: none;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  font-size: 0.95rem;
}
.form-status.show { display: block; }
.form-status.ok { border-color: rgba(255,255,255,0.4); color: var(--white); background: var(--surface); }
.form-status.err { border-color: rgba(255,120,120,0.5); color: #ffb3b3; }

/* ---------- Contact details ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; }
.contact-detail { border-top: 1px solid var(--line); padding: 24px 0; }
.contact-detail .ck {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.contact-detail .cv { font-size: 1.05rem; color: var(--white); }
.contact-detail .cv a { border-bottom: 1px solid var(--line-2); transition: border-color 0.25s; }
.contact-detail .cv a:hover { border-color: var(--white); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 80px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer-brand img { width: 132px; margin-bottom: 22px; }
.footer-brand p { font-size: 0.92rem; max-width: 30ch; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.footer-col a, .footer-col .fitem {
  display: block;
  font-size: 0.94rem;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 30px;
  font-size: 0.84rem;
  color: var(--text-dim);
}
.footer-bottom .legal { display: flex; gap: 24px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 404 ---------- */
.err-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px;
  position: relative;
  overflow: hidden;
}
.err-wrap .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section { padding: 92px 0; }
  .divisions, .features { grid-template-columns: 1fr; gap: 20px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .subs { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .leader { grid-template-columns: 1fr; gap: 32px; }
  .leader-photo { max-width: 220px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .container { padding: 0 22px; }
  .nav-inner { padding: 0 22px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 78px 0; }
  body { font-size: 16px; }
}
