:root {
  --navy: #081625;
  --night: #050b14;
  --ink: #0a1a29;
  --paper: #fffdf9;
  --white: #ffffff;
  --aqua: #62d7dc;
  --aqua-deep: #20aeb8;
  --pink: #f49ac2;
  --pink-hot: #ee5ca8;
  --lavender: #bbb3e8;
  --blue: #3562b5;
  --peach: #ffc3ad;
  --lime: #c7ea9b;
  --muted: #60707d;
  --line: rgba(8, 22, 37, 0.16);
  --container: 1180px;
  --shadow: 0 20px 50px rgba(6, 22, 35, 0.10);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.65) 0,
    rgba(255,255,255,.65) 1px,
    transparent 1px,
    transparent 4px
  );
}

a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }

::selection {
  background: var(--pink);
  color: var(--night);
}

:focus-visible {
  outline: 2px solid var(--pink-hot);
  outline-offset: 4px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* ---------------------------------------------------------
   HEADER — restrained 1985 nightclub / Art Deco chrome
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 11, 20, 0.95);
  border-bottom: 1px solid rgba(98, 215, 220, 0.55);
  box-shadow: 0 8px 30px rgba(0,0,0,.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  height: 2px;
}

.site-header::before {
  left: 0;
  width: 27%;
  background: var(--aqua);
  box-shadow: 0 0 14px rgba(98,215,220,.55);
}

.site-header::after {
  right: 0;
  width: 12%;
  background: var(--pink);
  box-shadow: 0 0 14px rgba(244,154,194,.5);
}

.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-width: 0;
}

.logo {
  color: var(--aqua);
  font-family: "Limelight", Georgia, serif;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(98,215,220,.2);
}

.company-type {
  color: #f2d9e7;
  font-family: "Josefin Sans", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}

.main-nav a {
  position: relative;
  padding: 11px 0 9px;
  color: #f9f8f4;
  font-family: "Josefin Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  transition: color .2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 3px;
  height: 2px;
  background: linear-gradient(90deg, var(--aqua), var(--pink));
  transition: left .2s ease, right .2s ease;
}

.main-nav a:hover { color: var(--pink); }
.main-nav a:hover::after { left: 0; right: 0; }

/* ---------------------------------------------------------
   HOME HERO — Miami at night, graphic title-card treatment
   --------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 112px 0 132px;
  background:
    radial-gradient(circle at 76% 27%, rgba(98,215,220,.18), transparent 19rem),
    radial-gradient(circle at 88% 64%, rgba(244,154,194,.18), transparent 24rem),
    linear-gradient(138deg, #061321 0%, #081725 47%, #11152d 100%);
  color: #fff;
}

/* pastel architectural blocks */
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: min(44vw, 610px);
  height: min(54vh, 560px);
  right: -2vw;
  top: 9%;
  opacity: .96;
  background:
    linear-gradient(var(--pink), var(--pink)) 18% 15% / 74% 11% no-repeat,
    linear-gradient(var(--aqua), var(--aqua)) 44% 35% / 63% 39% no-repeat,
    linear-gradient(var(--lavender), var(--lavender)) 7% 76% / 48% 9% no-repeat,
    linear-gradient(var(--peach), var(--peach)) 88% 83% / 21% 18% no-repeat;
  filter: saturate(.92);
  transform: skewY(-2deg);
}

/* original CSS-only palms / low skyline, not copied show artwork */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 34%;
  opacity: .94;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 420'%3E%3Cg fill='%23030910'%3E%3Cpath d='M0 350h100v-75h62v75h76v-116h70v116h92v-67h48v67h86v-98h62v98h75v-145h82v145h78v-83h60v83h95v-113h68v113h85v-76h55v76h82v-128h74v128h120v70H0z'/%3E%3Cpath d='M179 350c10-75 20-136 29-188l15 3c-9 55-18 117-24 185z'/%3E%3Cpath d='M213 167c-31-15-61-14-91-1 25-29 54-39 89-30-20-26-42-39-69-43 34-10 62 1 83 25 1-31 12-56 34-75-6 34-5 60 6 82 22-22 47-34 77-34-25 15-43 34-55 56 29-5 55 0 79 15-33-3-60 2-81 17z'/%3E%3Cpath d='M1330 350c-8-67-17-121-27-172l-15 3c10 52 18 109 23 169z'/%3E%3Cpath d='M1297 182c29-15 58-16 86-4-23-26-50-35-82-24 18-27 38-42 63-48-32-6-57 7-74 34-4-30-17-54-40-71 9 32 11 57 3 80-23-19-49-28-78-25 26 11 46 27 60 47-29-2-55 6-76 23 32-6 58-4 81 8z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1040px;
}

