:root {
  --bg: #f4f1eb;
  --bg-soft: #faf8f4;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: #ffffff;
  --ink: #121212;
  --ink-soft: #4f4a42;
  --line: rgba(18, 18, 18, 0.12);
  --accent: #a8ff60;
  --accent-deep: #83d63f;
  --dark: #090909;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 18px 48px rgba(10, 10, 10, 0.07);
  --shell: 820px;
  --page-column: 760px;
  --space-2: 0.25rem;
  --space-3: 0.5rem;
  --space-4: 0.75rem;
  --space-5: 1rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --section-space: clamp(4rem, 6vw, 6rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(168, 255, 96, 0.1), transparent 26%),
    linear-gradient(180deg, #f7f4ef 0%, #f3f0ea 45%, #eeebe4 100%);
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.shell,
.container {
  width: min(calc(100% - 2rem), var(--shell));
  margin: 0 auto;
}

.page-column {
  max-width: var(--page-column);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 2000;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000;
  border-bottom: 0;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand img {
  width: 124px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: transparent;
  color: white;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: white;
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(140deg, rgba(0, 0, 0, 0.76), rgba(8, 8, 8, 0.96)),
    url("../img/network-bg.jpg") center/cover no-repeat;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.65fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  min-height: min(740px, calc(100vh - 72px));
  padding: 2.8rem 0 3.4rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  align-self: center;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.85rem, 7vw, 5.1rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.hero h1 em,
.page-hero h1 em {
  display: block;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero h1 .typed-line {
  display: grid;
  width: max-content;
  max-width: 100%;
  line-height: 1.12;
  padding-block: 0.04em 0.12em;
  white-space: nowrap;
}

/* The longest phrase reserves font-scaled space through empty typing states. */
.typed-line::before {
  content: "legal teams\00a0";
  visibility: hidden;
  grid-area: 1 / 1;
}

.typed-content {
  grid-area: 1 / 1;
  line-height: inherit;
}

.typed-text {
  color: var(--accent);
}

.cursor {
  display: inline-block;
  width: 1px;
  height: 0.8em;
  margin-left: 0.06em;
  vertical-align: -0.03em;
  background: var(--accent);
  animation: blink 1s steps(2, start) infinite;
}

.hero-subtext,
.page-intro {
  margin: 1.35rem 0 0;
  max-width: 38rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-subtext {
  color: rgba(255, 255, 255, 0.8);
}

.page-intro,
.page-hero .page-intro {
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: var(--ink);
}

.button-primary:hover {
  background: var(--accent-deep);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button-secondary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.button-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.38);
}

.section {
  padding: var(--section-space) 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: var(--space-7);
}

.section-heading h2,
.prose h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 34rem;
  margin: 0;
  color: var(--ink-soft);
}

.section-heading--simple {
  margin-bottom: 1.6rem;
}

.intro-card,
.service-card,
.editorial-card,
.contact-card,
.profile-card,
.testimonial-shell,
.capability-block,
.post-preview,
.post-aside {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.intro-card {
  max-width: var(--page-column);
  padding: var(--space-7);
}

.intro-card__body {
  display: grid;
  gap: 0.2rem;
  justify-items: start;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  font-weight: 700;
}

.section-link::after {
  content: "→";
  color: var(--accent-deep);
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
}

.services-grid,
.insights-grid,
.capabilities-grid,
.team-grid,
.posts-grid,
.footer-grid {
  display: grid;
  gap: var(--space-6);
}

.services-grid,
.insights-grid,
.capabilities-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.editorial-card,
.capability-block,
.contact-card,
.profile-card,
.post-preview,
.post-aside {
  padding: var(--space-6);
}

.service-card,
.capability-block,
.post-preview {
  display: flex;
  flex-direction: column;
}

.impact-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.64)),
    var(--surface-strong);
}

.impact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(168, 255, 96, 0));
}


.service-index {
  margin: 0 0 var(--space-5);
  color: var(--accent-deep);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.service-card h3,
.editorial-card h3,
.capability-block h3,
.profile-card h2,
.post-preview h3 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
  line-height: 1.15;
}

