:root {
  --bg: #0b1220;
  --bg-2: #0f1830;
  --ink: #eaf0ff;
  --muted: #a9b5d9;
  --brand: #6aa1ff;
  --brand-2: #b78cff;
  --accent: #2dd4bf;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}

.container {
  width: min(var(--max), 100%);
  margin: auto;
  justify-content: center;
}
.row {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.spread {
  justify-content: space-between;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  --webkit-backdrop-filter: blur(8px);
  background: rgba(11, 18, 32, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 5px;
  padding-bottom: 5px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-name {
  font-weight: 700;
}
.top-nav a {
  color: var(--muted);
  margin-left: 1rem;
  text-decoration: none;
}
.top-nav a:hover {
  color: var(--ink);
}

.hero {
  text-align: center;
  padding: 5rem 1rem;
}
.headline {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
}
.subhead {
  color: var(--muted);
  margin-top: 0.5rem;
}
.cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.cta {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 0.8rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(106, 161, 255, 0.4);
}

.brand-heading {
  justify-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    90deg,
    rgba(157, 153, 18, 0.25),
    rgba(54, 25, 218, 0) 70%
  );
  padding-bottom: 5px;
  padding-top: 5px;
}

.brands {
  display: flex;
  flex-direction: column;
}
.brand {
  text-decoration: none;
  color: inherit;
  padding-right: 5px;
  padding-left: 5px;
}
.brand-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: clamp(2rem, 6vw, 4rem) 0;
}
.copy {
  max-width: 70ch;
}
/* 
/* Alternating direction */
.brands .brand:nth-child(even) .brand-inner {
  flex-direction: row-reverse;
  text-align: right;
  padding-right: 5px;
  padding-left: 5px;
}

/* ---------------------------------------------------------------------------- */
/* 1) Inside a brand section, DO NOT treat inner .brands as flex containers */
.brand .brand-inner .brands {
  display: block;
}

/* 2) Center the heading line for both sections */
.brand .brand-inner .brand-legal-heading,
.brand .brand-inner .brand-uk-heading {
  text-align: center;
}

/* 3) Normalize the description to the same column (centered text, fixed measure) */
.brand .brand-inner .brand-legal-description,
.brand .brand-inner .brand-uk-description {
  display: block;
  max-width: 72ch; /* consistent readable width */
  margin: 6px auto 14px; /* center in band */
  text-align: justify; /* was right on UK */
}

/* 4) Core Services block: same left edge and measure for both */
.brand .brand-inner .brand-legal-services,
.brand .brand-inner .brand-uk-services {
  max-width: 72ch;
  margin: 0 auto;
  text-align: left; /* bullets + labels left-aligned */
}

/* Label before the list */
.brand .brand-inner .services-heading-legal,
.brand .brand-inner .services-heading-uk {
  display: block;
  font-weight: 700;
  margin: 8px 0 4px;
  text-align: justify;
}

/* List styling identical across sections */
.brand .brand-inner .brand-legal-services ul,
.brand .brand-inner .brand-uk-services ul {
  list-style: disc;
  list-style-position: outside;
  margin: 0 0 10px 1.25rem; /* bullet indent */
  padding: 0;
}
.brand .brand-inner .brand-legal-services li,
.brand .brand-inner .brand-uk-services li {
  margin: 6px 0;
}

/* 5) Conclusion line: same column, left aligned */
.brand .brand-inner .brand-legal-conclusion,
.brand .brand-inner .brand-uk-conclusion {
  display: block;
  max-width: 72ch;
  margin: 8px auto 0;
  text-align: left;
}

/* 6) CTA: center under the shared column */
.brand .brand-inner .cta {
  display: inline-block;
  margin: 14px auto 0; /* center */
}

.brands .brand:nth-child(odd) .brand-inner {
  flex-direction: row;
  text-align: left;
  padding-right: 5px;
  padding-left: 5px;
}

/* --------------------------------------------- */
/* Default: do NOT center brand sections */
.brands .brand .brand-inner {
  justify-content: flex-start;
}

/* Center ONLY the even sections you mentioned */
.brand-advisors .brand-inner,
.brand-finance .brand-inner {
  justify-content: center;
}

/* If you used a centered text column elsewhere, scope it to those two as well */
.brands .brand .copy {
  margin-inline: 0;
} /* default */
.brand-advisors .copy,
.brand-finance .copy {
  margin-inline: auto;
}

/* Keep your content blocks from inheriting the global `.brands { display:flex }` */
.brands .brand .brand-inner .brands {
  display: block;
}

/* ----------------------------------------------------------
   0) Neutralize accidental flex on inner nodes WITH PRIORITY
   ---------------------------------------------------------- */
.brand .brand-inner .brands {
  display: block !important; /* beat global .brands { display:flex } */
}

/* ----------------------------------------------------------
   1) DEFAULT for all brand sections = NOT centered
   ---------------------------------------------------------- */
.brands .brand .brand-inner {
  justify-content: flex-start !important; /* reset any previous center */
}

/* Keep the text column not auto-centered by default */
.brands .brand .copy {
  margin-inline: 0 !important;
}

/* ----------------------------------------------------------
   2) ONLY EVEN sections (Advisors + Finance) should center
   ---------------------------------------------------------- */
.brand-advisors .brand-inner,
.brand-finance .brand-inner {
  justify-content: center !important;
}

/* Their text column may be centered within the band */
.brand-advisors .copy,
.brand-finance .copy {
  margin-inline: auto !important;
}

/* Headings centered for these two */
.brand-advisors-heading,
.brand-finance-heading {
  text-align: center !important;
}

/* Descriptions: same width & centered text for these two */
.brand-advisors-description,
.brand-finance-description {
  display: block !important;
  max-width: 72ch !important;
  margin: 6px auto 14px !important;
  text-align: justify !important;
}

/* Core Services blocks: same left-aligned column for both */
.brand-advisors-services,
.brand-finance-services {
  max-width: 72ch !important;
  margin: 0 auto !important;
  text-align: left !important;
}

.services-heading-advisors,
.services-heading-finance {
  display: block !important;
  font-weight: 700 !important;
  margin: 8px 0 4px !important;
  text-align: left !important;
}

.brand-advisors-services ul,
.brand-finance-services ul {
  list-style: disc;
  list-style-position: outside;
  margin: 0 0 10px 1.25rem !important;
  padding: 0 !important;
}

.brand-advisors-services li,
.brand-finance-services li {
  margin: 6px 0 !important;
}

/* CTA centered under the shared column for these two */
.brand-advisors .cta,
.brand-finance .cta {
  display: inline-block !important;
  margin: 14px auto 0 !important;
}

/* ----------------------------------------------------------
   3) ODD sections (everything else) – keep left flow
   ---------------------------------------------------------- */
.brands .brand:not(.brand-advisors):not(.brand-finance) .brand-inner {
  justify-content: flex-start !important;
}

.brands .brand:not(.brand-advisors):not(.brand-finance) .copy {
  margin-inline: 0 !important; /* do NOT center the column */
  text-align: left; /* normal left flow */
}

/* ---------------------------------------------------- */
/* === Even bands: Advisors (2) + Finance (4) === */

/* Center the inner wrapper so the section doesn't hug the left edge */
.brands .brand:nth-child(even) .brand-inner {
  justify-content: center;
}

/* Neutralize the global `.brands { display:flex }` inside content */
.brands .brand:nth-child(even) .brand-inner .brands {
  display: block;
}

/* Headings centered for both sections */
.brand-advisors-heading,
.brand-finance-heading {
  text-align: center;
}

/* Descriptions: same readable measure, centered */
.brand-advisors-description,
.brand-finance-description {
  display: block;
  max-width: 72ch; /* consistent line length */
  margin: 6px auto 14px; /* center within band */
  text-align: justify;
}

/* Core Services blocks: same column, left-aligned */
.brand-advisors-services,
.brand-finance-services {
  max-width: 72ch;
  margin: 0 auto; /* same column as description */
  text-align: left;
}

/* “Core Services:” label */
.services-heading-advisors,
.services-heading-finance {
  display: block;
  font-weight: 700;
  margin: 8px 0 4px;
  text-align: left;
}

/* Bullet lists: identical styling across both sections */
.brand-advisors-services ul,
.brand-finance-services ul {
  list-style: disc;
  list-style-position: outside;
  margin: 0 0 10px 1.25rem; /* indent so bullets align with text column */
  padding: 0;
}
.brand-advisors-services li,
.brand-finance-services li {
  margin: 6px 0;
}

/* CTA centered under the shared column */
.brand-advisors .cta,
.brand-finance .cta {
  display: inline-block;
  margin: 14px auto 0;
}

/* Mobile polish: a bit more side padding on narrow screens */
@media (max-width: 860px) {
  .brand-advisors-heading,
  .brand-finance-heading {
    padding-inline: 8px;
  }
  .brand-advisors-description,
  .brand-finance-description,
  .brand-advisors-services,
  .brand-finance-services {
    padding-inline: 12px;
  }
}

/* Gradient backgrounds */
.brand-legal {
  background: linear-gradient(
    90deg,
    rgba(42, 72, 155, 0.25),
    rgba(42, 72, 155, 0) 70%
  );
}

.brand-advisors {
  background: linear-gradient(
    270deg,
    rgba(64, 160, 255, 0.25),
    rgba(64, 160, 255, 0) 70%
  );
  padding-right: 10px;
  padding-left: 10px;
}
.brand-uk {
  background: linear-gradient(
    90deg,
    rgba(183, 140, 255, 0.25),
    rgba(183, 140, 255, 0) 70%
  );
  padding-right: 10px;
  padding-left: 10px;
}
.brand-financials {
  background: linear-gradient(
    270deg,
    rgba(45, 212, 191, 0.25),
    rgba(45, 212, 191, 0) 70%
  );
  padding-right: 10px;
  padding-left: 10px;
}

/* Hover animation */
.brand:hover .brand-inner {
  transform: translateX(4px);
  transition: transform 0.3s ease;
}

.brand h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.brand p {
  color: var(--muted);
  margin: 0;
}
.brand-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--ink);
}

