/* ═══════════════════════════════════════
   RWL Consulting — Shared Styles
   ═══════════════════════════════════════ */

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

:root {
  --bg: #0a0a0a;
  --bg-light: #111111;
  --text: #e8e6e1;
  --text-dim: #706e69;
  --text-mid: #a8a6a1;
  --line: #1e1e1e;
  --line-light: #2a2a2a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 100;
  cursor: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { cursor: none; }

/* ── Noise Overlay ── */
body::before {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.12;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="4" stitchTiles="stitch"/></filter><rect width="200" height="200" filter="url(%23noise)" opacity="1"/></svg>');
  background-repeat: repeat;
}

/* ── Custom Cursor ── */
.cursor-outer {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(232, 230, 225, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: left, top;
}

.cursor-inner {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  will-change: left, top;
}

.cursor-outer.hover { transform: translate(-50%, -50%) scale(1.6); border-color: rgba(232,230,225,0.2); transition: transform 0.3s ease, border-color 0.3s ease; }
.cursor-inner.hover { transform: translate(-50%, -50%) scale(0.5); transition: transform 0.3s ease; }

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(10,10,10,0.8) 60%, transparent 100%);
}

.logo {
  font-size: 1.4rem;
  font-weight: 250;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 100;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--text); }

/* CTA Button with Text Roll */
.btn-roll {
  display: inline-block;
  overflow: hidden;
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 200;
  letter-spacing: 0.02em;
  padding: 0.55rem 1.6rem;
  border: 1px solid var(--line-light);
  border-radius: 2rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.btn-roll:hover {
  border-color: var(--text-mid);
  background: rgba(255,255,255,0.03);
}

.btn-roll .btn-roll-inner {
  display: block;
  position: relative;
  overflow: hidden;
  height: 1.3em;
  line-height: 1.3em;
}

.btn-roll .btn-roll-text,
.btn-roll .btn-roll-clone {
  display: block;
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
}

.btn-roll .btn-roll-clone {
  position: absolute;
  top: 0; left: 0;
  transform: translateY(100%) skewY(4deg);
}

.btn-roll:hover .btn-roll-text {
  transform: translateY(-100%) skewY(-4deg);
}

.btn-roll:hover .btn-roll-clone {
  transform: translateY(0) skewY(0);
}

/* ── Sections Common ── */
.section-padding { padding: 8rem 3rem; }
.section-container { max-width: 1400px; margin: 0 auto; width: 100%; }

/* ── Footer ── */
.site-footer {
  padding: 4rem 3rem 3rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 3rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-col a {
  display: block;
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 100;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.footer-col a:hover { color: var(--text); }

.footer-col p {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 100;
  line-height: 1.7;
}

.footer-bottom {
  max-width: 1400px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 100;
}

.footer-bottom a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover { color: var(--text); }

.footer-logo-mark {
  width: 18px;
  height: 18px;
  opacity: 0.5;
}

/* ── Team Grid ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.team-card { text-decoration: none; color: inherit; display: block; }

.team-card-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
  filter: grayscale(0.2);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.team-card:hover .team-card-image { filter: grayscale(0); transform: scale(1.02); }

.team-card-image-wrap {
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.team-card h3 {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.team-card .team-card-role {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 100;
  margin-bottom: 0.8rem;
}

.team-card .team-card-email {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 100;
  display: block;
  margin-bottom: 0.3rem;
}

.team-card .team-card-link {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 200;
  text-decoration: none;
  transition: color 0.3s ease;
}

.team-card .team-card-link:hover { color: var(--text); }

/* ── Page Hero (for sub-pages) ── */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 3rem 4rem;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 1000px;
}

.page-hero .section-container { width: 100%; }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.8rem; }
  .section-padding { padding: 4rem 1.5rem; }
  .page-hero { padding: 6rem 1.5rem 3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .team-grid { grid-template-columns: 1fr; }
}