.hero-content::before {
  content: "";
  display: block;
  width: 112px;
  height: 8px;
  margin-bottom: 27px;
  background: linear-gradient(90deg, var(--aqua) 0 68%, var(--pink) 68% 100%);
}

.hero h1 {
  max-width: 960px;
  color: #fff;
  font-family: "Limelight", Georgia, serif;
  font-size: clamp(52px, 6.7vw, 91px);
  line-height: .94;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow:
    3px 0 0 rgba(98,215,220,.9),
    -3px 0 0 rgba(244,154,194,.6),
    0 8px 24px rgba(0,0,0,.35);
}

.tagline {
  max-width: 670px;
  margin-top: 34px;
  color: #f8eaf1;
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.45;
  font-weight: 300;
  letter-spacing: .025em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.research-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 23px 0 25px;
  border: 1px solid var(--aqua);
  background: rgba(5,11,20,.66);
  color: #fff;
  font-family: "Josefin Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  box-shadow: 7px 7px 0 rgba(244,154,194,.74);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.research-button .arrow {
  color: var(--aqua);
  font-size: 20px;
  line-height: 1;
}

.research-button:hover {
  background: var(--aqua);
  color: var(--night);
  transform: translate(3px, 3px);
  box-shadow: 4px 4px 0 rgba(244,154,194,.9);
}

.research-button:hover .arrow { color: var(--night); }

/* ---------------------------------------------------------
   SHARED SECTIONS — pastel South Beach, no earth tones
   --------------------------------------------------------- */