/* Responsive stacking */
@media (max-width: 860px) {
  .brand-inner {
    flex-direction: column !important;
    text-align: left;
  }
}

.site-footer {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}
.mail {
  color: rgba(255, 255, 255, 0.9) !important;
}

.contact {
  padding-left: 5px;
  padding-right: 5px;
}
@media (max-width: 860px) {
  .contact {
    padding-left: 16px;
    padding-right: 16px;
  }
  .contact .desc {
    padding-left: 8px;
    padding-right: 8px;
  } /* extra for the paragraph */
  .contact ul {
    margin-left: 1rem;
    padding-left: 1rem;
  } /* keep bullets readable */
}

.contact .heading {
  text-align: center;
}
.contact .desc {
  display: flex;
  text-align: justify;
  align-items: center;
}
/* Contact list: show bullets consistently */
.contact ul,
.contact .points {
  display: block; /* restore normal list behavior */
  list-style: disc; /* bullets */
  list-style-position: outside; /* classic outside bullets */
  margin: 0.5rem 0 0 1.25rem; /* left indent so bullets are visible */
  padding-left: 1.1rem;
}

.contact li {
  margin: 0.35rem 0;
}

@media (max-width: 860px) {
  .contact ul,
  .contact .points {
    margin-left: 1rem;
    padding-left: 1rem;
  }
}

