/* ============================================================
   WORLDSERVE — main.css
   CONTRAST RULE: --white / --off for ALL readable text.
   --muted for small decorative labels only.
   --dim NEVER used for readable text.
   ============================================================ */

:root {
  --black:   #000000;
  --near:    #090909;
  --deep:    #111111;
  --mid:     #181818;
  --surface: #1f1f1f;
  --line:    rgba(255,255,255,0.12);
  --line2:   rgba(255,255,255,0.22);
  --white:   #ffffff;
  --off:     #e8e8e8;   /* near-white — body text */
  --muted:   #a0a0a0;   /* secondary labels — never body copy */
  --dim:     #666666;   /* decorative only — never readable text */
  --gold:    #c9a84c;
  --gold2:   #f0c060;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
  --c1: #3a7bd5;
  --c2: #c87533;
  --c3: #7b5ea7;
  --c4: #2a8a5e;
  --c5: #2e9e6e;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── BASE ── */
body {
  background: var(--black);
  color: var(--off);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.85;
  overflow-x: hidden;
  cursor: none;
}

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

/* ── CURSOR ── */
#ws-cursor {
  position: fixed; width: 7px; height: 7px;
  border-radius: 50%; background: #fff;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
}
#ws-cursor-ring {
  position: fixed; width: 32px; height: 32px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.35);
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.28s, height 0.28s, border-color 0.28s;
}
body:has(a:hover) #ws-cursor-ring,
body:has(button:hover) #ws-cursor-ring {
  width: 50px; height: 50px;
  border-color: rgba(255,255,255,0.6);
}

/* ── LAYOUT ── */
.container    { max-width: 1340px; margin: 0 auto; padding: 0 3rem; }
.container-sm { max-width: 960px;  margin: 0 auto; padding: 0 3rem; }

/* ── SECTIONS ── */
.section      { padding: 9rem 0; border-top: 1px solid var(--line); }
.section-dark { background: var(--near); }
.section-mid  { background: var(--deep); }

/* ── TYPOGRAPHY ── */
.t-eyebrow {
  font-family: var(--font-cond);
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 0.9rem;
  margin-bottom: 2.8rem;
}
.t-eyebrow::before {
  content: ''; width: 26px; height: 1px;
  background: var(--gold); flex-shrink: 0;
}

/* Section index label — small decorative label above heading */
.t-section-idx {
  font-family: var(--font-cond);
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 2.5rem;
}
.t-section-idx span { color: var(--gold); }

/* Headings */
.t-xl {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 0.92; letter-spacing: 0.01em;
  color: var(--white);
}
.t-xl .dim { color: var(--muted); }

.t-lg {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.94; letter-spacing: 0.01em;
  color: var(--white);
}

.t-md {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.8vw, 2.6rem);
  line-height: 0.96;
  color: var(--white);
}

/* Body text — always near-white on dark bg */
.t-body {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--off);
  line-height: 1.9;
  max-width: 540px;
}
.t-body-w  { color: var(--off); }
.t-body-ww { color: var(--white); }

/* Small label — use only for metadata, not body copy */
.t-label {
  font-family: var(--font-cond);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── GRIDS ── */
.grid-2  { display: grid; grid-template-columns: 1fr 1fr;       gap: 7rem; align-items: start; }
.grid-32 { display: grid; grid-template-columns: 2fr 1fr;       gap: 7rem; align-items: start; }
.grid-13 { display: grid; grid-template-columns: 1fr 3fr;       gap: 5rem; align-items: start; }
.grid-3  { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; align-items: start; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-family: var(--font-cond);
  font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--white); background: none;
  border: 1px solid var(--line2);
  padding: 1rem 2rem;
  transition: all 0.3s;
}
.btn:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }
.btn .arr { transition: transform 0.3s; }
.btn:hover .arr { transform: translateX(5px); }

.btn-solid {
  background: var(--white); color: var(--black); border-color: var(--white);
}
.btn-solid:hover { background: var(--off); border-color: var(--off); color: var(--black); }

.btn-gold { border-color: rgba(201,168,76,0.6); color: var(--gold); }
.btn-gold:hover { border-color: var(--gold); background: rgba(201,168,76,0.07); }

/* ── IMAGE PLACEHOLDERS ── */
.img-ph {
  background: var(--deep); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 2rem;
}
.img-ph::after {
  content: attr(data-label);
  font-family: var(--font-cond);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}

/* ── PULL QUOTE ── */
.pull-quote {
  font-style: italic; font-weight: 300;
  font-size: clamp(1.1rem, 1.9vw, 1.5rem);
  line-height: 1.6; color: var(--off);
  padding: 2.5rem 0 2.5rem 2.5rem;
  border-left: 2px solid var(--gold);
  margin: 3rem 0;
}

