:root {
  --bg: #fbf8f3;
  --bg-soft: #f5f0e8;
  --ink: #101c2f;
  --muted: #4a5568;
  --line: #d9d1c5;
  --line-strong: #b9afa2;
  --red: #e85f9e;
  --red-dark: #c93179;
  --lily-pink: #f28ab9;
  --lily-pink-strong: #e85f9e;
  --gold: #e0b15e;
  --blue: #26a8ff;
  --black: #020b1c;
  --footer: #071528;
  --max: 1320px;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

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

.site-header {
  align-items: center;
  background: rgba(5, 6, 6, 0.88);
  display: grid;
  gap: 32px;
  grid-template-columns: auto 1fr auto;
  inset: 0 0 auto;
  min-height: 92px;
  padding: 22px clamp(22px, 3.1vw, 44px);
  position: sticky;
  top: 0;
  transition: box-shadow 180ms ease, background 180ms ease;
  z-index: 20;
}

.site-header.is-scrolled {
  background: rgba(5, 6, 6, 0.96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand,
.footer-brand {
  align-items: center;
  display: inline-flex;
  font-family: var(--serif);
  gap: 10px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1;
  white-space: nowrap;
}

.brand img {
  height: 42px;
  margin-right: 2px;
  object-fit: contain;
  width: 38px;
}

.brand span:first-child,
.footer-brand {
  color: #fff;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.16);
}

.brand span:first-of-type {
  color: #fff;
}

.brand span:last-child {
  color: var(--lily-pink);
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(18px, 3vw, 42px);
  justify-content: center;
}

main {
  background: var(--bg);
}

.site-nav a {
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 15px 0 17px;
}

.site-nav a:hover,
.site-nav a.is-active {
  border-bottom-color: var(--lily-pink);
  color: #fff;
}

.nav-contact-mobile {
  display: none;
}

.button {
  align-items: center;
  background: var(--lily-pink);
  border-radius: 3px;
  color: #1b0611;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  justify-content: center;
  min-height: 48px;
  min-width: 142px;
  padding: 13px 23px;
  transition: background 160ms ease, transform 160ms ease;
}

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

.button span,
.text-link span {
  font-size: 1.45em;
  line-height: 0;
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  padding: 0;
  width: 42px;
}

.nav-toggle span {
  background: #fff;
  display: block;
  height: 2px;
  margin: 7px auto;
  width: 24px;
}

.hero {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(2, 11, 28, 0.96) 0%, rgba(4, 13, 34, 0.82) 45%, rgba(2, 11, 28, 1) 100%),
    radial-gradient(circle at 52% 44%, rgba(242, 138, 185, 0.12), transparent 30%),
    #020b1c;
  color: #fff;
  display: flex;
  justify-content: center;
  margin: 0;
  max-width: none;
  min-height: calc(100vh - 104px);
  overflow: hidden;
  padding: clamp(36px, 5.5vh, 58px) clamp(20px, 5vw, 72px) clamp(36px, 5.5vh, 58px);
  position: relative;
}

.hero-copy {
  max-width: 940px;
  position: relative;
  text-align: center;
  z-index: 2;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
}

h1 {
  color: #fff;
  font-size: clamp(3rem, 5.45vw, 5.85rem);
  letter-spacing: 0;
  line-height: 1.03;
  margin: 0 auto;
  max-width: 980px;
}

h1 span {
  color: var(--lily-pink);
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.55;
  margin: 22px auto 0;
  max-width: 670px;
}

.hero-label,
.scroll-link {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-label {
  margin: 0 auto 18px;
}

.scroll-link {
  display: inline-block;
  margin-top: 34px;
}

.motion-field,
.visual-disc,
.data-stream {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.visual-disc,
.data-stream {
  display: block;
  inset: auto;
  will-change: transform;
}

.visual-disc {
  aspect-ratio: 1;
  border: 1px solid rgba(224, 177, 94, 0.22);
  border-radius: 50%;
  filter: saturate(1.02) drop-shadow(0 30px 40px rgba(0, 0, 0, 0.74));
  left: 0;
  object-fit: cover;
  opacity: 0.68;
  top: 0;
  transform: translate3d(var(--ball-x, 0), var(--ball-y, 0), 0);
  user-select: none;
  width: var(--ball-size, clamp(140px, 38vw, 200px));
}

/* Revert note, 28 Apr 2026:
   previous image settings were ideas 17.6s / clamp(460px, 42vw, 720px),
   law 20.8s / clamp(420px, 38vw, 680px), patents 19.2s / clamp(360px, 32vw, 580px),
   with two-point drift keyframes. */
.visual-disc-ideas {
  --ball-size: clamp(78px, 34vw, 190px);
}

.visual-disc-law {
  opacity: 0.62;
  --ball-size: clamp(76px, 32vw, 180px);
}

.visual-disc-patents {
  opacity: 0.46;
  --ball-size: clamp(68px, 28vw, 160px);
}

.visual-disc-books {
  opacity: 0.58;
  --ball-size: clamp(64px, 27vw, 150px);
}

.visual-disc-law-us {
  opacity: 0.54;
  --ball-size: clamp(72px, 30vw, 165px);
}

.data-stream {
  background:
    repeating-linear-gradient(90deg, rgba(38, 168, 255, 0.34) 0 2px, transparent 2px 28px),
    radial-gradient(circle, rgba(242, 138, 185, 0.42) 0 2px, transparent 3px);
  background-size: auto, 28px 28px;
  height: 220px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 78%, transparent);
  opacity: 0.42;
  width: min(48vw, 700px);
}

.data-stream-left {
  animation: streamFlow 15s linear infinite;
  left: 0;
  top: 42vh;
}

.data-stream-right {
  animation: streamFlow 18s linear infinite reverse;
  right: 0;
  top: 25vh;
  transform: rotate(180deg);
}

@keyframes streamFlow {
  from { background-position: 0 0, 0 0; }
  to { background-position: 220px 0, 112px 0; }
}

@media (min-width: 681px) {
  .visual-disc-ideas {
    --ball-size: clamp(230px, 21vw, 360px);
  }

  .visual-disc-law {
    --ball-size: clamp(210px, 19vw, 340px);
  }

  .visual-disc-patents {
    --ball-size: clamp(180px, 16vw, 290px);
  }

  .visual-disc-books {
    --ball-size: clamp(170px, 14vw, 250px);
  }

  .visual-disc-law-us {
    --ball-size: clamp(190px, 17vw, 300px);
  }
}

@media (min-width: 681px) and (max-width: 1100px) {
  .visual-disc-ideas {
    --ball-size: clamp(130px, 20vw, 215px);
  }

  .visual-disc-law {
    --ball-size: clamp(120px, 19vw, 200px);
  }

  .visual-disc-patents {
    --ball-size: clamp(105px, 17vw, 180px);
  }

  .visual-disc-books {
    --ball-size: clamp(96px, 15vw, 165px);
  }

  .visual-disc-law-us {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .visual-disc,
  .data-stream {
    animation: none;
  }
}

.intro,
.services,
.growth,
.content-section,
.contact-band {
  border-top: 1px solid rgba(16, 28, 47, 0.08);
  scroll-margin-top: 132px;
}

.intro,
.content-section {
  background: var(--bg);
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(280px, 420px) 1fr;
  margin: 0;
  max-width: none;
  padding: 50px clamp(22px, 4vw, 64px);
}

.intro-copy,
.content-section > div:first-child {
  border-left: 1px solid var(--red);
  padding-left: clamp(24px, 4vw, 52px);
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
}

.intro-copy p,
.prose p,
.prose li {
  color: #263246;
  font-size: 1rem;
  line-height: 1.45;
}

.intro-copy p,
.prose p {
  margin: 14px 0 18px;
}

.text-link {
  align-items: center;
  border-bottom: 1px solid rgba(191, 6, 24, 0.35);
  color: var(--red);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 14px;
  padding-bottom: 6px;
}

.principles,
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.principles {
  align-items: center;
}

.principles article,
.service-grid article {
  border-left: 1px solid var(--line);
  min-width: 0;
  text-align: center;
}

.principles article {
  padding: 22px 24px;
}

.principles svg,
.service-grid svg {
  height: 56px;
  margin-bottom: 18px;
  width: 56px;
}

.principles svg *,
.service-grid svg * {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.principles .red-stroke,
.service-grid .red-stroke {
  stroke: var(--red);
}

.principles .red-fill {
  fill: #fff;
  stroke: var(--red);
}

h3 {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
}

.section-label {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.services,
.growth {
  background: var(--bg-soft);
  padding: 34px clamp(22px, 4vw, 64px) 24px;
}

.section-heading {
  align-items: start;
  display: flex;
  justify-content: space-between;
  margin: 0 auto 22px;
  max-width: var(--max);
}

.service-grid {
  grid-template-columns: repeat(5, 1fr);
  margin: 0 auto;
  max-width: var(--max);
}

.service-grid-three {
  grid-template-columns: repeat(3, 1fr);
}

.service-grid article {
  padding: 20px clamp(14px, 2vw, 30px) 10px;
}

.service-grid article:first-child,
.principles article:first-child {
  border-left: 0;
}

.service-grid p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 10px auto 14px;
  max-width: 330px;
}

.service-grid article > a {
  color: var(--red);
  display: inline-block;
  font-size: 1.6rem;
  line-height: 1;
}

.growth {
  padding-bottom: 10px;
}

.growth-strip {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(6, 1fr);
  margin: 0 auto;
  max-width: var(--max);
}

.growth-strip span {
  border-left: 1px solid var(--line);
  color: #273344;
  display: flex;
  font-size: 0.95rem;
  font-weight: 600;
  justify-content: center;
  min-height: 54px;
  padding: 14px 18px;
  text-align: center;
}

.growth-strip span:first-child {
  border-left: 0;
}

.growth-strip span::before {
  color: var(--red);
  content: "✦";
  margin-right: 14px;
}

.page-hero {
  background: var(--bg);
  color: var(--ink);
  padding: clamp(58px, 8vw, 104px) clamp(22px, 5vw, 72px) clamp(38px, 6vw, 72px);
  text-align: left;
}

.page-hero .hero-label {
  color: var(--red);
  margin-left: 0;
  margin-right: 0;
}

.page-hero-small {
  padding-bottom: clamp(54px, 8vw, 86px);
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(3rem, 6vw, 6rem);
  margin: 0;
  max-width: 980px;
}

.prose {
  max-width: 850px;
}

.prose h3 {
  color: var(--ink);
  font-size: 1.05rem;
  margin: 28px 0 8px;
}

.prose a {
  border-bottom: 1px solid rgba(232, 95, 158, 0.35);
  color: var(--red);
  font-weight: 700;
}

.prose ul,
.publication-list {
  color: #263246;
  margin: 16px 0 0;
  padding-left: 22px;
}

.prose li,
.publication-list li {
  margin: 10px 0;
}

.contact-band {
  align-items: center;
  background: #050606;
  border: 1px solid var(--red);
  color: #fff;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr minmax(260px, 420px) auto;
  margin: 0 auto 10px;
  max-width: calc(var(--max) - 128px);
  padding: 24px 28px;
}

.contact-band h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.55rem);
}

.contact-band p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.contact-band p a {
  border-bottom: 1px solid rgba(242, 138, 185, 0.62);
  color: #fff;
  font-weight: 700;
}

.mail-fallback {
  background: #fff;
  border: 1px solid rgba(16, 28, 47, 0.16);
  border-left: 4px solid var(--red);
  bottom: 24px;
  box-shadow: 0 18px 50px rgba(2, 11, 28, 0.22);
  color: var(--ink);
  font-size: 0.95rem;
  left: 50%;
  max-width: min(520px, calc(100vw - 40px));
  padding: 14px 18px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 40;
}

.mail-fallback strong {
  color: var(--red-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.site-footer {
  background: var(--footer);
  color: #fff;
  padding: 28px clamp(22px, 4vw, 64px) 20px;
}

.footer-grid,
.footer-bottom {
  margin: 0 auto;
  max-width: var(--max);
}

.footer-grid {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: 1.1fr 1.8fr 1.1fr 1.5fr;
}

.footer-brand {
  color: #fff;
}

address {
  font-style: normal;
}

.site-footer address,
.site-footer div,
.site-footer a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.55;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 16px;
}

.footer-bottom span:last-child {
  display: flex;
  gap: 34px;
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 150px;
  }

  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .button-top {
    display: none;
  }

  .nav-contact-mobile {
    display: block;
  }

  .site-nav {
    background: #050606;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
    padding: 4px 0 12px;
  }

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

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .content-section {
    grid-template-columns: 1fr;
  }

  .principles,
  .service-grid,
  .growth-strip,
  .contact-band,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid article:nth-child(3),
  .growth-strip span:nth-child(3),
  .principles article:nth-child(3) {
    border-left: 0;
  }

  .contact-band {
    max-width: calc(100% - 44px);
  }
}

@media (min-width: 981px) and (max-height: 700px) {
  .hero {
    padding-bottom: 24px;
    padding-top: 24px;
  }

  h1 {
    font-size: clamp(3rem, 4.7vw, 4.85rem);
    line-height: 1.01;
    max-width: 900px;
  }

  .hero-label {
    margin-bottom: 12px;
  }

  .hero-copy p {
    margin-top: 14px;
  }

  .scroll-link {
    margin-top: 20px;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 96px;
  }

  .site-header {
    min-height: 72px;
    padding: 14px 20px;
  }

  .site-nav {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    padding: 12px 0;
  }
  .hero {
    gap: 22px;
    min-height: 588px;
    padding: 72px 20px 58px;
  }

  h1 {
    font-size: clamp(2.65rem, 12vw, 3.85rem);
    max-width: 100%;
  }

  .hero-copy p {
    margin: 20px 0 24px;
  }

  .hero-label {
    margin-bottom: 22px;
  }

  .scroll-link {
    margin-top: 30px;
  }

  .data-stream {
    opacity: 0.28;
    width: 82vw;
  }

  .visual-disc {
    opacity: 0.36;
  }

  .visual-disc-ideas {
    --ball-size: 42vw;
    transform: translate3d(3vw, 4vh, 0);
  }

  .visual-disc-law {
    --ball-size: 39vw;
    transform: translate3d(48vw, 14vh, 0);
  }

  .visual-disc-patents {
    --ball-size: 36vw;
    transform: translate3d(12vw, 48vh, 0);
  }

  .visual-disc-books,
  .visual-disc-law-us {
    display: none;
  }

  .intro,
  .services,
  .growth,
  .content-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .intro-copy,
  .content-section > div:first-child {
    padding-left: 24px;
  }

  .section-heading {
    display: block;
  }

  .section-heading .text-link {
    margin-top: 12px;
  }

  .principles,
  .service-grid,
  .growth-strip,
  .contact-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .principles article,
  .service-grid article,
  .growth-strip span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .principles article:first-child,
  .service-grid article:first-child,
  .growth-strip span:first-child {
    border-top: 0;
  }

  .contact-band {
    margin: 0 20px 10px;
    max-width: none;
    padding: 22px;
  }

  .site-footer nav,
  .footer-bottom,
  .footer-bottom span:last-child {
    display: grid;
    gap: 12px;
  }
}
