/* Wilson Sonsini–style layout for AnyRay & Partners */
:root {
  --wsgr-red: #e4002b;
  --wsgr-red-dark: #c40024;
  --wsgr-black: #1a1a1a;
  --wsgr-gray: #767676;
  --wsgr-gray-light: #f4f4f4;
  --wsgr-border: #d9d9d9;
  --wsgr-white: #ffffff;
  --wsgr-header-h: 72px;
  --wsgr-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
body {
  font-family: var(--wsgr-font);
  color: var(--wsgr-black);
  background: var(--wsgr-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.wsgr-skip {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  padding: 0.5rem 1rem; background: var(--wsgr-black); color: #fff;
}
.wsgr-skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.wsgr-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: var(--wsgr-white);
  border-bottom: 1px solid var(--wsgr-border);
  height: var(--wsgr-header-h);
}
.wsgr-header-inner {
  max-width: 1440px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; gap: 1rem;
}
.wsgr-logo img { height: 36px; width: auto; max-width: 200px; }
@media (min-width: 768px) { .wsgr-logo img { height: 42px; } }

.wsgr-nav { display: none; flex: 1; justify-content: center; }
@media (min-width: 1100px) { .wsgr-nav { display: block; } }

.wsgr-nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 0.15rem;
}
.wsgr-nav-item { position: relative; }
.wsgr-nav-link {
  display: inline-flex; align-items: center; gap: 0.2rem;
  padding: 0.65rem 0.85rem; border: 0; background: none;
  font-family: inherit; font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.02em; color: var(--wsgr-black);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color 0.15s;
}
.wsgr-nav-link:hover, .wsgr-nav-item:hover > .wsgr-nav-link { color: var(--wsgr-red); }

.wsgr-header-actions {
  display: flex; align-items: center; gap: 0.5rem;
}
.wsgr-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; background: none;
  cursor: pointer; color: var(--wsgr-black);
}
.wsgr-icon-btn:hover { color: var(--wsgr-red); }
.wsgr-lang {
  position: relative; font-size: 0.75rem; font-weight: 600;
}
.wsgr-lang-panel {
  position: absolute; top: 100%; right: 0; min-width: 120px;
  background: #fff; border: 1px solid var(--wsgr-border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  opacity: 0; visibility: hidden; transition: opacity 0.2s;
}
.wsgr-lang:hover .wsgr-lang-panel, .wsgr-lang:focus-within .wsgr-lang-panel {
  opacity: 1; visibility: visible;
}
.wsgr-lang-panel a {
  display: block; padding: 0.6rem 0.85rem; font-size: 0.8125rem;
  text-decoration: none; color: var(--wsgr-black);
}
.wsgr-lang-panel a:hover { background: var(--wsgr-gray-light); color: var(--wsgr-red); }

.wsgr-menu-toggle { display: inline-flex; }
@media (min-width: 1100px) { .wsgr-menu-toggle { display: none; } }

/* Dropdowns */
.wsgr-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--wsgr-border);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  list-style: none; margin: 0; padding: 0.5rem 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.wsgr-nav-item:hover > .wsgr-dropdown,
.wsgr-nav-item:focus-within > .wsgr-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.wsgr-dropdown a {
  display: block; padding: 0.55rem 1.25rem; font-size: 0.875rem;
  text-decoration: none; color: var(--wsgr-black);
}
.wsgr-dropdown a:hover { color: var(--wsgr-red); background: var(--wsgr-gray-light); }

/* Mega menu */
.wsgr-mega {
  position: fixed; left: 0; right: 0; top: var(--wsgr-header-h);
  background: #fff; border-bottom: 1px solid var(--wsgr-border);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 490;
}
.wsgr-nav-item.wsgr-has-mega:hover > .wsgr-mega,
.wsgr-nav-item.wsgr-has-mega:focus-within > .wsgr-mega,
.wsgr-nav-item.wsgr-has-mega.is-open > .wsgr-mega {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.wsgr-mega-inner { max-width: 1440px; margin: 0 auto; }
.wsgr-mega-cols {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .wsgr-mega-cols { grid-template-columns: 1fr 1fr 1fr; } }
.wsgr-mega-col h3 {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--wsgr-gray); margin: 0 0 1rem;
}
.wsgr-mega-col ul { list-style: none; margin: 0; padding: 0; }
.wsgr-mega-col a {
  display: block; padding: 0.35rem 0; font-size: 0.9375rem;
  text-decoration: none; color: var(--wsgr-black);
}
.wsgr-mega-col a:hover { color: var(--wsgr-red); }
.wsgr-mega-footer {
  max-width: 1440px; margin: 1.5rem auto 0; padding-top: 1rem;
  border-top: 1px solid var(--wsgr-border);
}
.wsgr-mega-footer a {
  font-size: 0.875rem; font-weight: 600; color: var(--wsgr-red);
  text-decoration: none;
}
.wsgr-mega-footer a:hover { text-decoration: underline; }