/* ── FEATURE ROWS (practice pages) ── */
.feat-row {
  display: grid; grid-template-columns: 1.2rem 1fr;
  gap: 1.5rem; align-items: start;
  padding: 1.9rem 0; border-bottom: 1px solid var(--line);
}
.feat-row:first-child { border-top: 1px solid var(--line); }
.feat-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-top: 0.6rem; }
.feat-text { font-size: 1.05rem; font-weight: 300; color: var(--off); line-height: 1.82; }
.feat-text strong { font-weight: 600; color: var(--white); }

/* ── TIMELINE ── */
.tl-item {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 3.5rem; padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s;
}
.tl-item:hover { padding-left: 0.7rem; }
.tl-year {
  font-family: var(--font-head); font-size: 1.85rem;
  color: var(--muted); line-height: 1; transition: color 0.3s;
}
.tl-item:hover .tl-year { color: var(--gold); }
.tl-title {
  font-family: var(--font-cond); font-size: 1.1rem;
  font-weight: 600; letter-spacing: 0.03em;
  color: var(--white); margin-bottom: 0.5rem;
}
.tl-body { font-size: 1.05rem; font-weight: 300; color: var(--off); line-height: 1.85; }

/* ── CLIENT STRIP (text version) ── */
.clients-strip { padding: 3rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients-label {
  font-family: var(--font-cond); font-size: 0.9rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.6rem;
}
.clients-list { display: flex; flex-wrap: wrap; }
.client-name {
  font-family: var(--font-cond); font-size: 0.92rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--off); padding: 0.55rem 1.6rem;
  border-right: 1px solid var(--line); transition: color 0.2s;
}
.client-name:first-child { padding-left: 0; }
.client-name:hover { color: var(--white); }

/* ── STAT STRIP ── */
.stat-strip {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat-cell { padding: 3.5rem 2.5rem; border-right: 1px solid var(--line); }
.stat-cell:last-child { border-right: none; }
.stat-n {
  font-family: var(--font-head); font-size: 4rem;
  line-height: 1; color: var(--white);
  display: block; margin-bottom: 0.4rem;
}
.stat-l {
  font-family: var(--font-cond); font-size: 1rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--off);
}

/* ── QUOTE ── */
.quote-section { padding: 8rem 0; border-top: 1px solid var(--line); background: var(--near); }
.q-mark {
  font-family: var(--font-head); font-size: 7rem;
  line-height: 0.55; color: var(--dim);
  display: block; margin-bottom: 1.8rem;
}
.q-text {
  font-style: italic; font-weight: 300;
  font-size: clamp(1.2rem, 2.3vw, 1.8rem);
  line-height: 1.5; color: var(--off);
  max-width: 760px; margin-bottom: 1.8rem;
}
.q-attr {
  font-family: var(--font-cond); font-size: 0.95rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.q-attr span { color: var(--gold); }

/* ── CONTACT BLOCK ── */
.contact-block { padding: 9rem 0; border-top: 1px solid var(--line); }
.contact-hl {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 8vw, 8.5rem);
  line-height: 0.88; color: var(--white); margin-bottom: 5rem;
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 7rem; padding-top: 3.5rem; border-top: 1px solid var(--line);
}
.c-row { display: flex; gap: 1.6rem; padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.c-row:first-child { padding-top: 0; }
.c-key {
  font-family: var(--font-cond); font-size: 0.9rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); min-width: 80px; padding-top: 3px; flex-shrink: 0;
}
.c-val { font-size: 1.05rem; font-weight: 300; color: var(--white); line-height: 1.78; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1), transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ── NAV ── */
#ws-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 64px; padding: 0 3rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s;
}
#ws-nav.scrolled {
  background: rgba(0,0,0,0.93);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; flex-shrink: 0; }
.nav-logo-mark { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; display: block; flex-shrink: 0; }
.nav-logo-text {
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: 1.15rem; letter-spacing: 0.04em; color: var(--white); line-height: 1;
}
.nav-links { display: flex; align-items: center; list-style: none; }
.nav-links li a,
.nav-links li button {
  font-family: var(--font-cond); font-size: 0.95rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--off); text-decoration: none; background: none; border: none;
  padding: 0.4rem 0.9rem; position: relative;
  transition: color 0.2s; white-space: nowrap; display: block;
}
.nav-links li a::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0.9rem; right: 0.9rem;
  height: 1px; background: var(--white);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.nav-links li a:hover, .nav-links li a.active, .nav-links li button:hover { color: var(--white); }
.nav-links li a:hover::after, .nav-links li a.active::after { transform: scaleX(1); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  font-family: var(--font-cond); font-size: 0.95rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--off); background: none; border: none;
  padding: 0.4rem 0.9rem; cursor: pointer; transition: color 0.2s;
  display: flex; align-items: center; gap: 0.4rem;
}
.nav-dropdown-toggle:hover { color: var(--white); }
.nav-dropdown-toggle .chevron { font-size: 0.5rem; transition: transform 0.2s; display: inline-block; }
.nav-dropdown.open .chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: rgba(9,9,9,0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line2); min-width: 260px;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity 0.22s, transform 0.22s; list-style: none; z-index: 1001;
}
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; pointer-events: auto; transform: none; }
.nav-dropdown-menu li a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-cond); font-size: 0.95rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--off); transition: color 0.2s, background 0.2s;
  border-bottom: 1px solid var(--line);
}
.nav-dropdown-menu li:last-child a { border-bottom: none; }
.nav-dropdown-menu li a:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.nav-dropdown-menu li a .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.nav-external::after { content: ' ↗'; font-size: 0.6rem; }

