/* ============================================
   James Worix Company — Global Stylesheet
   ============================================ */

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

:root {
  --bg: #081212;
  --fg: #f0f0f0;
  --fg-dim: #9a9a9a;
  --silver: #c0c0c0;
  --silver-line: rgba(192,192,192,0.10);
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Header ---- */

.page { position: relative; z-index: 1; }

header {
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeIn 1s ease-out both;
}

.logo-mark { height: 44px; width: auto; }

.status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 400;
}

.dot {
  width: 5px; height: 5px;
  background: var(--silver);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

.back-link {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.back-link:hover { color: var(--fg); }

/* ---- Hero (homepage) ---- */

.hero {
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  position: relative;
  animation: fadeUp 1.2s ease-out 0.15s both;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: clamp(2rem, 7vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 2.5rem;
}

.hero h1 span.accent {
  color: var(--silver);
  font-weight: 100;
}

.hero h1 span.entity {
  font-weight: 100;
  color: var(--fg-dim);
  margin-left: 0.15em;
}

.hero-body {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--fg-dim);
  max-width: 44ch;
  font-weight: 300;
}

.scroll-cue {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-dim);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeIn 1.5s ease-out 1.8s both;
}

.scroll-cue::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--silver), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

/* ---- Stats (homepage) ---- */

.stats {
  border-top: 1px solid var(--silver-line);
  border-bottom: 1px solid var(--silver-line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 720px;
  margin: 0 auto;
}

.stat {
  padding: 4.5rem 2.5rem;
  text-align: center;
  border-right: 1px solid var(--silver-line);
  border-bottom: 1px solid var(--silver-line);
}

.stat:nth-child(2) { border-right: none; }

.stat:last-child {
  grid-column: 1 / -1;
  border-right: none;
  border-bottom: none;
}

.stat-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: 0.06em;
  color: var(--fg);
  margin-bottom: 0.7rem;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 400;
  line-height: 1.6;
}

.stat-single {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1.6;
}

/* ---- Narrative / About (homepage) ---- */

.narrative {
  max-width: 640px;
  margin: 0 auto;
  padding: 14vh 2rem;
  text-align: center;
}

.narrative p {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--fg-dim);
  font-weight: 300;
}

.narrative p strong {
  color: var(--fg);
  font-weight: 400;
}

/* ---- Services (homepage) ---- */

.services-line {
  text-align: center;
  padding: 5vh 2rem;
  border-top: 1px solid var(--silver-line);
}

.services-label {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 2rem;
  font-weight: 400;
}

.services-list {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  line-height: 2.2;
}

.services-list span.sep {
  display: inline-block;
  width: 3px; height: 3px;
  background: var(--silver);
  border-radius: 50%;
  opacity: 0.3;
  vertical-align: middle;
  margin: 0 1.5rem;
}

/* ---- Contact (homepage) ---- */

.contact {
  padding: 10vh 2rem 6vh;
  text-align: center;
}

.contact-label {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.contact-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact-item a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover { color: var(--silver); }

/* ---- Legal pages (privacy, terms) ---- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 8rem;
}

.legal h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 0.8rem;
}

.legal .effective {
  font-size: 0.75rem;
  color: var(--fg-dim);
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

.legal h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal p {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--fg-dim);
  margin-bottom: 1rem;
}

.legal ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.legal ul li {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--fg-dim);
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.3rem;
}

.legal ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 4px;
  height: 4px;
  background: var(--silver);
  border-radius: 50%;
  opacity: 0.4;
}

/* ---- Footer ---- */

footer {
  padding: 4rem 4rem 3rem;
  text-align: center;
  border-top: 1px solid var(--silver-line);
}

/* Legal-page footer override */
.legal ~ footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

footer p {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.1em;
  font-weight: 300;
}

footer a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s;
}

footer a:hover { color: var(--fg); }

footer .sep {
  color: var(--fg-dim);
  opacity: 0.3;
  margin: 0 0.8rem;
}

/* ---- Reveal animation ---- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Keyframes ---- */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes scrollPulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.7; } }

/* ---- Mobile ---- */

@media (max-width: 768px) {
  header { padding: 1.8rem 1.5rem; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--silver-line); padding: 3rem 2rem; }
  .stat:nth-child(2) { border-right: none; }
  .stat:last-child { border-bottom: none; }
  .services-list span.sep { display: none; }
  .services-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    line-height: 1.4;
  }
  .services-list .svc-item {
    display: block;
  }
  .scroll-cue { display: none; }
  footer { padding: 3rem 1.5rem 2rem; }
  .legal { padding: 3rem 1.5rem 6rem; }
}