/* Mobile drawer */
.wsgr-mobile-overlay {
  position: fixed; inset: 0; z-index: 480;
  background: rgba(0,0,0,0.45);
  opacity: 0; visibility: hidden; transition: opacity 0.25s;
}
.wsgr-mobile-overlay.is-open { opacity: 1; visibility: visible; }
.wsgr-mobile-drawer {
  position: fixed; top: 0; right: 0; width: min(100%, 360px); height: 100%;
  background: #fff; z-index: 485; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.3s ease;
  padding: 1rem 0 2rem;
}
.wsgr-mobile-overlay.is-open .wsgr-mobile-drawer { transform: translateX(0); }
.wsgr-mobile-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem 1rem; border-bottom: 1px solid var(--wsgr-border);
}
.wsgr-mobile-nav button, .wsgr-mobile-nav > a {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0.9rem 1.25rem; border: 0; border-bottom: 1px solid #eee;
  background: none; font-family: inherit; font-size: 0.9375rem; font-weight: 500;
  text-align: left; text-decoration: none; color: var(--wsgr-black); cursor: pointer;
}
.wsgr-mobile-sub { display: none; background: var(--wsgr-gray-light); }
.wsgr-mobile-sub.is-open { display: block; }
.wsgr-mobile-sub a {
  display: block; padding: 0.65rem 1.25rem 0.65rem 2rem;
  font-size: 0.875rem; text-decoration: none; color: var(--wsgr-gray);
}
.wsgr-mobile-sub a:hover { color: var(--wsgr-red); }
body.wsgr-nav-lock { overflow: hidden; }

/* Search overlay */
.wsgr-search-overlay {
  position: fixed; inset: 0; z-index: 600; background: rgba(26,26,26,0.92);
  opacity: 0; visibility: hidden; transition: opacity 0.25s;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 6rem 1.5rem 2rem;
}
.wsgr-search-overlay.is-open { opacity: 1; visibility: visible; }
.wsgr-search-box { width: min(640px, 100%); position: relative; }
.wsgr-search-box input {
  width: 100%; padding: 1rem 3rem 1rem 1rem; font-size: 1.25rem;
  border: 0; border-bottom: 2px solid #fff; background: transparent;
  color: #fff; font-family: inherit;
}
.wsgr-search-box input::placeholder { color: rgba(255,255,255,0.5); }
.wsgr-search-close {
  position: absolute; top: 0.75rem; right: 0; border: 0; background: none;
  color: #fff; cursor: pointer; font-size: 1.5rem;
}

/* Main offset */
.wsgr-main { padding-top: var(--wsgr-header-h); }
.wsgr-page { padding: 2.5rem 1.5rem 4rem; }
.wsgr-page-inner { max-width: 900px; margin: 0 auto; }
.wsgr-page-title {
  font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 300;
  line-height: 1.15; margin: 0 0 1.5rem; letter-spacing: -0.02em;
}

/* Homepage hero */
.wsgr-hero {
  position: relative; min-height: clamp(480px, 85vh, 720px);
  display: flex; align-items: flex-end; color: #fff;
  background: var(--wsgr-black) center/cover no-repeat;
}
.wsgr-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.15) 100%);
}
.wsgr-hero-content {
  position: relative; z-index: 2; max-width: 1440px; margin: 0 auto;
  width: 100%; padding: 3rem 1.5rem 4rem;
}
.wsgr-hero-eyebrow {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--wsgr-red); margin-bottom: 1rem;
}
.wsgr-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 300;
  line-height: 1.08; margin: 0 0 1.25rem; max-width: 16ch;
  letter-spacing: -0.03em;
}
.wsgr-hero p {
  font-size: clamp(1rem, 2vw, 1.25rem); max-width: 36rem;
  margin: 0 0 1.75rem; opacity: 0.9; line-height: 1.6;
}
.wsgr-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; font-size: 0.8125rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none; border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer; font-family: inherit;
}
.wsgr-btn-primary { background: var(--wsgr-red); color: #fff; border-color: var(--wsgr-red); }
.wsgr-btn-primary:hover { background: var(--wsgr-red-dark); border-color: var(--wsgr-red-dark); }
.wsgr-btn-outline { background: transparent; color: #fff; border-color: #fff; }
.wsgr-btn-outline:hover { background: #fff; color: var(--wsgr-black); }
.wsgr-btn-dark { background: var(--wsgr-black); color: #fff; border-color: var(--wsgr-black); }
.wsgr-btn-dark:hover { background: var(--wsgr-red); border-color: var(--wsgr-red); }

/* Sections */
.wsgr-section { padding: 4rem 1.5rem; }
.wsgr-section-gray { background: var(--wsgr-gray-light); }
.wsgr-section-inner { max-width: 1440px; margin: 0 auto; }
.wsgr-section-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 1rem; margin-bottom: 2rem;
}
.wsgr-section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 300;
  margin: 0; letter-spacing: -0.02em;
}
.wsgr-link-arrow {
  font-size: 0.8125rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--wsgr-red); text-decoration: none;
}
.wsgr-link-arrow:hover { text-decoration: underline; }

/* Insight cards */
.wsgr-cards {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .wsgr-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .wsgr-cards { grid-template-columns: repeat(3, 1fr); } }
.wsgr-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--wsgr-border);
  transition: box-shadow 0.25s, transform 0.25s;
}
.wsgr-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.08); transform: translateY(-2px);
}
.wsgr-card-img {
  aspect-ratio: 16/10; background: var(--wsgr-gray-light) center/cover no-repeat;
}
.wsgr-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.wsgr-card-type {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--wsgr-red); margin-bottom: 0.5rem;
}
.wsgr-card h3 {
  font-size: 1.125rem; font-weight: 400; line-height: 1.35;
  margin: 0 0 0.75rem; flex: 1;
}
.wsgr-card-date { font-size: 0.8125rem; color: var(--wsgr-gray); }