/* Mobile nav */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-hamburger span { width: 22px; height: 1px; background: var(--off); display: block; transition: all 0.3s; }
.nav-mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.97); z-index: 999; padding: 3rem;
  flex-direction: column; gap: 1.5rem; overflow-y: auto;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: var(--font-head); font-size: 2.2rem;
  color: var(--off); text-decoration: none; transition: color 0.2s; letter-spacing: 0.05em;
}
.nav-mobile-menu a:hover { color: var(--white); }
.nav-mobile-menu .mobile-sub {
  font-family: var(--font-cond); font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 0.5rem;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 168px 0 7rem; border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden; min-height: 70vh;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.page-hero-video { position: absolute; inset: 0; z-index: 0; }
.page-hero-video video { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.page-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.75) 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.ph-idx {
  font-family: var(--font-cond); font-size: 0.95rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 0.9rem; margin-bottom: 2.5rem;
}
.ph-idx::before { content: ''; width: 26px; height: 1px; background: var(--muted); }
.ph-title {
  font-family: var(--font-head); font-size: clamp(3.2rem, 7.5vw, 8rem);
  line-height: 0.88; color: var(--white); margin-bottom: 2.5rem;
}
.ph-sub { font-size: 1.2rem; font-weight: 300; color: var(--off); max-width: 620px; line-height: 1.88; }
.practice-accent { position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3; }

/* ── FEATURED CARD ── */
.featured-card { border-top: 1px solid var(--line); padding: 5rem 0; }
.featured-card-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line);
}
.featured-card-media { position: relative; min-height: 320px; overflow: hidden; background: var(--deep); }
.featured-card-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; transition: opacity 0.5s, transform 0.5s; }
.featured-card-inner:hover .featured-card-media img { opacity: 0.9; transform: scale(1.02); }
.featured-card-content {
  padding: 3rem; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between;
}
.featured-tag {
  font-family: var(--font-cond); font-size: 0.88rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.5rem;
}
.featured-tag::before { content: ''; width: 20px; height: 1px; background: var(--gold); }
.featured-title {
  font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 0.95; color: var(--white); margin-bottom: 1rem;
}
.featured-desc { font-size: 1.05rem; font-weight: 300; color: var(--off); line-height: 1.85; margin-bottom: 2rem; flex: 1; }
.featured-meta { display: flex; gap: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); margin-bottom: 2rem; }
.featured-meta-label {
  font-family: var(--font-cond); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem;
}
.featured-meta-value { font-family: var(--font-cond); font-size: 1.05rem; color: var(--white); }

/* ── SCROLL HINT ── */
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--off));
  animation: scrollpulse 2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(0.55); opacity: 1; }
}
.scroll-lbl { font-family: var(--font-cond); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ── FOOTER ── */
#ws-footer { background: var(--near); border-top: 1px solid var(--line); }
.footer-top {
  padding: 5rem 0 4rem;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem; border-bottom: 1px solid var(--line);
}
.footer-brand .nav-logo { display: inline-flex; margin-bottom: 1.2rem; }
.footer-brand .nav-logo-mark { width: 30px; height: 30px; }
.footer-brand .nav-logo-text { font-size: 1rem; }
.footer-brand p { font-size: 0.95rem; color: var(--off); line-height: 1.8; max-width: 280px; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  font-family: var(--font-cond); font-size: 0.9rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--white); }
.footer-col h4 {
  font-family: var(--font-cond); font-size: 0.85rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul li a { font-size: 1rem; font-weight: 300; color: var(--off); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { padding: 1.8rem 0; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-family: var(--font-cond); font-size: 0.9rem; letter-spacing: 0.06em; color: var(--muted); }
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a { font-family: var(--font-cond); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color 0.2s; }
.footer-legal a:hover { color: var(--off); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 3rem; } }
@media (max-width: 900px) {
  .container, .container-sm { padding: 0 1.5rem; }
  #ws-nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-32, .grid-13 { grid-template-columns: 1fr; gap: 3.5rem; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-cell { padding: 2.5rem 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .tl-item { grid-template-columns: 1fr; gap: 0.6rem; }
  .featured-card-inner { grid-template-columns: 1fr; }
  .featured-card-content { border-left: none; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .stat-strip { grid-template-columns: 1fr; }
  .page-hero { min-height: 60vh; }
  #ws-cursor, #ws-cursor-ring { display: none; }
  body { cursor: auto; }
}