.section-shell {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.section-shell:nth-of-type(2) { background: #fffdf9; }
.section-shell:nth-of-type(3) { background: #edfafa; }
.section-shell:nth-of-type(4) { background: #fff2f7; }
.section-shell:nth-of-type(5) { background: #f4f1ff; }

.section-shell::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(23vw, 280px);
  height: 5px;
  background: var(--aqua);
}

.section-shell::after {
  content: "";
  position: absolute;
  top: -1px;
  left: min(23vw, 280px);
  width: min(8vw, 92px);
  height: 5px;
  background: var(--pink);
}

.section { padding: 108px 0; }

.section-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 72px;
  align-items: start;
}

.section-heading,
.topic-label {
  color: var(--aqua-deep);
  font-family: "Josefin Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-heading::after,
.topic-label::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--pink) 0 48%, var(--aqua) 48% 100%);
}

.section-copy { max-width: 820px; }

.section-copy > p {
  color: #415260;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.68;
}

.section-copy > p + p { margin-top: 28px; }
.section-copy strong { color: var(--ink); font-weight: 700; }

/* Research overview: editorial pastel panels */
.research-copy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.research-copy p {
  position: relative;
  min-height: 292px;
  padding: 35px 31px 38px;
  border: 1px solid rgba(8,22,37,.1);
  color: #3c4e5b;
  font-size: 16px;
  line-height: 1.76;
  box-shadow: var(--shadow);
}

.research-copy p:nth-child(1) { background: #edfafa; border-top: 7px solid var(--aqua); }
.research-copy p:nth-child(2) { background: #fff1f7; border-top: 7px solid var(--pink); }
.research-copy p:nth-child(3) { background: #f2efff; border-top: 7px solid var(--lavender); }
.research-copy strong { color: var(--ink); font-weight: 700; }

/* Editorial splits */
.vision-grid,
.meaning-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: start;
}

.vision-title,
.meaning-title {
  color: var(--ink);
  font-family: "Limelight", Georgia, serif;
  font-size: clamp(39px, 4vw, 58px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.vision-title::before,
.meaning-title::before {
  content: "";
  display: block;
  width: 78px;
  height: 8px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--aqua) 0 61%, var(--pink) 61% 100%);
}

.vision-copy,
.meaning-copy {
  color: #455764;
  font-size: 18px;
  line-height: 1.82;
}

.meaning-copy p + p { margin-top: 24px; }
.meaning-copy strong { color: var(--ink); font-weight: 700; }

/* Applications: pastel Deco blocks */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.application-item {
  position: relative;
  min-height: 280px;
  padding: 35px 35px 38px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid rgba(8,22,37,.12);
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(12,34,49,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.application-item:nth-child(1) { background: #e8f9f9; border-left: 10px solid var(--aqua); }
.application-item:nth-child(2) { background: #fff0f7; border-left: 10px solid var(--pink); }
.application-item:nth-child(3) { background: #f1efff; border-left: 10px solid var(--lavender); }
.application-item:nth-child(4) { background: #eef4ff; border-left: 10px solid #7aa8e8; }

.application-item::before {
  content: "";
  position: absolute;
  right: -55px;
  top: -55px;
  width: 160px;
  aspect-ratio: 1;
  border: 1px solid rgba(8,22,37,.12);
  border-radius: 50%;
}

.application-item::after {
  content: "";
  position: absolute;
  right: 36px;
  top: 36px;
  width: 55px;
  height: 7px;
  background: currentColor;
  opacity: .16;
}

.application-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(12,34,49,.13);
}

.application-item p {
  position: relative;
  z-index: 1;
  max-width: 510px;
  color: #3d4f5d;
  font-size: 17px;
  line-height: 1.68;
}

.application-item strong {
  display: block;
  margin-bottom: 13px;
  color: var(--ink);
  font-family: "Josefin Sans", sans-serif;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   CONTACT — glossy night exterior / neon accent
   --------------------------------------------------------- */
.contact {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(98,215,220,.08), transparent 27%),
    radial-gradient(circle at 82% 30%, rgba(244,154,194,.16), transparent 24rem),
    #06111e;
  color: #fff;
  border-top: 0;
}

.contact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 37%;
  height: 8px;
  background: var(--aqua);
}

.contact::after {
  content: "";
  position: absolute;
  left: 37%;
  top: 0;
  width: 14%;
  height: 8px;
  background: var(--pink);
}

.contact-inner {
  position: relative;
  z-index: 1;
  padding: 104px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 70px;
}

.contact h2 {
  max-width: 700px;
  color: var(--aqua);
  font-family: "Limelight", Georgia, serif;
  font-size: clamp(54px, 7vw, 90px);
  line-height: .96;
  font-weight: 400;
  letter-spacing: .035em;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(244,154,194,.78);
}

.contact-details {
  flex: 0 1 430px;
  display: grid;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 30px;
  padding: 0 0 11px;
  border-bottom: 1px solid rgba(98,215,220,.45);
}

.contact-label {
  color: var(--pink);
  font-family: "Josefin Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.contact-value {
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
  text-align: right;
}

.contact-placeholder { color: #dce9ed; }

.site-footer {
  background: #040a11;
  color: #9badb8;
  border-top: 1px solid rgba(244,154,194,.3);
}

.footer-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-name {
  color: var(--aqua);
  font-family: "Limelight", Georgia, serif;
  font-size: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   LANDING PAGES
   --------------------------------------------------------- */
.breadcrumb {
  position: relative;
  padding: 17px 0 15px;
  border-bottom: 1px solid rgba(98,215,220,.22);
  background: #07111d;
  color: #9bb0bd;
  font-family: "Josefin Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.breadcrumb a { color: var(--aqua); }
.breadcrumb a:hover { color: var(--pink); }

.subpage-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 110px 0 105px;
  border-bottom: 0;
  background:
    radial-gradient(circle at 86% 34%, rgba(98,215,220,.16), transparent 20rem),
    linear-gradient(135deg, #07131f 0%, #0a1927 58%, #14162c 100%);
  color: #fff;
}

.subpage-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -8%;
  top: 13%;
  width: min(47vw, 620px);
  height: 62%;
  background:
    linear-gradient(var(--aqua),var(--aqua)) 6% 2% / 82% 24% no-repeat,
    linear-gradient(var(--pink),var(--pink)) 38% 49% / 58% 19% no-repeat,
    linear-gradient(var(--lavender),var(--lavender)) 13% 88% / 47% 10% no-repeat;
  opacity: .9;
  transform: skewY(-3deg);
}

.subpage-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 7%;
  bottom: -90px;
  width: 270px;
  aspect-ratio: 1;
  border: 26px solid rgba(255,255,255,.08);
  border-radius: 50%;
}

.subpage-hero .eyebrow {
  margin-bottom: 26px;
  color: #07131f;
  width: fit-content;
  padding: 6px 10px 5px;
  border-left: 5px solid var(--pink);
  background: var(--aqua);
  font-family: "Josefin Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.subpage-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 980px;
  color: #fff;
  font-family: "Limelight", Georgia, serif;
  font-size: clamp(50px, 6vw, 82px);
  line-height: .99;
  font-weight: 400;
  letter-spacing: .018em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 3px 0 0 rgba(98,215,220,.76), -3px 0 0 rgba(244,154,194,.5);
}

.subpage-intro {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-top: 34px;
  color: #eef5f6;
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.58;
  font-weight: 300;
}

.subpage-intro strong { color: #fff; font-weight: 600; }

.topic-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 72px;
  align-items: start;
}

.topic-copy {
  max-width: 830px;
  color: #455764;
  font-size: 18px;
  line-height: 1.82;
}

.topic-copy p + p { margin-top: 26px; }
.topic-copy strong { color: var(--ink); }

.related-summary {
  max-width: 860px;
  color: #405360;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.76;
}

.related-summary a {
  color: #167f88;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color .18s ease, background .18s ease;
}

.related-summary a:hover {
  color: #b13375;
  background: rgba(244,154,194,.11);
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .container { width: min(100% - 32px, var(--container)); }

  .navbar { min-height: 72px; gap: 18px; }
  .company-type { display: none; }

  .main-nav {
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { font-size: 12px; white-space: nowrap; }

  .hero { min-height: auto; padding: 105px 0 122px; }
  .hero::before { right: -14%; opacity: .68; }
  .hero::after { height: 29%; }
  .hero h1 { font-size: clamp(47px, 10.5vw, 72px); }

  .section { padding: 82px 0; }

  .section-grid,
  .topic-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .research-copy { grid-template-columns: 1fr; }
  .research-copy p { min-height: 0; }

  .vision-grid,
  .meaning-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .applications-grid { grid-template-columns: 1fr; }
  .application-item { min-height: 220px; }

  .contact-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 48px;
    padding: 82px 0;
  }

  .contact-details { width: 100%; flex-basis: auto; }
  .contact-item { padding-bottom: 12px; }

  .footer-inner { min-height: auto; padding: 28px 0; }
  .subpage-hero { padding: 92px 0 84px; }
  .subpage-hero::before { right: -27%; opacity: .55; }
}

@media (max-width: 560px) {
  .navbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0 14px;
  }

  .main-nav { width: 100%; gap: 20px; }
  .logo { font-size: 22px; }

  .hero { padding: 82px 0 104px; }
  .hero-content::before { margin-bottom: 22px; }
  .hero h1 {
    font-size: clamp(38px, 11.6vw, 58px);
    text-shadow: 2px 0 0 rgba(98,215,220,.8), -2px 0 0 rgba(244,154,194,.52);
  }
  .tagline { font-size: 18px; }
  .hero::before { width: 78vw; right: -43%; top: 14%; }
  .hero::after { height: 23%; }

  .research-button { width: 100%; }
  .application-item { padding: 28px 24px 30px; }
  .subpage-hero h1 { font-size: clamp(42px, 12vw, 62px); }
  .subpage-hero::before { width: 92vw; right: -55%; }

  .contact-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .contact-value { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