/* Practices grid */
.wsgr-practice-grid {
  display: grid; gap: 0;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--wsgr-border);
  border-left: 1px solid var(--wsgr-border);
}
@media (min-width: 768px) { .wsgr-practice-grid { grid-template-columns: repeat(4, 1fr); } }
.wsgr-practice-tile {
  display: flex; align-items: center; min-height: 4.5rem;
  padding: 1rem 1.25rem; text-decoration: none; color: var(--wsgr-black);
  font-size: 0.9375rem; font-weight: 500;
  border-right: 1px solid var(--wsgr-border);
  border-bottom: 1px solid var(--wsgr-border);
  transition: background 0.15s, color 0.15s;
}
.wsgr-practice-tile:hover { background: var(--wsgr-black); color: #fff; }

/* Split feature */
.wsgr-split {
  display: grid; gap: 0; align-items: stretch;
  grid-template-columns: 1fr;
}
@media (min-width: 992px) { .wsgr-split { grid-template-columns: 1fr 1fr; } }
.wsgr-split-media {
  min-height: 320px; background: center/cover no-repeat;
}
.wsgr-split-body {
  padding: 3rem 1.5rem; display: flex; flex-direction: column; justify-content: center;
  background: var(--wsgr-black); color: #fff;
}
.wsgr-split-body h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 300;
  margin: 0 0 1rem; letter-spacing: -0.02em;
}
.wsgr-split-body p { margin: 0 0 1.5rem; opacity: 0.85; line-height: 1.65; max-width: 28rem; }

/* Locations */
.wsgr-locations {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .wsgr-locations { grid-template-columns: repeat(2, 1fr); } }
.wsgr-location-card {
  padding: 2rem; border: 1px solid var(--wsgr-border); background: #fff;
}
.wsgr-location-card h3 {
  font-size: 1.25rem; font-weight: 500; margin: 0 0 1rem;
}
.wsgr-location-line {
  display: flex; gap: 0.65rem; margin-bottom: 0.5rem;
  font-size: 0.9375rem; color: var(--wsgr-gray);
}

/* Subscribe band */
.wsgr-subscribe {
  background: var(--wsgr-black); color: #fff; text-align: center;
  padding: 3.5rem 1.5rem;
}
.wsgr-subscribe h2 {
  font-size: 1.5rem; font-weight: 300; margin: 0 0 0.5rem;
}
.wsgr-subscribe p { margin: 0 0 1.5rem; opacity: 0.75; }
.wsgr-subscribe-form {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
  max-width: 28rem; margin: 0 auto;
}
.wsgr-subscribe-form input {
  flex: 1 1 200px; padding: 0.85rem 1rem; border: 0;
  font-family: inherit; font-size: 0.9375rem;
}
.wsgr-subscribe-form button {
  padding: 0.85rem 1.5rem; background: var(--wsgr-red); color: #fff;
  border: 0; font-weight: 600; font-size: 0.8125rem;
  text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer;
  font-family: inherit;
}
.wsgr-subscribe-form button:hover { background: var(--wsgr-red-dark); }

/* Footer */
.wsgr-footer {
  background: var(--wsgr-gray-light);
  border-top: 1px solid var(--wsgr-border);
  padding: 3rem 1.5rem 1.5rem;
}
.wsgr-footer-grid {
  max-width: 1440px; margin: 0 auto;
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .wsgr-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .wsgr-footer-grid { grid-template-columns: 2fr repeat(4, 1fr); } }
.wsgr-footer h4 {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; margin: 0 0 1rem; color: var(--wsgr-gray);
}
.wsgr-footer ul { list-style: none; margin: 0; padding: 0; }
.wsgr-footer a {
  display: block; padding: 0.25rem 0; font-size: 0.875rem;
  text-decoration: none; color: var(--wsgr-black);
}
.wsgr-footer a:hover { color: var(--wsgr-red); }
.wsgr-footer-bottom {
  max-width: 1440px; margin: 2rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid var(--wsgr-border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.75rem; color: var(--wsgr-gray);
}
.wsgr-footer-legal {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem;
  max-width: 1440px; margin: 1rem auto 0;
}
.wsgr-footer-legal a {
  font-size: 0.75rem; color: var(--wsgr-gray); text-decoration: none;
}
.wsgr-footer-legal a:hover { color: var(--wsgr-red); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