/* Background blobs */
.bg-ornament {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.blob {
  position: absolute;
  filter: blur(50px);
  opacity: 0.55;
}
.blob-a {
  top: -80px;
  left: -60px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #6aa1ff, transparent 60%);
}
.blob-b {
  bottom: -120px;
  right: -90px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #b78cff, transparent 60%);
}

/* --- Spacing boost for the animation section (About) --- */
.about {
  padding-top: 5px;
  padding-bottom: 5px;
  padding-right: 10px;
  padding-left: 10px;
  overflow: visible;
  position: relative;
}
.about::before,
.about::after {
  content: " ";
  position: relative;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
  z-index: 5;
}
.about::before {
  top: -40px;
  background: linear-gradient(
    to bottom,
    rgba(11, 18, 32, 1),
    rgba(11, 18, 32, 0)
  );
}
.about::after {
  bottom: -40px;
  background: linear-gradient(to top, rgba(11, 18, 32, 1), rgba(11, 18, 32, 0));
  border: #ffffff;
  border-radius: 500px;
}

.about-visual {
  min-height: 420px;
}

@media (max-width: 860px) {
  .about {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .about-visual {
    min-height: 420px;
    min-width: 420px;
  }
}

/* === About Visual: layout === */
.about {
  position: relative;
  z-index: 2;
  overflow: visible; /* allow rings to render fully */
}
.about .grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

@media (min-width: 861px) {
  .about {
    padding-top: 20px;
  }
  .about .grid-2 > :nth-child(1) {
    grid-column: 1;
  }
  .about-visual {
    grid-column: 2;
    justify-self: auto;
    margin-left: 0;
    margin-top: 24px;
  }
}

/* --- Core glow (center) --- */
.about-visual {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-width: auto;
}
.about-visual .pulse {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 35%,
    rgba(190, 160, 255, 0.95),
    rgba(190, 160, 255, 0.15) 55%,
    transparent 65%
  );
  box-shadow: 0 0 60px 20px rgba(183, 140, 255, 0.18),
    0 0 120px 30px rgba(56, 87, 141, 0.12) inset;
  filter: blur(0.4px);
  animation: breathe 3.6s ease-in-out infinite, floatY 8s ease-in-out infinite;
  z-index: 2;
}

/* --- MULTI-ORBIT CIRCULAR TEXT (SVG) --- */
.orbit-system {
  width: clamp(280px, 48vw, 540px);
  height: auto;
  z-index: 3;
}

/* style for text following the path */
.orbit-label {
  font: 700 18px/1 "Inter", system-ui, sans-serif;
  letter-spacing: 2px;
  fill: rgba(242, 244, 248, 0.95);
  text-transform: uppercase;
}

/* each orbit group revolves around the SVG center */
.orbit {
  transform-origin: 200px 200px;
}
.orbit-1 {
  animation: orbit-spin 16s linear infinite;
}
.orbit-2 {
  animation: orbit-spin 22s linear infinite reverse;
}
.orbit-3 {
  animation: orbit-spin 28s linear infinite;
}
.orbit-4 {
  animation: orbit-spin 36s linear infinite reverse;
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

/* keyframes for the glow */
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.95;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* --- Responsive tuning for orbits --- */
@media (max-width: 1200px) {
  .orbit-label {
    font-size: 16px;
    letter-spacing: 1.8px;
  }
  .about-visual .pulse {
    width: 150px;
    height: 150px;
  }
}
@media (max-width: 860px) {
  .about-visual {
    min-height: 320px;
  }
  .orbit-system {
    width: clamp(240px, 78vw, 320px);
  }
  .orbit-label {
    font-size: 15px;
    letter-spacing: 1.6px;
  }
  .about-visual .pulse {
    width: 140px;
    height: 140px;
  }

  /* mobile: visual below text (single column, centered) */
  .about .grid-2 {
    grid-template-columns: 1fr;
  }
  .about-visual {
    grid-column: auto;
    justify-self: center;
    margin-top: 16px;
  }
}
@media (max-width: 420px) {
  .orbit-system {
    width: clamp(220px, 78vw, 300px);
  }
  .orbit-label {
    font-size: 14px;
    letter-spacing: 1.4px;
  }
  .about-visual .pulse {
    width: 128px;
    height: 128px;
  }
}

/* Reduced motion: keep effect but slow down */
@media (prefers-reduced-motion: reduce) {
  .about-visual .pulse {
    animation: breathe 6s ease-in-out infinite;
  }
  .orbit-1 {
    animation-duration: 40s;
  }
  .orbit-2 {
    animation-duration: 50s;
  }
  .orbit-3 {
    animation-duration: 60s;
  }
  .orbit-4 {
    animation-duration: 70s;
  }
}
/* Outer ring only: smaller font + tighter tracking */
.orbit-4 .orbit-label,
.orbit-label--outer {
  font-size: 14.5px; /* down from 18px */
  letter-spacing: 1.2px; /* down from 2px */
}

@media (min-width: 861px) {
  .orbit-4 .orbit-label,
  .orbit-label--outer {
    font-size: 15.5px;
  }
}
@media (max-width: 420px) {
  .orbit-4 .orbit-label,
  .orbit-label--outer {
    font-size: 13px;
    letter-spacing: 1px;
  }
}

/* --- No clipping & core label --- */
.about::before,
.about::after {
  /* disable fade guards that could cover text */
  display: none;
}
.about {
  /* ensure no cut text on all devices */
  overflow: visible;
}
/* label inside the core */
.about-visual .pulse::after {
  content: "InnerWork Group";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 2px rgba(27, 22, 29, 0.35) !important;
  pointer-events: none;
}
@media (min-width: 861px) {
  .about-visual .pulse::after {
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(27, 22, 29, 0.35);
  }
}

/* -------- Mobile dropdown -------- */
.site-header .container {
  position: relative;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  z-index: 60;
  padding: auto;
}
.menu-toggle .bar {
  height: 3px;
  width: 100%;
  background: var(--ink);
  border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.top-nav {
  display: flex;
  gap: 1rem;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 5px;
  padding-bottom: 5px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .top-nav {
    position: absolute;
    top: 58px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 220px;
    padding: 8px;
    background: rgba(11, 18, 32, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 50;
  }
  .top-nav a {
    display: block;
    padding: 10px 12px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
  }
  .top-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .top-nav.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  .site-header .top-nav:not(.show) {
    gap: 0;
  }
}

/* --- Keep orbit text fully visible on all screens --- */

/* 1) More vertical headroom on larger screens */
@media (min-width: 861px) {
  .about {
    padding-top: 96px; /* was 64–72px → extra room */
    padding-bottom: 120px; /* was 96px */
  }
  .about-visual {
    min-height: 420px; /* was 420px */
  }
}

/* 2) Cap the SVG ring size a bit smaller so it doesn't touch edges */
.orbit-system {
  /* was: clamp(280px, 48vw, 540px) */
  width: clamp(300px, 64vw, 600px);
}

/* Optional: on ultra-wide monitors, keep it modest too */
@media (min-width: 1400px) {
  .orbit-system {
    width: 500px; /* small bump but still safe */
  }
}

/* Preserve mobile placement (visual below text) with a bit more air */
@media (max-width: 860px) {
  .about-visual {
    margin-top: 24px; /* was 16px */
    min-height: 360px; /* was 320px */
  }
}