.service-card p,
.editorial-card p,
.capability-block p,
.post-preview p,
.profile-copy p,
.contact-card p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.editorial-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.text-link {
  margin-top: auto;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(18, 18, 18, 0.24);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.text-link::after {
  content: " →";
  display: inline-block;
  text-decoration: none;
  transition: transform 0.18s ease;
}

.text-link:hover {
  color: var(--accent-deep);
  text-decoration-color: currentColor;
}

.text-link:hover::after {
  transform: translateX(3px);
}

.testimonial-shell {
  max-width: var(--page-column);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  overflow: hidden;
}

.testimonial-track {
  display: grid;
  min-height: 0;
}

.testimonial-slide[hidden] {
  display: none;
}

.testimonial-slide {
  display: grid;
  gap: 1.3rem;
}

.testimonial-quote {
  margin: 0;
  font-size: clamp(1.6rem, 2.7vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.testimonial-author {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-buttons {
  display: flex;
  gap: 0.75rem;
}

.carousel-button,
.back-to-top {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.carousel-button:hover,
.back-to-top:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.carousel-button:active,
.back-to-top:active {
  transform: scale(0.96);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(18, 18, 18, 0.16);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.carousel-dot:hover {
  background: rgba(18, 18, 18, 0.4);
}

.carousel-dot[aria-current="true"] {
  background: var(--accent-deep);
  transform: scale(1.16);
}

.contact-grid {
  grid-template-columns: minmax(0, 680px);
  gap: 2rem;
  align-items: stretch;
  justify-content: center;
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.contact-card {
  min-height: 100%;
}


.contact-embed {
  min-height: 0;
  padding: clamp(1.25rem, 4vw, 2rem);
  overflow: hidden;
}

.contact-embed iframe {
  width: 100%;
  height: 560px;
  border: 0;
  border-radius: 18px;
  display: block;
}


.team-grid {
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: var(--shell);
  margin: 0 auto;
}

.profile-card {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: minmax(160px, 180px) minmax(0, 1fr);
  align-items: start;
  padding: clamp(1.25rem, 2.5vw, 1.5rem);
}

.profile-card img {
  width: 100%;
  height: auto;
  align-self: start;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-sm);
  background: #eae6de;
}


.role {
  margin: 0 0 0.8rem;
  color: var(--accent-deep);
  font-weight: 800;
}

.note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}

.page-hero {
  padding: var(--space-9) 0 var(--space-6);
}

.page-hero__inner,
.prose,
.expertise-intro {
  max-width: var(--page-column);
}

.page-content {
  padding: 0.5rem 0 calc(var(--section-space) - 0.5rem);
}

.prose h2,
.prose h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.6rem;
}

.prose h2 + p,
.prose h3 + p {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.prose ul {
  padding-left: 1.2rem;
}


.posts-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-meta,
.post-preview__meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.post-shell {
  display: grid;
  grid-template-columns: 1fr;
  max-width: var(--page-column);
  gap: var(--space-7);
}

.post-aside {
  align-self: start;
  position: static;
}

.post-aside a {
  display: block;
  margin-top: 0.9rem;
  font-weight: 700;
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at top right, rgba(168, 255, 96, 0.1), transparent 30%),
    linear-gradient(180deg, #101010, #060606);
  padding-top: var(--space-8);
}

.footer-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  align-items: start;
  padding-bottom: var(--space-7);
}

.footer-brand img {
  width: 138px;
}


.site-footer address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-heading {
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-footer .footer-heading {
  color: white;
}

.footer-links a {
  display: block;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.68);
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-7);
  padding: 1.25rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.footer-disclaimer {
  max-width: 32rem;
  margin: 0;
  padding-left: 0;
  border-left: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1300;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.carousel-button:focus-visible,
.back-to-top:focus-visible,
.nav-toggle:focus-visible,
.carousel-dot:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--accent-deep);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cursor {
    animation: none !important;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .post-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .insights-grid,
  .capabilities-grid,
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 2.25rem 0 3rem;
  }


  .testimonial-shell,
  .intro-card,
  .expertise-intro,
  .page-hero__inner,
  .prose,
  .team-grid {
    max-width: none;
  }

  .profile-card img {
    width: min(100%, 300px);
    height: auto;
  }

  .post-aside {
    position: static;
  }

  .footer-meta {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.9rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .section {
    padding: 4rem 0;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }


  .testimonial-quote {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .footer-links {
    flex-direction: column;
    grid-template-columns: 1fr;
  }
}

/* Refinements shared by every page. */
[hidden] { display: none !important; }
button { cursor: pointer; }
html { scroll-padding-top: 90px; }
.skip-link { position: fixed; top: 0; transform: translateY(-150%); max-width: calc(100% - 2rem); }
.skip-link:focus { transform: translateY(0); }
.nav-toggle .sr-only { width: 1px; height: 1px; margin: -1px; }
.hero { isolation: isolate; }
.hero-network { position: absolute; inset: 0; pointer-events: none; opacity: .65; }
.hero-grid { grid-template-columns: minmax(0, 1fr); z-index: 1; pointer-events: none; }
.hero-copy { pointer-events: auto; }
.hero-copy::before { content: ""; position: absolute; inset: -3rem; background: radial-gradient(ellipse at left, rgba(0,0,0,.7), transparent 75%); z-index: -1; pointer-events: none; }
.hero h1 { line-height: 1.08; }
.testimonial-shell { max-width: none; padding: clamp(1.5rem, 4vw, 2.5rem); }
.testimonial-quote { margin: 0; max-width: 27ch; text-wrap: pretty; }
.testimonial-author { margin: 1.5rem 0 0; font-size: .9rem; line-height: 1.6; }
.testimonial-controls { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.carousel-dot { width: 32px; height: 32px; padding: 10px; background-clip: content-box; }
.contact-grid { display: grid; }
.contact-card a { text-decoration: underline; text-underline-offset: .2em; }
.team-grid { margin-top: 0; }
.footer-brand address { margin-top: 1.5rem; }
.footer-meta { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr); gap: 1.5rem; font-size: .8rem; }
.footer-meta p { margin: 0; }
.footer-disclaimer { font-size: .78rem; color: rgba(255,255,255,.63); }
@media (max-width: 980px) {
  .hero-grid { min-height: 560px; }
  .footer-meta { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .profile-card { grid-template-columns: 1fr; }
  .hero-grid { min-height: 500px; }
  .hero h1 { font-size: clamp(2.35rem, 11.5vw, 4rem); }
  .hero-copy::before { inset: 0; }
  .footer-links { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .testimonial-controls { gap: 1rem; }
}

.carousel-dot,
.carousel-dot:hover,
.carousel-dot[aria-current="true"] { position: relative; background: transparent; }
.carousel-dot::after { content: ""; position: absolute; width: 8px; height: 8px; inset: 12px; border-radius: 50%; background: #aaa; }
.carousel-dot[aria-current="true"]::after { background: #568d29; }
.testimonial-slide { gap: 0; }

/* Targeted editorial spacing; the shared page layout remains unchanged. */
.section--about { padding-block: clamp(3rem, 5vw, 4.5rem); }
.section--about .section-heading { margin-bottom: 1.5rem; }
.intro-card > p:first-child { margin-top: 0; }
.intro-card > p:last-child { margin-bottom: 0; }
.section--testimonials { padding-bottom: clamp(2rem, 4vw, 3rem); }
#contact { padding-top: clamp(2rem, 4vw, 3rem); }
#contact .section-heading { margin-bottom: 1.5rem; }
.page-hero--team { padding: clamp(2.5rem, 5vw, 3rem) 0 1.5rem; }
.section--team { padding-top: 0; padding-bottom: clamp(3rem, 5vw, 4rem); }
.profile-copy p { margin-bottom: .9rem; }
.profile-copy > p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .profile-card img { width: min(100%, 260px); }
}

.page-hero--team .page-hero__inner { max-width: var(--shell); }
.profile-portrait { align-self: start; }
.profile-details { display: grid; grid-template-columns: repeat(2, max-content); gap: 1.5rem; margin-top: 1.25rem; }
.profile-details p { margin: 0; color: var(--ink-soft); }
@media (max-width: 600px) {
  .profile-details { grid-template-columns: 1fr; gap: .9rem; }
}
